Registry / crypto / laminas-laminas-crypt

laminas-laminas-crypt

JSON →
library4.0.0phppackagistunverified

Strong cryptography tools and password hashing for PHP applications.

composer require laminas/laminas-crypt
INSTALL
IMPORT
SIG · LAMINAS-LAMINAS-CR
L
laminas-laminas-crypt
cryptophpv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Bcrypt
use Laminas\Crypt\Password\Bcrypt;

Hash and verify a password using Bcrypt.

use Laminas\Crypt\Password\Bcrypt; $bcrypt = new Bcrypt(); $securePassword = $bcrypt->create('user_password'); if ($bcrypt->verify('user_password', $securePassword)) { echo 'Password is valid!'; }
Debug
Known issues
breakingPHP 8.1+ required for version 4.0.0
fix
Upgrade to PHP 8.1 or later, or use an older version (e.g., 3.x) for PHP 7.x.
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
laminas-laminas-crypt — pip install laminas-laminas-crypt · libregistry