C# Class PassFruit.Security.Cryptography.Aes

Afficher le fichier Open project: bettiolo/PassFruit Class Usage Examples

Méthodes publiques

Méthode Description
Decrypt ( byte ciphertext, byte key, byte initializationVector ) : string
Encrypt ( string message, byte key, byte initializationVector ) : byte[]
GenerateInitializationVector ( ) : byte[]

Méthodes protégées

Méthode Description
Aes ( RandomNumberGenerator randomNumberGenerator ) : System
PlatformSpecificDecrypt ( byte ciphertext, byte key, byte initializationVector ) : string
PlatformSpecificEncrypt ( string message, byte key, byte initializationVector ) : byte[]

Private Methods

Méthode Description
CheckInput ( byte key, byte initializationVector ) : void

Method Details

Aes() protected méthode

protected Aes ( RandomNumberGenerator randomNumberGenerator ) : System
randomNumberGenerator RandomNumberGenerator
Résultat System

Decrypt() public méthode

public Decrypt ( byte ciphertext, byte key, byte initializationVector ) : string
ciphertext byte
key byte
initializationVector byte
Résultat string

Encrypt() public méthode

public Encrypt ( string message, byte key, byte initializationVector ) : byte[]
message string
key byte
initializationVector byte
Résultat byte[]

GenerateInitializationVector() public méthode

public GenerateInitializationVector ( ) : byte[]
Résultat byte[]

PlatformSpecificDecrypt() protected abstract méthode

protected abstract PlatformSpecificDecrypt ( byte ciphertext, byte key, byte initializationVector ) : string
ciphertext byte
key byte
initializationVector byte
Résultat string

PlatformSpecificEncrypt() protected abstract méthode

protected abstract PlatformSpecificEncrypt ( string message, byte key, byte initializationVector ) : byte[]
message string
key byte
initializationVector byte
Résultat byte[]