C# Class CmisSync.Auth.Crypto

Obfuscation for sensitive data, making password harvesting a little less straightforward. Web browsers employ the same technique to store user passwords.
Datei anzeigen Open project: keithwharrison/Oris4Sync

Public Methods

Method Description
Deobfuscate ( string value ) : string

Deobfuscate a string.

GetCryptoKey ( ) : byte[]

Salt for the obfuscation.

Obfuscate ( string value ) : string

Obfuscate a string.

Private Methods

Method Description
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.

Method Details

Deobfuscate() public static method

Deobfuscate a string.
public static Deobfuscate ( string value ) : string
value string The string to deobfuscate
return string

GetCryptoKey() public static method

Salt for the obfuscation.
public static GetCryptoKey ( ) : byte[]
return byte[]

Obfuscate() public static method

Obfuscate a string.
public static Obfuscate ( string value ) : string
value string The string to obfuscate
return string