prostoroman/bcrypt

A library for encoding strings using bcrypt.

dev-master 2013-05-02 20:40 UTC

This package is not auto-updated.

Last update: 2024-04-23 00:48:04 UTC


README

Build Status

Provides a bcrypt function for PHP.

Installation

To install Bcrypt, you must add it to the list of dependencies in your composer.json file.

$ php composer.phar require kherge/bcrypt=2.*

Example

$encoded = bcrypt('test');
// $2y$10$JKjL8xFIoy4rdQLw3j26L.zEFs9IWb3tGEsDElPkDmN/.ngm46zYu

echo 'Verified? ', bcrypt_verify('test', $encoded) ? 'Yes' : 'No', "\n";
// Verified? Yes

Please see the wiki for more detailed usage information.