承接 rogervila/phashp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rogervila/phashp

最新稳定版本:1.0.0

Composer 安装命令:

composer require rogervila/phashp

包简介

Combines different hashing algorithms in order to create a strong hashed string

README 文档

README

Build Status Build status StyleCI Code Climate Dependency Status SensioLabsInsight

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

MIT

统计信息

  • 总下载量: 37
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-10