Example #1
0
        public static UserTokenModel BuildDecryptedRequest(string encryptedToken)
        {
            var jsonString           = Encripter.Decrypt(encryptedToken);
            var decryptedAuthRequest = new JavaScriptSerializer().Deserialize <UserTokenModel>(jsonString);

            return(decryptedAuthRequest);
        }
Example #2
0
        public static string BuildEncryptedRequest(string email)
        {
            var request = new UserTokenModel
            {
                email = email
            };

            string jsonRequest      = new JavaScriptSerializer().Serialize(request);
            string encryptedRequest = Encripter.Encrypt(jsonRequest);

            return(encryptedRequest);
        }