private CredentialCookie deserialize_cookie(string value) { var cryptography = new O7Cryptography(Constant.CRYPTO_KEY); var dencryptedValue = cryptography.Decrypt(value); return(O7JsonSerealizer.Deserialize <CredentialCookie>(dencryptedValue)); }
private CredentialCookie make_credential_cookie(string credential) { var dencryptedValue = _cryptography.Decrypt(credential); return(O7JsonSerealizer.Deserialize <CredentialCookie>(dencryptedValue)); }