C# Class ChargedMinersLauncher.PasswordSecurity

Provides simple symmetric AES-256 encryption for passwords.
Show file Open project: Charged/MinersLauncher Class Usage Examples

Public Methods

Method Description
DecryptPassword ( string encryptedString ) : string
EncryptPassword ( string rawPassword ) : string
EncryptionTest ( int runs ) : void

Private Methods

Method Description
ComputeChecksum ( byte bytes, int offset, int length ) : ushort
GetRandomString ( ) : string
InitCrc16 ( ) : void
PasswordSecurity ( ) : System

Method Details

DecryptPassword() public static method

public static DecryptPassword ( string encryptedString ) : string
encryptedString string
return string

EncryptPassword() public static method

public static EncryptPassword ( string rawPassword ) : string
rawPassword string
return string

EncryptionTest() public static method

public static EncryptionTest ( int runs ) : void
runs int
return void