DecryptString() public static method

public static DecryptString ( string ciphertext, string passphrase ) : string
ciphertext string
passphrase string
return string
Example #1
0
 /// <summary>
 /// Decrypt an AES encrypted cypher (previously encrypted) using a password key.
 /// </summary>
 /// <param name="cypher">The encrypted text (cypher).</param>
 /// <param name="password">The password key for the encryption.</param>
 /// <returns>The original unencrypted text or "" if password and cypher don't match.</returns>
 public static Primitive AESDecrypt(Primitive cypher, Primitive password)
 {
     return(StringEncryption.DecryptString(cypher, password));
 }