Beispiel #1
0
 /// <summary>
 /// Encrypt a string
 /// </summary>
 /// <param name="input">The <see cref="SecureString"/> that contains the string's value</param>
 /// <returns>An encrypted <see cref="string"/></returns>
 internal static string EncryptString(SecureString input)
 {
     return(EncryptString(input, ToSecureString(CoreHelper.GetApplicationVersion().ToString())));
 }
Beispiel #2
0
 /// <summary>
 /// Decrypt an encrypted string
 /// </summary>
 /// <param name="encryptedData">The encrypted string</param>
 /// <returns>A <see cref="SecureString"/> that corresponds to the string's value</returns>
 internal static SecureString DecryptString(string encryptedData)
 {
     return(DecryptString(encryptedData, ToSecureString(CoreHelper.GetApplicationVersion().ToString())));
 }