Метод | Описание | |
---|---|---|
CalculateChecksum ( string hashAlgorithm, IFileInfo file ) : byte[] |
Calculates the checksum over the given stream with a former created hashAlgorithm
|
|
CalculateChecksum ( string hashAlgorithm, Stream inputStream ) : byte[] |
Calculates the checksum over the given stream.
|
|
CreateHashAlgorithm ( string name ) : |
Creates the hash algorithm by the given name.
|
|
Deobfuscate ( string value ) : string |
Deobfuscate a string.
|
|
GetCryptoKey ( ) : byte[] |
Salt for the obfuscation.
|
|
Obfuscate ( string value ) : string |
Obfuscate a string.
|
Метод | Описание | |
---|---|---|
UnixDeobfuscate ( string value ) : string |
Deobfuscate a string on UNIX.
|
|
UnixObfuscate ( string value ) : string |
Obfuscate a string on Unix. AES is used.
|
|
WindowsDeobfuscate ( string value ) : string |
Deobfuscate a string on Windows.
|
|
WindowsObfuscate ( string value ) : string |
Obfuscate a string on Windows. We use the recommended API for this: DPAPI (Windows Data Protection API) http://msdn.microsoft.com/en-us/library/ms995355.aspx Warning: Even though it uses the Windows user's password, it is not uncrackable.
|
public static CalculateChecksum ( string hashAlgorithm, IFileInfo file ) : byte[] | ||
hashAlgorithm | string | Hash algorithm. |
file | IFileInfo | File to be hashed. |
Результат | byte[] |
public static CalculateChecksum ( string hashAlgorithm, Stream inputStream ) : byte[] | ||
hashAlgorithm | string | Hash algorithm. |
inputStream | Stream | Input Stream. |
Результат | byte[] |
public static CreateHashAlgorithm ( string name ) : |
||
name | string | Name of the has algorithm. |
Результат |
public static Deobfuscate ( string value ) : string | ||
value | string | The string to deobfuscate |
Результат | string |
public static Obfuscate ( string value ) : string | ||
value | string | The string to obfuscate |
Результат | string |