Crypt (C)

Uses your system voice; voice and rate in settings.

Snapshot

≈ 2 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

crypt is a POSIX C library function. It is typically used to compute the hash of user account passwords. The function outputs a text string which also encodes the salt (usually the first two characters are the salt itself and the rest is the hashed result), and identifies the hash algorithm used (defaulting to the "traditional" one explained below). This output string forms a password record, which is usually stored in a text file. More formally, crypt provides cryptographic key derivation functions for password validation and storage on Unix systems.

crypt is a POSIX C library function. It is typically used to compute the hash of user account passwords. The function outputs a text string which also encodes the salt (usually the first two characters are the salt itself and the rest is the hashed result), and identifies the hash algorithm used (defaulting to the "traditional" one explained below). This output string forms a password record, which is usually stored in a text file. More formally, crypt provides cryptographic key derivation functions for password validation and storage on Unix systems. $ [$ = (, = )*][$ [$ where id : an identifier representing the hashing algorithm (such as 1 for MD5, 5 for SHA-256 etc.) param name and its value : hash complexity parameters, like rounds/iterations count salt : salt following the radix-64 alphabet (DES uses the decoded value) hash : radix-64 encoded result of hashing the password and salt The radix-64 encoding in crypt is called B64 and uses the alphabet ./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz which is different than the more common RFC 4648 base64 The PHC subset covers a majority of MCF hashes. A number of extra application-defined methods exist. Source code for crypt(3) from Seventh Edition Unix (implements proposed DES) Sample password hash encoding strings .NET crypt implementation cs:Crypt (Unix)

Text derived from https://en.wikipedia.org/w/index.php?oldid=1358387232 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

35 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.