CI Bcrypt Simple
Library is based on "Simple PHP 5.3+ Bcrypt class and functions" by Marco Arment email@example.com.
Original Source: https://gist.github.com/1053158/
August 04, 2012
Modified Marco's Simple PHP Bcrypt Class to use as a Code Igniter Library for password hashing
PHP 5.3+, Code Igniter
Load library in your models or controllers
In a registration or password-change form:
$hash_for_user = $this->bcrypt->hash($_POST['entered_password']);
In a login form:
$password_check = $this->bcrypt->check($_POST['entered_password'], $stored_hash_for_user);
DON'T BE A DICK PUBLIC LICENSE
Version 1, December 2009
Copyright (C) 2009 Philip Sturgeon firstname.lastname@example.org
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DON'T BE A DICK PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
Do whatever you like with the original work, just don't be a dick.
Being a dick includes - but is not limited to - the following instances:
1a. Outright copyright infringement - Don't just copy this and change the name.
1b. Selling the unmodified original with no work done what-so-ever, that's REALLY being a dick.
1c. Modifying the original work to contain hidden harmful content. That would make you a PROPER dick.
If you become rich through modifications, related works/services, or supporting the original work, share the love. Only a dick would make loads off this work and not buy the original works creator(s) a pint.
Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes you a DONKEY dick. Fix the problem yourself. A non-dick would submit the fix back.