C# Class AesEncryptor, TapBand

Mostra file Open project: minimalgeek/TapBand Class Usage Examples

Public Methods

Method Description
Decrypt ( byte buffer ) : byte[]
DecryptBool ( byte encrypted ) : bool
DecryptBool ( string encrypted ) : bool
DecryptChar ( byte encrypted ) : char
DecryptChar ( string encrypted ) : char
DecryptDouble ( byte encrypted ) : double
DecryptDouble ( string encrypted ) : double
DecryptFloat ( byte encrypted ) : float
DecryptFloat ( string encrypted ) : float
DecryptIV ( byte buffer, byte IV ) : byte[]
DecryptIV ( string encrypted, byte vector ) : string
DecryptInt ( byte encrypted ) : int
DecryptInt ( string encrypted ) : int
DecryptKeyIV ( byte buffer, byte key, byte IV ) : byte[]
DecryptLong ( byte encrypted ) : long
DecryptLong ( string encrypted ) : long
DecryptShort ( byte encrypted ) : short
DecryptShort ( string encrypted ) : short
DecryptString ( byte encrypted ) : string
DecryptString ( string encrypted ) : string
DecryptUInt ( byte encrypted ) : uint
DecryptUInt ( string encrypted ) : uint
DecryptULong ( byte encrypted ) : ulong
DecryptULong ( string encrypted ) : ulong
DecryptUShort ( byte encrypted ) : ushort
DecryptUShort ( string encrypted ) : ushort
Encrypt ( byte buffer ) : byte[]
Encrypt ( bool unencrypted ) : string
Encrypt ( char unencrypted ) : string
Encrypt ( double unencrypted ) : string
Encrypt ( float unencrypted ) : string
Encrypt ( int unencrypted ) : string
Encrypt ( long unencrypted ) : string
Encrypt ( short unencrypted ) : string
Encrypt ( string unencrypted ) : string
Encrypt ( uint unencrypted ) : string
Encrypt ( ulong unencrypted ) : string
Encrypt ( ushort unencrypted ) : string
EncryptIV ( byte buffer, byte IV ) : byte[]
EncryptIV ( string unencrypted, byte vector ) : string
EncryptKeyIV ( byte buffer, byte key, byte IV ) : byte[]
GenerateIV ( ) : byte[]

Private Methods

Method Description
AesEncryptor ( ) : System

Method Details

Decrypt() public static method

public static Decrypt ( byte buffer ) : byte[]
buffer byte
return byte[]

DecryptBool() public static method

public static DecryptBool ( byte encrypted ) : bool
encrypted byte
return bool

DecryptBool() public static method

public static DecryptBool ( string encrypted ) : bool
encrypted string
return bool

DecryptChar() public static method

public static DecryptChar ( byte encrypted ) : char
encrypted byte
return char

DecryptChar() public static method

public static DecryptChar ( string encrypted ) : char
encrypted string
return char

DecryptDouble() public static method

public static DecryptDouble ( byte encrypted ) : double
encrypted byte
return double

DecryptDouble() public static method

public static DecryptDouble ( string encrypted ) : double
encrypted string
return double

DecryptFloat() public static method

public static DecryptFloat ( byte encrypted ) : float
encrypted byte
return float

DecryptFloat() public static method

public static DecryptFloat ( string encrypted ) : float
encrypted string
return float

DecryptIV() public static method

public static DecryptIV ( byte buffer, byte IV ) : byte[]
buffer byte
IV byte
return byte[]

DecryptIV() public static method

public static DecryptIV ( string encrypted, byte vector ) : string
encrypted string
vector byte
return string

DecryptInt() public static method

public static DecryptInt ( byte encrypted ) : int
encrypted byte
return int

DecryptInt() public static method

public static DecryptInt ( string encrypted ) : int
encrypted string
return int

DecryptKeyIV() public static method

public static DecryptKeyIV ( byte buffer, byte key, byte IV ) : byte[]
buffer byte
key byte
IV byte
return byte[]

DecryptLong() public static method

public static DecryptLong ( byte encrypted ) : long
encrypted byte
return long

DecryptLong() public static method

public static DecryptLong ( string encrypted ) : long
encrypted string
return long

DecryptShort() public static method

public static DecryptShort ( byte encrypted ) : short
encrypted byte
return short

DecryptShort() public static method

public static DecryptShort ( string encrypted ) : short
encrypted string
return short

DecryptString() public static method

public static DecryptString ( byte encrypted ) : string
encrypted byte
return string

DecryptString() public static method

public static DecryptString ( string encrypted ) : string
encrypted string
return string

DecryptUInt() public static method

public static DecryptUInt ( byte encrypted ) : uint
encrypted byte
return uint

DecryptUInt() public static method

public static DecryptUInt ( string encrypted ) : uint
encrypted string
return uint

DecryptULong() public static method

public static DecryptULong ( byte encrypted ) : ulong
encrypted byte
return ulong

DecryptULong() public static method

public static DecryptULong ( string encrypted ) : ulong
encrypted string
return ulong

DecryptUShort() public static method

public static DecryptUShort ( byte encrypted ) : ushort
encrypted byte
return ushort

DecryptUShort() public static method

public static DecryptUShort ( string encrypted ) : ushort
encrypted string
return ushort

Encrypt() public static method

public static Encrypt ( byte buffer ) : byte[]
buffer byte
return byte[]

Encrypt() public static method

public static Encrypt ( bool unencrypted ) : string
unencrypted bool
return string

Encrypt() public static method

public static Encrypt ( char unencrypted ) : string
unencrypted char
return string

Encrypt() public static method

public static Encrypt ( double unencrypted ) : string
unencrypted double
return string

Encrypt() public static method

public static Encrypt ( float unencrypted ) : string
unencrypted float
return string

Encrypt() public static method

public static Encrypt ( int unencrypted ) : string
unencrypted int
return string

Encrypt() public static method

public static Encrypt ( long unencrypted ) : string
unencrypted long
return string

Encrypt() public static method

public static Encrypt ( short unencrypted ) : string
unencrypted short
return string

Encrypt() public static method

public static Encrypt ( string unencrypted ) : string
unencrypted string
return string

Encrypt() public static method

public static Encrypt ( uint unencrypted ) : string
unencrypted uint
return string

Encrypt() public static method

public static Encrypt ( ulong unencrypted ) : string
unencrypted ulong
return string

Encrypt() public static method

public static Encrypt ( ushort unencrypted ) : string
unencrypted ushort
return string

EncryptIV() public static method

public static EncryptIV ( byte buffer, byte IV ) : byte[]
buffer byte
IV byte
return byte[]

EncryptIV() public static method

public static EncryptIV ( string unencrypted, byte vector ) : string
unencrypted string
vector byte
return string

EncryptKeyIV() public static method

public static EncryptKeyIV ( byte buffer, byte key, byte IV ) : byte[]
buffer byte
key byte
IV byte
return byte[]

GenerateIV() public static method

public static GenerateIV ( ) : byte[]
return byte[]