Пример #1
0
 /// <summary>
 /// Decrypts the string.
 /// </summary>
 /// <param name="encryptedJson">The encrypted json.</param>
 /// <returns></returns>
 private static string DecryptString(string encryptedJson)
 {
     return(Encrypter.Decrypt(encryptedJson, ENCRYPTION_KEY));
 }
Пример #2
0
 /// <summary>
 /// Encrypts the string.
 /// </summary>
 /// <param name="jsonToEncrypt">The json to encrypt.</param>
 /// <returns></returns>
 private static string EncryptString(string jsonToEncrypt)
 {
     return(Encrypter.Encrypt(jsonToEncrypt, ENCRYPTION_KEY));
 }