Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Codeigniter bcrypt Library

Simple bcrypt hashing library helper for Codeigniter.

Crypting

This function will help you crypt any string.

$input_password = $this->input->post('input-password');
$hashed_password = $this->bcrypt->hash($password);

Decrypting (comparing)

After you got the crypted string (method above), you can't reverse it, but can compare (and validate) the source string from the hashed one. The compare method receives 2 strings, the original and the hashed one. Returns true if the second was generated by the first one.

$user_password = $this->input->post('input-password');
$is_really_the_password = $this->CI->bcrypt->compare($password_string, $this->user_data->password);

About

Simple bcrypt high-security hashing library for codeigniter.

Resources

Stars

6 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages