Issue #10730: Use crypto_api for generating nonces and improve hashingmaster
commiteb562360554d5e5c8ed2c1fff8363d13b1b2be32
authorDavid Hicks <hickseydr@optusnet.com.au>
Mon, 8 Feb 2010 14:54:14 +0000 (9 01:54 +1100)
committerDavid Hicks <hickseydr@optusnet.com.au>
Mon, 8 Feb 2010 14:54:14 +0000 (9 01:54 +1100)
tree5ef3b4596b0f12e8851e897c26ba0a0bfb9ed60b
parent045a89705c3c5614bf4ef2e0ae0eeeb3ed38c262
Issue #10730: Use crypto_api for generating nonces and improve hashing

A new Crypto API function crypto_generate_uri_safe_nonce has been added
which generates base64 encoded URI safe alphabet nonces according to
RFC4648. This nonce creation function can thus be used throughout
MantisBT where we need a random nonce. The primary use at the moment is
with form_api tokens.

Hashing throughout the codebase has been improved to use the newly
implemented $g_crypto_master_salt configuration option. This deprecates
a number of older salt configuration options as we now derive salts
from the master salt as needed. The Whirlpool hashing function is used
to generate stronger hashes (instead of the original md5 hashing that is
now deprecated).

RSS keys, cookie strings, lost password confirmation hashes, CAPTCHA
keys, form CSRF tokens and so forth have all been upgraded to make use
of the new Crypto API infrastructure and better hashing/salting methods.
config_defaults_inc.php
core/authentication_api.php
core/config_api.php
core/crypto_api.php
core/form_api.php
core/obsolete.php
core/rss_api.php
docbook/adminguide/en/configuration.sgml
make_captcha_img.php
signup.php
signup_page.php