crypt.3: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-07-25 22:51:18 +02:00
parent c1b81aa8dd
commit 17a4cff3e4
1 changed files with 17 additions and 12 deletions

View File

@ -257,20 +257,23 @@ The following values of
are supported: are supported:
.RS .RS
.TS .TS
l l. lb lb
ID | Method l lx.
ID Method
_ _
1 | MD5 1 MD5
2a | Blowfish (not in mainline glibc; added in some 2a T{
| Linux distributions) Blowfish (not in mainline glibc; added in some
Linux distributions)
T}
.\" openSUSE has Blowfish, but AFAICS, this option is not supported .\" openSUSE has Blowfish, but AFAICS, this option is not supported
.\" natively by glibc -- mtk, Jul 08 .\" natively by glibc -- mtk, Jul 08
.\" .\"
.\" md5 | Sun MD5 .\" md5 | Sun MD5
.\" glibc doesn't appear to natively support Sun MD5; I don't know .\" glibc doesn't appear to natively support Sun MD5; I don't know
.\" if any distros add the support. .\" if any distros add the support.
5 | SHA-256 (since glibc 2.7) 5 SHA-256 (since glibc 2.7)
6 | SHA-512 (since glibc 2.7) 6 SHA-512 (since glibc 2.7)
.TE .TE
.RE .RE
.PP .PP
@ -283,13 +286,15 @@ following "$\fIid\fP$" in the salt.
The "\fIencrypted\fP" The "\fIencrypted\fP"
part of the password string is the actual computed password. part of the password string is the actual computed password.
The size of this string is fixed: The size of this string is fixed:
.RS
.TS .TS
l l. lb l.
MD5 | 22 characters MD5 22 characters
SHA-256 | 43 characters SHA-256 43 characters
SHA-512 | 86 characters SHA-512 86 characters
.TE .TE
.sp 1 .RE
.PP
The characters in "\fIsalt\fP" and "\fIencrypted\fP" are drawn from the set The characters in "\fIsalt\fP" and "\fIencrypted\fP" are drawn from the set
[\fBa\-zA\-Z0\-9./\fP]. [\fBa\-zA\-Z0\-9./\fP].
In the MD5 and SHA implementations the entire In the MD5 and SHA implementations the entire