C# 클래스 WebApplications.Utilities.Cryptography.AESCryptographer

상속: ICryptoProvider
파일 보기 프로젝트 열기: webappsuk/CoreLibraries

공개 메소드들

메소드 설명
AESCryptographer ( IEnumerable keys = null ) : System

Initializes a new instance of the AESCryptographer class.

Decrypt ( string input, bool &isLatestKey ) : string
Encrypt ( string input ) : string
TryDecrypt ( string inputString, string &decryptedString, bool &isLatestKey ) : bool

Tries the decrypt the provided input string.

비공개 메소드들

메소드 설명
AESCryptographer ( [ provider, IEnumerable keys = null ) : System
ConvertHexStringToByteArray ( string hexString ) : byte[]
DecryptStringFromBytes ( [ cipherText, [ key, [ initializationVector ) : string

Decrypts the array of bytes into a string.

EncryptStringToBytes ( [ input, [ key, [ initializationVector ) : byte[]

Encrypts the provided input string to an array of bytes.

TryDecryptStringFromBytes ( [ cipherText, [ key, [ initializationVector, string &decryptedString ) : bool

Tries the decrypt the encrypted text with the key specified. This is used internally to find the correct key for decryption.

메소드 상세

AESCryptographer() 공개 메소드

Initializes a new instance of the AESCryptographer class.
public AESCryptographer ( IEnumerable keys = null ) : System
keys IEnumerable The keys to add to this provider.
리턴 System

Decrypt() 공개 메소드

public Decrypt ( string input, bool &isLatestKey ) : string
input string
isLatestKey bool
리턴 string

Encrypt() 공개 메소드

public Encrypt ( string input ) : string
input string
리턴 string

TryDecrypt() 공개 메소드

Tries the decrypt the provided input string.
public TryDecrypt ( string inputString, string &decryptedString, bool &isLatestKey ) : bool
inputString string The string to decrypt.
decryptedString string /// The result of the decryption. /// If unsuccessful this will be . ///
isLatestKey bool /// if the string was encrypted with the latest key; otherwise . ///
리턴 bool