diff options
author | Johannes Schmitt <schmittjoh@gmail.com> | 2011-03-05 13:45:35 +0100 |
---|---|---|
committer | Johannes Schmitt <schmittjoh@gmail.com> | 2011-03-05 13:45:35 +0100 |
commit | fa8db02dbc8bbf8b0c2f2a35e217cd9abdfd28e3 (patch) | |
tree | 64aa6dcc90682ab247e2c47c60fd9f853245d24f /Core/Encoder | |
parent | d22a10a8cfa6a31a9c4af75a94ef7b8c9fabd818 (diff) | |
download | symfony-security-fa8db02dbc8bbf8b0c2f2a35e217cd9abdfd28e3.zip symfony-security-fa8db02dbc8bbf8b0c2f2a35e217cd9abdfd28e3.tar.gz symfony-security-fa8db02dbc8bbf8b0c2f2a35e217cd9abdfd28e3.tar.bz2 |
[Security] changed defaults for MessageDigestEncoder
- encode_as_base64 set to true
- iterations increased to 5000 from 1
Diffstat (limited to 'Core/Encoder')
-rw-r--r-- | Core/Encoder/MessageDigestPasswordEncoder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Encoder/MessageDigestPasswordEncoder.php b/Core/Encoder/MessageDigestPasswordEncoder.php index d874ce7..2b87863 100644 --- a/Core/Encoder/MessageDigestPasswordEncoder.php +++ b/Core/Encoder/MessageDigestPasswordEncoder.php @@ -28,7 +28,7 @@ class MessageDigestPasswordEncoder extends BasePasswordEncoder * @param Boolean $encodeHashAsBase64 Whether to base64 encode the password hash * @param integer $iterations The number of iterations to use to stretch the password hash */ - public function __construct($algorithm = 'sha256', $encodeHashAsBase64 = false, $iterations = 1) + public function __construct($algorithm = 'sha512', $encodeHashAsBase64 = true, $iterations = 5000) { $this->algorithm = $algorithm; $this->encodeHashAsBase64 = $encodeHashAsBase64; |