Refactor hashing utility functions from MWCryptRand and make public
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 26 Aug 2014 17:09:54 +0000 (13:09 -0400)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 1 Oct 2015 01:18:23 +0000 (01:18 +0000)
commit77d62edef3d3ca020d792919bf0924960445f5be
tree07969ef1cf741975d272d778d4439069def6bf48
parent4d59cba3ab401f1c18d4af96bf4b1475cc9f2dec
Refactor hashing utility functions from MWCryptRand and make public

MWCryptRand already has some useful utility functions wrapping PHP's
hash() and hash_hmac(). Let's make them public so we can use them from
other code.

But since "MWCryptRand" isn't really a good place for hashing functions,
let's move them to "MWCryptHash" instead.

Change-Id: I7542c719ac72beba7b0f6aa170bdb4c69fa6beab
autoload.php
includes/utils/MWCryptHash.php [new file with mode: 0644]
includes/utils/MWCryptRand.php
tests/phpunit/includes/utils/MWCryptHashTest.php [new file with mode: 0644]