C# Class ChargedMinersLauncher.PasswordSecurity

Provides simple symmetric AES-256 encryption for passwords.
Afficher le fichier Open project: Charged/MinersLauncher Class Usage Examples

Méthodes publiques

Méthode Description
DecryptPassword ( string encryptedString ) : string
EncryptPassword ( string rawPassword ) : string
EncryptionTest ( int runs ) : void

Private Methods

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

Method Details

DecryptPassword() public static méthode

public static DecryptPassword ( string encryptedString ) : string
encryptedString string
Résultat string

EncryptPassword() public static méthode

public static EncryptPassword ( string rawPassword ) : string
rawPassword string
Résultat string

EncryptionTest() public static méthode

public static EncryptionTest ( int runs ) : void
runs int
Résultat void