note 124373 added to function.hash-pbkdf2

From: Date: Wed, 06 Nov 2019 12:33:49 +0000
Subject: note 124373 added to function.hash-pbkdf2
Groups: php.notes 
Request: Send a blank email to php-notes+get-212952@lists.php.net to get a copy of this message
And what are those inconvenient methods better? For example, I will do this: unction pass_hash($pwd) { $salt = bin2hex(random_bytes(9)); $hash = hash_pbkdf2('sha512', $pwd, $salt, 1555, 150); return $hash.$salt; } A hacker who hacked into a given database will not be able to understand where the salt is and where the password is. Therefore, I consider this method the most reliable than the built-in php ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.168 (proxied: 178.218.117.43) ---- Manual Page -- http://php.net/manual/en/function.hash-pbkdf2.php Edit -- https://master.php.net/note/edit/124373 Del: integrated -- https://master.php.net/note/delete/124373/integrated Del: useless -- https://master.php.net/note/delete/124373/useless Del: bad code -- https://master.php.net/note/delete/124373/bad+code Del: spam -- https://master.php.net/note/delete/124373/spam Del: non-english -- https://master.php.net/note/delete/124373/non-english Del: in docs -- https://master.php.net/note/delete/124373/in+docs Del: other reasons-- https://master.php.net/note/delete/124373 Reject -- https://master.php.net/note/reject/124373 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#212952) next »