fizzday / fizzbcrypt
a default php bcrypt for encrypt and decrypt(php使用bcrypt默认的加密和解密)
dev-master
2017-02-16 09:33 UTC
This package is not auto-updated.
Last update: 2024-11-23 21:15:24 UTC
README
a default php bcrypt for encrypt and decrypt(php使用bcrypt默认的加密和解密)
Installation
Use composer to manage your dependencies and download:
composer require fizzday/fizzbcrypt
Example
<?php use Fizzday\FizzBcrypt\FizzBcrypt; // echo FizzBcrypt::encrypt(123); // $2y$10$UxHKXIkNJkpJ6oTxrWkkL.uLQdCVeLI2Q5EDzKnOkSnaQc/L1mYHi var_dump(FizzBcrypt::password(123)->decrypt('$2y$10$UxHKXIkNJkpJ6oTxrWkkL.uLQdCVeLI2Q5EDzKnOkSnaQc/L1mYHi'));