C# Class FileFind.Meshwork.Security.Encryption

显示文件 Open project: codebutler/meshwork

Public Methods

Method Description
Decrypt ( ICryptoTransform transform, byte buffer ) : byte[]
Encrypt ( ICryptoTransform transform, byte buffer ) : byte[]
PasswordDecrypt ( string password, string text, byte salt ) : string
PasswordEncrypt ( string password, string text, byte salt ) : string

Method Details

Decrypt() public static method

public static Decrypt ( ICryptoTransform transform, byte buffer ) : byte[]
transform ICryptoTransform
buffer byte
return byte[]

Encrypt() public static method

public static Encrypt ( ICryptoTransform transform, byte buffer ) : byte[]
transform ICryptoTransform
buffer byte
return byte[]

PasswordDecrypt() public static method

public static PasswordDecrypt ( string password, string text, byte salt ) : string
password string
text string
salt byte
return string

PasswordEncrypt() public static method

public static PasswordEncrypt ( string password, string text, byte salt ) : string
password string
text string
salt byte
return string