version 1.8.2.1, 2002/01/22 19:32:32 |
version 1.9, 2000/08/03 08:30:43 |
Line 78 of perturbations is selected. If |
|
Line 78 of perturbations is selected. If |
|
.Ar setting |
.Ar setting |
begins with any other character, DES encryption with a fixed number |
begins with any other character, DES encryption with a fixed number |
of perturbations is selected. |
of perturbations is selected. |
.Ss DES encryption: |
.Ss "DES" encryption: |
|
.Pp |
The DES encryption scheme is derived from the |
The DES encryption scheme is derived from the |
.Tn NBS |
.Tn NBS |
Data Encryption Standard. |
Data Encryption Standard. |
Line 89 is a character array, 9 bytes in length, |
|
Line 90 is a character array, 9 bytes in length, |
|
followed by 4 bytes of iteration count and 4 bytes of salt. |
followed by 4 bytes of iteration count and 4 bytes of salt. |
Both the iteration |
Both the iteration |
.Fa count |
.Fa count |
and the |
and the |
.Fa salt |
.Fa salt |
are encoded with 6 bits per character, least significant bits first. |
are encoded with 6 bits per character, least significant bits first. |
The values 0 to 63 are encoded by the characters ``./0-9A-Za-z'', |
The values 0 to 63 are encoded by the characters ``./0-9A-Za-z'', |
|
|
specifies perturbations to |
specifies perturbations to |
.Tn DES |
.Tn DES |
as described above. |
as described above. |
.Ss MD5 encryption: |
.Ss "MD5" encryption: |
|
.Pp |
For the |
For the |
.Tn MD5 |
.Tn MD5 |
encryption scheme, the version number (in this case ``1''), |
encryption scheme, the version number (in this case ``1''), |
.Fa salt |
.Fa salt |
and the hashed password are separated |
and the hashed password are separated |
by the ``$'' character. A valid password looks like this: |
by the ``$'' character. A valid password looks like this: |
.Pp |
.Pp |
``$1$2qGr5PPQ$eT08WBFev3RPLNChixg0H.''. |
``$1$2qGr5PPQ$eT08WBFev3RPLNChixg0H.''. |
.Pp |
.Pp |
The entire password string is passed as |
The entire password string is passed as |
.Fa setting |
.Fa setting |
for interpretation. |
for interpretation. |
.Sh RETURN VALUES |
.Sh RETURN VALUES |