note 121960 added to function.password-hash

From: Date: Fri, 01 Dec 2017 19:35:26 +0000
Subject: note 121960 added to function.password-hash
Groups: php.notes 
Request: Send a blank email to php-notes+get-209291@lists.php.net to get a copy of this message
This Is The Most Secure Way To Hash Password, Here Salt Will Be Automatically Generated, Cost Will Be 10 Which Is Secure And Fast Enough. <?php function secured_hash($input) { $output = password_hash($input,PASSWORD_DEFAULT); return $output; } /* $input ---> Is The String You Want To Hash PASSWORD_DEFAULT ---> It Means Use The Lastest And Strongest Algorithm To Hash $output ---> Is The Hashed String You Can Store In Your Database */ ?> ---- Server IP: 208.43.231.9 Probable Submitter: 139.162.22.97 ---- Manual Page -- http://php.net/manual/en/function.password-hash.php Edit -- https://master.php.net/note/edit/121960 Del: integrated -- https://master.php.net/note/delete/121960/integrated Del: useless -- https://master.php.net/note/delete/121960/useless Del: bad code -- https://master.php.net/note/delete/121960/bad+code Del: spam -- https://master.php.net/note/delete/121960/spam Del: non-english -- https://master.php.net/note/delete/121960/non-english Del: in docs -- https://master.php.net/note/delete/121960/in+docs Del: other reasons-- https://master.php.net/note/delete/121960 Reject -- https://master.php.net/note/reject/121960 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209291) next »