Compute a traditional Unix DES‐based password hash into a caller buffer (deprecated).
Synopsis
Declared in <openssl/des.h>
[[deprecated]]
char*
DES_fcrypt(
char const* buf,
char const* salt,
char* ret);
|
Warning
|
Deprecated. Use of this entity is allowed but discouraged. |
Return Value
ret on success, or NULL on error.
Parameters
Name |
Description |
buf |
Password / passphrase to hash. |
salt |
Two‐character salt (or longer string whose first two chars are used). |
ret |
Caller‐provided buffer of at least 14 bytes receiving the NUL‐terminated hash. |
Created with MrDocs