C# Class System.EncryptionUtils

显示文件 Open project: sapiens/cavemantools

Public Methods

Method 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 method

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

DecryptAsString() public static method

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
return string

Encrypt() public static method

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

Encrypt() public static method

Aes encryption
public static Encrypt ( this data, string key ) : string
data this
key string
return string