DESFingerprint()

语法

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

参数

Password$ The password to encrypt. It can be up to 8 characters long (all further characters are simply ignored). MD5Fingerprint() 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.

返回值

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.

示例

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

参阅

MD5Fingerprint(), SHA1Fingerprint()

已支持操作系统

所有

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