C# Class Authentiqr.NET.Code.SymmetricEncryption

Show file Open project: richard-green/LCGoogleApps Class Usage Examples

Public Methods

Method Description
Decrypt ( byte cipherText, SecureString password ) : byte[]
Decrypt ( byte cipherText, string password ) : byte[]

Decrypts the ciphertext using the Key.

Encrypt ( byte plainText, SecureString password ) : byte[]
Encrypt ( byte plainText, string password ) : byte[]

Encrypts the plainText input using the given Key. A 128 bit random salt will be generated and prepended to the ciphertext before it is returned.

Method Details

Decrypt() public static method

public static Decrypt ( byte cipherText, SecureString password ) : byte[]
cipherText byte
password System.Security.SecureString
return byte[]

Decrypt() public static method

Decrypts the ciphertext using the Key.
public static Decrypt ( byte cipherText, string password ) : byte[]
cipherText byte
password string The plain text encryption key.
return byte[]

Encrypt() public static method

public static Encrypt ( byte plainText, SecureString password ) : byte[]
plainText byte
password System.Security.SecureString
return byte[]

Encrypt() public static method

Encrypts the plainText input using the given Key. A 128 bit random salt will be generated and prepended to the ciphertext before it is returned.
public static Encrypt ( byte plainText, string password ) : byte[]
plainText byte The plain text to encrypt.
password string The plain text encryption key.
return byte[]