summaryrefslogtreecommitdiff
path: root/hashes.lst
blob: d828cbe973a4d3ef136b3de28b7207ba0c44a98c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This file is read by genhashes.awk and by the configure script.
#
# It lists, for each supported hash algorithm, the name to be used to
# enable or disable it at configure time, which is also part of the
# name used for the 'crypt_fn' and 'gensalt_fn' entry points to the
# relevant algorithm module; an optional suffix on the name of the
# 'gensalt_fn'; the prefix used to identify the algorithm in hash
# strings; the number of bytes of random data that crypt_gensalt
# should draw from the OS when its caller doesn't supply any; and a
# comma-separated list of flags.  The current set of possible flags
# is: DEFAULT means this is the hash to use when no prefix was
# supplied to crypt_gensalt.  STRONG means the hash is still
# considered strong enough to use for newly hashed passwords.
# FREEBSD, GLIBC, NETBSD, OPENBSD, OSX, and SOLARIS mean that the hash
# was historically supported by crypt() as provided by that operating
# system / C library.
#
# Fields are separated by whitespace. Lines beginning with # are
# ignored; # is not otherwise significant.  Multiple flags are
# separated by commas.  A field whose contents are a single colon (:)
# is actually understood as an empty string; colon is used for this
# purpose because it cannot be part of a hash prefix or a C identifier.
#
# Note: All entries with the same name should be consecutive.
#
# Note: crypt() checks prefixes in the order they appear in this file,
# and the first match wins.  Therefore, the empty prefix (traditional
# DES) must be last.
#
#name    gs_suffix  h_prefix  nrbytes  flags
yescrypt :          $y$       16       STRONG
yescrypt :          $7$       16       STRONG
bcrypt   _b         $2b$      16       STRONG,FREEBSD,NETBSD,OPENBSD,SOLARIS,DEFAULT
bcrypt   _a         $2a$      16       STRONG,FREEBSD,NETBSD,OPENBSD,SOLARIS
bcrypt   _x         $2x$      16       STRONG,FREEBSD,NETBSD,OPENBSD,SOLARIS
bcrypt   _y         $2y$      16       STRONG,FREEBSD,NETBSD,OPENBSD,SOLARIS
sha512   :          $6$       15       STRONG,GLIBC,FREEBSD,SOLARIS
sha256   :          $5$       15       STRONG,GLIBC,FREEBSD,SOLARIS
md5      :          $1$       9        GLIBC,FREEBSD,NETBSD,OPENBSD,SOLARIS
sunmd5   :          $md5      8        SOLARIS
sha1     :          $sha1     20       NETBSD
nthash   :          $3$       7        FREEBSD
des_xbsd :          _         3        FREEBSD,NETBSD,OPENBSD,OSX
des_big  :          :         2        :
des      :          :         2        GLIBC,FREEBSD,NETBSD,OPENBSD,SOLARIS,OSX