Пример #1
0
        public string Decrypt(string inputString, string password)
        {
            var encrypted = EncryptHelper.ConvertStringToByte(inputString);

            return(DecryptStringFromBytes(encrypted, GetKeyArray(password), g_Iv));
        }
Пример #2
0
 public string Encrypt(string inputString, string password)
 {
     byte[] encrypted = EncryptStringToBytes(inputString, GetKeyArray(password), g_Iv);
     return(EncryptHelper.ConvertByteToString(encrypted));
     //return Convert.ToBase64String(encrypted);
 }