DES_crypt

Compute a traditional Unix DES-based password hash using a static result buffer (deprecated).

Synopsis

Declared in <openssl/des.h>

[[deprecated]]
char*
DES_crypt(
    char const* buf,
    char const* salt);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Pointer to a static NUL-terminated hash string, or NULL on error.

Parameters

NameDescription
bufPassword / passphrase to hash.
saltTwo-character salt (or longer string whose first two chars are used).