DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

config:passcrypt

Configuration Setting: passcrypt

Passwords should always be saved as an encrypted hash. DokuWiki supports multiple hash methods, which one it should use is defined by this option. What you choose here depends on your security needs and if you want to use an existing authentication database. DokuWiki is able to determine which method was used from an encrypted password, so you can always change the used method as long as your authentication backend supports this.

When using salted hashing, a random salt is generated when the user is initially assigned a password, and each time the user changes their password. The salt is stored with the password. Whether DokuWiki is able to apply a salt depends on the authentication backend used.

The following hash methods are available:

Option Description
smd5 Salted MD5 hashing
md5 Simple MD5 hashing (this was the method used in older Releases)
apr1 Apache style salted MD5 hashs
sha1 SHA1 hashing
ssha Salted SHA1 hashing (as used in LDAP)
crypt Unix crypt
mysql Password as used in MySQL before Version 4.1.1
my411 Password as used in MySQL 4.1.1 or higher
kmd5 Another salted MD5 based hashing as used in UNB
pmd5 Salted MD5 based algorithm as used by Wordpress
hmd5 Same as pmd5 but as used by PhpBB3
mediawiki Salted MD5 hashing as used by MediaWiki (Method B)
djangosha1 Salted SHA1 hashing as used by the Python Django Framework.
djangomd5 Salted MD5 hashing as used by the Python Django Framework.
bcrypt Salted blowfish hashing. Needs PHP 5.3+
sha512 Salted SHA512 hashing. Needs PHP 5.3.2+
  • Type: String
  • Default: smd5

See also

config/passcrypt.txt · Last modified: 2013/06/11 11:24 by 27.251.49.83