pub fn user_cookie_generate(user: i64) -> String
Function encrypts a UserID with a nonce and returns it as a base64 string to be used as a cookie/token.