note 116977 added to ref.password

From: Date: Mon, 30 Mar 2015 09:07:04 +0000
Subject: note 116977 added to ref.password
Groups: php.notes 
Request: Send a blank email to php-notes+get-202076@lists.php.net to get a copy of this message
<?php /** * Simple example. */ $password = 'SECRET'; /** * Prepare password to store at DB. */ $passwordHash = password_hash($password, PASSWORD_DEFAULT); // Now $passwordHash contains string with length 60 characters, // like: "$2y$10$wIUYtGKKVF3P3YO1O.IrI.Zav6j6H2/tCKEe4U/Mn8ykGVIyOlwZ." // and it can be stored at DB. /** * Verify password. */ $isPasswordVerified = password_verify($password, $passwordHash); // In our case $isPasswordVerified will contains true. // It means that password verified. ---- Server IP: 72.52.91.14 Probable Submitter: 31.42.50.94 ---- Manual Page -- http://php.net/manual/en/ref.password.php Edit -- https://master.php.net/note/edit/116977 Del: integrated -- https://master.php.net/note/delete/116977/integrated Del: useless -- https://master.php.net/note/delete/116977/useless Del: bad code -- https://master.php.net/note/delete/116977/bad+code Del: spam -- https://master.php.net/note/delete/116977/spam Del: non-english -- https://master.php.net/note/delete/116977/non-english Del: in docs -- https://master.php.net/note/delete/116977/in+docs Del: other reasons-- https://master.php.net/note/delete/116977 Reject -- https://master.php.net/note/reject/116977 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202076) next »