axy / crypt
Some crypt algorithms
Installs: 20 665
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=8.1
- axy/binary: ~0.2.0
- axy/random: ~0.2.1
Requires (Dev)
- phpunit/phpunit: ~10.0.15
- squizlabs/php_codesniffer: =3.7.1
This package is auto-updated.
Last update: 2024-11-19 14:05:30 UTC
README
Some crypt algorithms.
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);