C# Class System.EncryptionUtils

Afficher le fichier Open project: sapiens/cavemantools

Méthodes publiques

Méthode Description
Decrypt ( this data, byte key ) : byte[]

Decrypts bytes encrypted with AES 256

DecryptAsString ( this data, string key ) : string

Returns decrypted data from Base64 string

Encrypt ( this data, byte key ) : byte[]

Encrypts using AES (Rijndael) standard using a 256 bit key

Encrypt ( this data, string key ) : string

Aes encryption

Method Details

Decrypt() public static méthode

Decrypts bytes encrypted with AES 256
public static Decrypt ( this data, byte key ) : byte[]
data this
key byte 256bit key
Résultat byte[]

DecryptAsString() public static méthode

Returns decrypted data from Base64 string
public static DecryptAsString ( this data, string key ) : string
data this Base 64 encoded encryption
key string Salt of 16 chars
Résultat string

Encrypt() public static méthode

Encrypts using AES (Rijndael) standard using a 256 bit key
public static Encrypt ( this data, byte key ) : byte[]
data this
key byte
Résultat byte[]

Encrypt() public static méthode

Aes encryption
public static Encrypt ( this data, string key ) : string
data this
key string
Résultat string