C# Class TwitNetBuilder.Util.Encryption.SimpleAES

Show file Open project: jesusspork/TwitNet

Public Properties

Property Type Description
Key byte[]

Public Methods

Method Description
ByteArrToString ( byte byteArr ) : string
Decrypt ( byte EncryptedValue ) : string
DecryptString ( string EncryptedString ) : string
Encrypt ( string TextValue ) : byte[]
EncryptToString ( string TextValue ) : string
GenerateEncryptionKey ( ) : byte[]
GenerateEncryptionVector ( ) : byte[]
SimpleAES ( ) : System

AES Class

StrToByteArray ( string str ) : byte[]

Private Methods

Method Description
getRandNum ( int length ) : string

Return a string of random chars

Method Details

ByteArrToString() public method

public ByteArrToString ( byte byteArr ) : string
byteArr byte
return string

Decrypt() public method

public Decrypt ( byte EncryptedValue ) : string
EncryptedValue byte
return string

DecryptString() public method

public DecryptString ( string EncryptedString ) : string
EncryptedString string
return string

Encrypt() public method

public Encrypt ( string TextValue ) : byte[]
TextValue string
return byte[]

EncryptToString() public method

public EncryptToString ( string TextValue ) : string
TextValue string
return string

GenerateEncryptionKey() public static method

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

GenerateEncryptionVector() public static method

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

SimpleAES() public method

AES Class
public SimpleAES ( ) : System
return System

StrToByteArray() public method

public StrToByteArray ( string str ) : byte[]
str string
return byte[]

Property Details

Key public property

public byte[] Key
return byte[]