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.
파일 보기 프로젝트 열기: agardiner/hfmcmd

공개 메소드들

메소드 설명
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