temas765/password-hasher

该软件包最新版本(v1.1.0)没有可用的许可证信息。

密码哈希器

v1.1.0 2024-02-17 01:29 UTC

This package is auto-updated.

Last update: 2024-09-17 02:51:09 UTC


README

密码哈希器

要求

  • PHP 8.0

安装

composer require temas765/password-hasher

使用

<?php

$passwordHasher = new PasswordHasher(new Md5Hasher());
echo "Password hash: {$passwordHasher->hashPassword('secret')}"; // Password hash: 5ebe2294ecd0e0f08eab7690d2a6ee69