rogervila/phashp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固