Пример #1
0
            public static string Write(string key, MobileLoginInfo loginInfo)
            {
                string encoded = string.Join("|", Base64.ToBase64(loginInfo.UserId), Base64.ToBase64(loginInfo.TenantId), Base64.ToBase64(Convert.ToInt32(loginInfo.IsPersistent)));

                return(SymmCryptHelper.EncryptWithAES128(key, encoded));
            }
 protected override string InnerApplyAlgorithm(string value)
 {
     return(SymmCryptHelper.EncryptWithAES128(Key, value));
 }