예제 #1
0
 /// <summary>
 /// Decrypts the specified text.
 /// </summary>
 /// <param name="text">The text to decode.</param>
 /// <param name="passcode">The passcode to use.</param>
 /// <returns>The decrypted string.</returns>
 public static string Decrypt(this string text, string passcode)
 {
     return(AesEncrypter.Decrypt(text.Base64Decode(), passcode));
 }
예제 #2
0
 /// <summary>
 /// Encrypts the specified text.
 /// </summary>
 /// <param name="text">The text to encrypt.</param>
 /// <param name="passcode">The passcode to use.</param>
 /// <returns>An encripted string.</returns>
 public static string Encrypt(this string text, string passcode)
 {
     return(AesEncrypter.Encrypt(text, passcode).Base64Encode());
 }