public static string EncryptCookie(string value) { var base64 = Base64Encoding.EncodeBase64(value); return(Crypt.Encrypt(base64, cookieKey)); }