Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Using bcyrpt?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Jemz" data-source="post: 329188" data-attributes="member: 36280"><p>Can someone please tell me how bcrypt works, I was able to encrypt my data </p><p>[PHP] require_once('bcrypt.inc.php');</p><p> // And use the new password_hash() function to encrypt using bcrypt with a 10 cost</p><p> $string = password_hash($string, PASSWORD_BCRYPT, array("cost" => 10));</p><p> // Then return it to the calling function</p><p> return $string;[/PHP]</p><p></p><p>However when it comes to logging in, the hash just keeps on changing so the hash never matches if you get what I mean.</p></blockquote><p></p>
[QUOTE="Jemz, post: 329188, member: 36280"] Can someone please tell me how bcrypt works, I was able to encrypt my data [PHP] require_once('bcrypt.inc.php'); // And use the new password_hash() function to encrypt using bcrypt with a 10 cost $string = password_hash($string, PASSWORD_BCRYPT, array("cost" => 10)); // Then return it to the calling function return $string;[/PHP] However when it comes to logging in, the hash just keeps on changing so the hash never matches if you get what I mean. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Using bcyrpt?
Top