My colleague said to me:
sha1 is an obsolete standard.
Is there an option to use sha-2, which is a more current and secure algorithm?
Does myDBR work with sha2 (sha-2) or only sha1
(5 posts) (2 voices)-
-
You can use SHA2 with following statements in
user/defaults.php
:$mydbr_defaults['hashing_algorithm']['default'] = 'sha256';
$mydbr_defaults['hashing_algorithm']['automatic_parameter_session_id'] = 'sha256';
$mydbr_defaults['hashing_algorithm']['sso'] = 'sha256';Note that with SHA1 you will need 2^69 operations for collisions and 2^80 operations for brute force atttacs. Rainbow tables will not work with myDBR as the strings are salted.
--
myDBR Team -
Thanks.
And in my PHP code when I run the hash command should I use
'sha256'
or
'sha2'
or
'sha-2'
or something else? -
See the PHP documentation.
--
myDBR Team -
Thanks, it worked
Reply
You must log in to post.