axy/crypt

Some crypt algorithms

Maintainers

👁 axy

Package info

github.com/axypro/crypt

pkg:composer/axy/crypt

Statistics

Installs: 30 116

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.2.0 2023-03-16 15:57 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT bb841165c28bee52ee36d63df610f873f8bec44b

  • Oleg Grigoriev <go.vasac.woop@gmail.com>

hashcryptAPR_MD5

This package is auto-updated.

Last update: 2026-06-19 17:32:25 UTC


README

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);