[#DES_fcrypt]
= DES&lowbar;fcrypt
:mrdocs:

Compute a traditional Unix DES&hyphen;based password hash into a caller buffer (deprecated)&period;

== Synopsis

Declared in `&lt;openssl&sol;des&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
char*
DES&lowbar;fcrypt(
    char const* buf,
    char const* salt,
    char* ret);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

`ret` on success, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buf*
| Password &sol; passphrase to hash&period;
| *salt*
| Two&hyphen;character salt (or longer string whose first two chars are used)&period;
| *ret*
| Caller&hyphen;provided buffer of at least 14 bytes receiving the NUL&hyphen;terminated hash&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
