Marc Alexander
4b81b93d10
[feature/passwords] Make sure hash has the required length
...
Also added tests to make sure that crypto drivers are enforcing the hash
length.
PHPBB3-11610
2013-09-14 13:53:08 +02:00
Marc Alexander
3f70699aa3
[feature/passwords] Use common salt generation function for all types
...
We will be using the same method inside the driver helper class for all hash
types. This is the same function that has been used for the salted md5 hash
of phpBB 3.0.
PHPBB3-11610
2013-09-14 13:52:43 +02:00
Marc Alexander
5574b2a8e9
[feature/passwords] Add driver helper class file
...
PHPBB3-11610
2013-09-14 13:52:38 +02:00
Marc Alexander
61e98fbd63
[feature/passwords] Add driver helper class for additional functions
...
Functions for the helper class might be used in other drivers as well and
therefore shouldn't be limited to just one driver.
PHPBB3-11610
2013-09-14 13:52:25 +02:00
Marc Alexander
d3d317a2de
[feature/passwords] Correctly supply hash salt and settings to bcrypt
...
PHPBB3-11610
2013-09-14 13:51:44 +02:00
Marc Alexander
c9afda5a65
[feature/passwords] Use correct prefix for bcrypt type
...
PHPBB3-11610
2013-09-14 13:51:39 +02:00
Marc Alexander
78a8369173
[feature/passwords] Add basic bcrypt drivers for $2a$ & $2y$ prefix
...
The $2a$ prefix is the basic implementation with the $2y$ prefix extending
that class. However, the default hashes for phpBB should be generated with
$2y$ unless the PHP version is older than 5.3.7.
PHPBB3-11610
2013-09-14 13:51:24 +02:00
Marc Alexander
31d2a8ef05
[feature/passwords] Add salted md5 (phpBB3 default) and phpass drivers
...
The phpass driver extends the standard salted md5 driver of phpBB3. It will
only support the $P$ prefix that phpass uses.
PHPBB3-11610
2013-09-14 13:51:16 +02:00
Marc Alexander
4b6646d1be
[feature/passwords] Add crypto driver base class and interface
...
PHPBB3-11610
2013-09-14 13:51:10 +02:00