rogervila/phashp
最新稳定版本:1.0.0
Composer 安装命令:
composer require rogervila/phashp
包简介
Combines different hashing algorithms in order to create a strong hashed string
关键字:
README 文档
README
Combines different hash algorithms in order to create a stronger hashed string.
You can find the v1 docs here.
Install
First, install Composer
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
Then, require the library on your project
$ composer require rogervila/phashp
Usage
// Simple usage Phashp::hash('stringToHash'); // Full options Phashp::algos(['sha1', 'sha256'])->cycles(2)->output('sha512')->hash('stringToHash');
Docs
algos() accepts an array of valid hashing algorithms. You can find which ones you can use on your current PHP version with PHP hash_algos() method.
cycles() accepts an integer greater than 0, that will determine the amount of cycles.
WARNING: a high amount of cycles can make PHP run out of memory.
output() accepts a valid hashing algorithm. The processed string will be returned in that hash algorithm format.
hash() the only mandatory method. It accepts the string that will be processed. It must go at the end of the fluent concatenation.
License
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-10