C# Class Encryption.AES

Encrypts data using teh 256-bit AES cipher (aka Rijndael). This cipher algorithm provides both portability and strong security of the encrypted data, provided the password is not stored on the same machine as the encryption key.
Show file Open project: agardiner/hfmcmd

Public Methods

Method Description
Decrypt ( string cipherText ) : string

Decrypts a string previously encrypted with 256-bit AES

Encrypt ( string plainText ) : string

Encrypts a string using AES 256-bit encryption

Private Methods

Method Description
GenerateEncryptionKey ( ) : byte[]
GetEncryptionKey ( ) : byte[]
LoadEncryptionKey ( ) : byte[]
SaveEncryptionKey ( byte keyBytes ) : void

Method Details

Decrypt() public static method

Decrypts a string previously encrypted with 256-bit AES
public static Decrypt ( string cipherText ) : string
cipherText string
return string

Encrypt() public static method

Encrypts a string using AES 256-bit encryption
public static Encrypt ( string plainText ) : string
plainText string
return string