aboutsummaryrefslogtreecommitdiffstats
path: root/man3/crypt.3
diff options
context:
space:
mode:
authorKonstantin Shemyak <konstantin@shemyak.com>2017-09-04 21:53:51 +0300
committerMichael Kerrisk <mtk.manpages@gmail.com>2017-09-05 19:47:52 +0200
commit893c609dcd041af8ac4262cdaaea1625a998702e (patch)
tree33056f1313aaae4f0a27f7e3560124d6c35f5c44 /man3/crypt.3
parent266d8f7ef13f96ac7d187bd9dc50c3ae9bcf5e26 (diff)
downloadman-pages-893c609dcd041af8ac4262cdaaea1625a998702e.tar.gz
crypt.3: Encryption isn't done with SHA-xxx, but with a function based on SHA-xxx
The encryption is done by glibc functions __shaxxx_crypt_r() in files crypt/shaxxx-crypt.c. They implement a nontrivial algorithm to construct the inputs for the hashing functions and to apply them iteratively. Signed-off-by: Konstantin Shemyak <konstantin@shemyak.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/crypt.3')
-rw-r--r--man3/crypt.36
1 files changed, 3 insertions, 3 deletions
diff --git a/man3/crypt.3 b/man3/crypt.3
index 4d4bd55166..1bd85093b4 100644
--- a/man3/crypt.3
+++ b/man3/crypt.3
@@ -227,9 +227,9 @@ _
.TE
.RE
.PP
-So $5$\fIsalt\fP$\fIencrypted\fP is an SHA-256 encoded
-password and $6$\fIsalt\fP$\fIencrypted\fP is an
-SHA-512 encoded one.
+So $5$\fIsalt\fP$\fIencrypted\fP and $6$\fIsalt\fP$\fIencrypted\fP
+contain the password encrypted correspondingly with a function
+based on SHA-256 and SHA-512.
.PP
"\fIsalt\fP" stands for the up to 16 characters
following "$\fIid\fP$" in the salt.