Search by

denosyscore / hashing

deondazy

Password hashing services

Package info

github.com/denosyscore/hashing

pkg:composer/denosyscore/hashing

Statistics

Installs: 258

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v0.11.1 2026-11-12 06:22 UTC

This package is auto-updated.

Last update: 2026-11-12 06:25:20 UTC


README

Read-only split. This package is developed in denosyscore/framework under packages/hashing. Open issues and pull requests there.

Password hashing services

Installation

composer require denosyscore/hashing

Quick start

Password hashing with bcrypt or Argon2id. It needs no container or configuration.

<?php

require __DIR__ . '/vendor/autoload.php';

use Denosys\Hashing\HashManager;

$hash = new HashManager(['driver' => 'bcrypt']);  // or 'argon2id'

$stored = $hash->make('correct horse battery staple');

var_dump($hash->check('correct horse battery staple', $stored));  // bool(true)
var_dump($hash->check('wrong password', $stored));                // bool(false)

if ($hash->needsRehash($stored)) {
    $stored = $hash->make('correct horse battery staple');
}

Included Modules

  • src/Hashing/*

Development

composer validate --strict find src -type f -name '*.php' -print0 | xargs -0 -n1 php -l