C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GenerateEncryptionKey ( ) : byte[]
GetEncryptionKey ( ) : byte[]
LoadEncryptionKey ( ) : byte[]
SaveEncryptionKey ( byte keyBytes ) : void

Описание методов

Decrypt() публичный статический Метод

Decrypts a string previously encrypted with 256-bit AES
public static Decrypt ( string cipherText ) : string
cipherText string
Результат string

Encrypt() публичный статический Метод

Encrypts a string using AES 256-bit encryption
public static Encrypt ( string plainText ) : string
plainText string
Результат string