Api.Encryption.Encryptor.DecryptToken C# (CSharp) Method

DecryptToken() public static method

public static DecryptToken ( TokenViewModel token ) : TokenViewModel
token Api.Models.TokenViewModel
return Api.Models.TokenViewModel
        public static TokenViewModel DecryptToken(TokenViewModel token)
        {
            if (token.GuId != null)
            token.GuId = StringCipher.Decrypt(token.GuId, EncryptKey);

            if (token.TokenString != null)
            token.TokenString = StringCipher.Decrypt(token.TokenString, EncryptKey);
            return token;
        }
    }