C# Class Yodiwo.Tools.Crypto

显示文件 Open project: yodiwo/plegma

Public Methods

Method Description
DecryptBytes_AES ( byte input, string key ) : byte[]
DecryptText_AES ( byte input, string key ) : string
EncryptBytes_AES ( byte input, string key ) : byte[]
EncryptText_AES ( string input, string key ) : byte[]
GenerateRandomBase64 ( int length ) : string

Method Details

DecryptBytes_AES() public static method

public static DecryptBytes_AES ( byte input, string key ) : byte[]
input byte
key string
return byte[]

DecryptText_AES() public static method

public static DecryptText_AES ( byte input, string key ) : string
input byte
key string
return string

EncryptBytes_AES() public static method

public static EncryptBytes_AES ( byte input, string key ) : byte[]
input byte
key string
return byte[]

EncryptText_AES() public static method

public static EncryptText_AES ( string input, string key ) : byte[]
input string
key string
return byte[]

GenerateRandomBase64() public static method

public static GenerateRandomBase64 ( int length ) : string
length int
return string