Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1005 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 1005 Bytes

axy\crypt

Some crypt algorithms.

Latest Stable Version Minimum PHP Version Tests Coverage Status License

Documentation

APR1: Apache APR1-MD5 algorithm

use axy\crypt\APR1;

$hash = APR1::hash($string);
APR1::verify($string, $hash); // TRUE

BCrypt

use axy\crypt\BCrypt;

$hash = BCrypt::hash($string);
BCrypt::verify($string, $hash); // TRUE

Set computed time (5 by default):

$hash = BCrypt::hash($string, 10);