DES_fcrypt

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

NameDescription
bufPassword / passphrase to hash.
saltTwo-character salt (or longer string whose first two chars are used).
retCaller-provided buffer of at least 14 bytes receiving the NUL-terminated hash.