Commit the cryptrand project worked on in git:
authorDaniel Friesen <dantman@users.mediawiki.org>
Tue, 20 Mar 2012 05:17:40 +0000 (05:17 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Tue, 20 Mar 2012 05:17:40 +0000 (05:17 +0000)
commite2ee009e5c4b9632b2067d36dc44009b18ba57df
tree39328267d6e8efdcba483b3d319111ac20965332
parent5c9c710887689dc99f13a414032ca0ec5f5c544a
Commit the cryptrand project worked on in git:
- MWCryptRand: A new api for generating cryptographic randomness for security tokens. Uses whatever cryptographic source is available and if not falls back to using random state and clock drift.
- wfRandomString - A simple non-cryptographic pesudo-random string generation function to replace wfGenerateToken which was written pretending to be secure when it's really not.
- Core updates to use MWCryptRand in various places:
-- user_token generation (to do this we stop generating user_token implicitly and only generate it when needed to avoid depleting the system's entropy pool by reading random data we'll never use)
-- email confirmation token generation
-- password salt generation
-- temporary password generation
-- Generation of the automatic watchlist token
-- login and create user tokens
-- session ids when php's entropy sources are not set
-- the installer when generating wgSecretKey and the upgrade key
RELEASE-NOTES-1.20
includes/AutoLoader.php
includes/CryptRand.php [new file with mode: 0644]
includes/GlobalFunctions.php
includes/Import.php
includes/Preferences.php
includes/User.php
includes/installer/Installer.php
includes/parser/Parser.php
includes/specials/SpecialUserlogin.php
includes/specials/SpecialWatchlist.php