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.
Afficher le fichier Open project: agardiner/hfmcmd

Méthodes publiques

Méthode 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

Méthode Description
GenerateEncryptionKey ( ) : byte[]
GetEncryptionKey ( ) : byte[]
LoadEncryptionKey ( ) : byte[]
SaveEncryptionKey ( byte keyBytes ) : void

Method Details

Decrypt() public static méthode

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

Encrypt() public static méthode

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