- Posts: 370
- Thank you received: 54
Please Log in or Create an account to join the conversation.
However, in more modern versions of crypt() it will encrypt with either MD5, SHA-256 or SHA-512, taking all characters into account. This happens automatically if a newer library (glibc2) is accessible on the platform.crypt() is the password encryption function. It is based on the Data
Encryption Standard algorithm with variations intended (among other
things) to discourage use of hardware implementations of a key search.
key is a user's typed password.
salt is a two-character string chosen from the set [a-zA-Z0-9./]. This
string is used to perturb the algorithm in one of 4096 different ways.
By taking the lowest 7 bits of each of the first eight characters of
the key, a 56-bit key is obtained. This 56-bit key is used to encrypt
repeatedly a constant string (usually a string consisting of all
zeros). The returned value points to the encrypted password, a series
of 13 printable ASCII characters (the first two characters represent
the salt itself).
Please Log in or Create an account to join the conversation.
tbaMUD © 2024