merkdev/simple-php-crypt
Composer 安装命令:
composer require merkdev/simple-php-crypt
包简介
Converts an integer to YouTube style (like) crypted string. Simple crypt class for PHP
README 文档
README
This tiny PHP class helps you to generating YouTube style hash from an Integer.
Note : This script requires BC-Math library BCMath Arbitrary Precision Mathematics
Usage
Hash
MerkDev\Crypt::hash(9919)
UnHash
MerkDev\Crypt::unhash("CKAr6PzmUP")
Example
- Clone this Repo :
https://github.com/merkdev/simple-php-crypt - Run a local server :
php -S localhost:4321 example/index.php - Open it on browser : http://localhost:4321
Install it via Composer
composer require merkdev/simple-php-crypt
统计信息
- 总下载量: 434
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-11