1md5crypt(n)              MD5-based password encryption             md5crypt(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       md5crypt - MD5-based password encryption
9

SYNOPSIS

11       package require Tcl  8.2
12
13       package require md5  2.0
14
15       package require md5crypt  ?1.0.0?
16
17       ::md5crypt::md5crypt password salt
18
19       ::md5crypt::aprcrypt password salt
20
21_________________________________________________________________
22

DESCRIPTION

24       This  package  provides  an  implementation  of  the MD5-crypt password
25       encryption algorithm as pioneered by FreeBSD and currently in use as  a
26       replacement  for  the unix crypt(3) function in many modern systems. An
27       implementation of the closely related Apache MD5-crypt is  also  avail‐
28       able.   The  output  of  these commands are compatible with the BSD and
29       OpenSSL implementation of md5crypt and the Apache 2 htpasswd program.
30

COMMANDS

32       ::md5crypt::md5crypt password salt
33              Generate a BSD compatible md5-encoded  password  hash  from  the
34              plaintext password and a random salt (see SALT).
35
36       ::md5crypt::aprcrypt password salt
37              Generate an Apache compatible md5-encoded password hash from the
38              plaintext password and a random salt (see SALT).
39

SALT

41       The salt passed to either of the encryption schemes implemented here is
42       checked  to  see  if  it begins with the encryption scheme magic string
43       (either "$1$" for MD5-crypt or "$apr1$" for Apache crypt). If so,  this
44       is removed. The remaining characters up to the next $ and up to a maxi‐
45       mum of 8 characters are then used as the salt.  The  salt  text  should
46       probably  be  restricted  the set of ASCII alphanumeric characters plus
47       "./" (dot and forward-slash) - this is to preserve maximum  compatabil‐
48       ity with the unix password file format.
49

EXAMPLES

51       % md5crypt::md5crypt password 01234567
52       $1$01234567$b5lh2mHyD2PdJjFfALlEz1
53
54
55       % md5crypt::aprcrypt password 01234567
56       $apr1$01234567$IXBaQywhAhc0d75ZbaSDp/
57
58

SEE ALSO

60       md5
61

KEYWORDS

63       hashing, md5, md5crypt, message-digest, security
64
66       Copyright (c) 2003, Pat Thoyts <patthoyts@users.sourceforge.net>
67
68
69
70
71md5crypt                             1.0.0                         md5crypt(n)
Impressum