Skip to content

athulkrishnan/ext-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Require this package with composer:

composer require qing7777/hash

Configuration

To use your own settings, publish config.

php bin/hyperf.php vendor:publish qing7260/hash

config/autoload/hash.php

获取Hash

use Qing7777\Hash\Hash;

$str = '12345';

$encryptedStr = Hash::make($str);

or

use Hyperf\Utils\ApplicationContext;
use Qing7777\Hash\HashInterface;

$str = '12345';

$HashInterface = ApplicationContext::getContainer()->get(HashInterface::class);

$HashInterface->make($str);

使用指定Hash算法加密

use Qing7777\Hash\Hash;

$str = '12345';

// Supported: "bcrypt", "argon"

$encryptedStr = Hash::driver("argon")->make($str);

About

Testing

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENCE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages