C# Class Gwupe.Common.Security.Util

Show file Open project: gwupe/Gwupe

Public Methods

Method Description
AesDecryptBytes ( byte encryptedPlusIv, int offset, int length, byte encryptionKey ) : byte[]
AesEncryptBytes ( byte source, int offset, int length, byte encryptionKey ) : byte[]
generateString ( int size ) : String
getMD5Hash ( byte data, int offset, int count ) : String
getSingleton ( ) : Util
hashPassword ( string password, string token = "" ) : String

Private Methods

Method Description
Util ( ) : System

Method Details

AesDecryptBytes() public method

public AesDecryptBytes ( byte encryptedPlusIv, int offset, int length, byte encryptionKey ) : byte[]
encryptedPlusIv byte
offset int
length int
encryptionKey byte
return byte[]

AesEncryptBytes() public method

public AesEncryptBytes ( byte source, int offset, int length, byte encryptionKey ) : byte[]
source byte
offset int
length int
encryptionKey byte
return byte[]

generateString() public method

public generateString ( int size ) : String
size int
return String

getMD5Hash() public method

public getMD5Hash ( byte data, int offset, int count ) : String
data byte
offset int
count int
return String

getSingleton() public static method

public static getSingleton ( ) : Util
return Util

hashPassword() public method

public hashPassword ( string password, string token = "" ) : String
password string
token string
return String