C# Class ServiceStack.AesUtils

Afficher le fichier Open project: ServiceStack/ServiceStack Class Usage Examples

Méthodes publiques

Méthode Description
CreateCryptAuthKeysAndIv ( byte &cryptKey, byte &authKey, byte &iv ) : void
CreateIv ( ) : byte[]
CreateKey ( ) : byte[]
CreateKeyAndIv ( byte &cryptKey, byte &iv ) : void
CreateSymmetricAlgorithm ( ) : SymmetricAlgorithm
Decrypt ( byte encryptedBytes, byte cryptKey, byte iv ) : byte[]
Decrypt ( string encryptedBase64, byte cryptKey, byte iv ) : string
Encrypt ( byte bytesToEncrypt, byte cryptKey, byte iv ) : byte[]
Encrypt ( string text, byte cryptKey, byte iv ) : string

Method Details

CreateCryptAuthKeysAndIv() public static méthode

public static CreateCryptAuthKeysAndIv ( byte &cryptKey, byte &authKey, byte &iv ) : void
cryptKey byte
authKey byte
iv byte
Résultat void

CreateIv() public static méthode

public static CreateIv ( ) : byte[]
Résultat byte[]

CreateKey() public static méthode

public static CreateKey ( ) : byte[]
Résultat byte[]

CreateKeyAndIv() public static méthode

public static CreateKeyAndIv ( byte &cryptKey, byte &iv ) : void
cryptKey byte
iv byte
Résultat void

CreateSymmetricAlgorithm() public static méthode

public static CreateSymmetricAlgorithm ( ) : SymmetricAlgorithm
Résultat System.Security.Cryptography.SymmetricAlgorithm

Decrypt() public static méthode

public static Decrypt ( byte encryptedBytes, byte cryptKey, byte iv ) : byte[]
encryptedBytes byte
cryptKey byte
iv byte
Résultat byte[]

Decrypt() public static méthode

public static Decrypt ( string encryptedBase64, byte cryptKey, byte iv ) : string
encryptedBase64 string
cryptKey byte
iv byte
Résultat string

Encrypt() public static méthode

public static Encrypt ( byte bytesToEncrypt, byte cryptKey, byte iv ) : byte[]
bytesToEncrypt byte
cryptKey byte
iv byte
Résultat byte[]

Encrypt() public static méthode

public static Encrypt ( string text, byte cryptKey, byte iv ) : string
text string
cryptKey byte
iv byte
Résultat string