note 121960 deleted from function.password-hash by peehaa

From: Date: Sun, 28 Apr 2019 10:34:40 +0000
Subject: note 121960 deleted from function.password-hash by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210803@lists.php.net to get a copy of this message
Note Submitter: omidbahrami1990 at gmail dot com ---- 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 */ ?>

« previous php.notes (#210803) next »