DESFingerprint()

Syntax

Result$ = DESFingerprint(Password$, Key$)
Description
Returns a DES encrypted version of the given Password$.

Parameters

Password$ The password to encrypt. It can be up to 8 characters long (all further characters are simply ignored). StringFingerprint() can be used to hash a bigger buffer.
Key$ The Key$ is also known as the 'Salt' parameter, well know from Linux/Unix/BSD users. When using a 2 characters long Key$, this function returns a 'Salt2' string, compatible which any standard Linux hash password (/etc/passwd). This function is based on the open source crypt() function.

Return value

Returns the encrypted password.

Remarks

This algorithm is based on the DES (Data Encryption Standard) crypt method to generates a 13 characters string. This string is mean to be unique and non-reversible implying a strong encryption, hardly crackable when the password is correctly chosen.

Example

  Debug DESFingerprint("Password", "Key007")
  Debug DESFingerprint("NewPass", "Key007")

See Also

StringFingerprint(), Fingerprint()

Supported OS

All

<- CryptRandomData() - Cipher Index - FileFingerprint() ->