2017 © Pedro PelĂĄez
 

library phashp

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

image

rogervila/phashp

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

  • Tuesday, January 17, 2017
  • by rogervila
  • Repository
  • 1 Watchers
  • 1 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Phashp

Build Status Build status StyleCI Code Climate Dependency Status SensioLabsInsight, (*1)

Combines different hash algorithms in order to create a stronger hashed string., (*2)

You can find the v1 docs here., (*3)

Install

First, install Composer, (*4)

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

Then, require the library on your project, (*5)

$ 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., (*6)

cycles() accepts an integer greater than 0, that will determine the amount of cycles., (*7)

WARNING: a high amount of cycles can make PHP run out of memory., (*8)

output() accepts a valid hashing algorithm. The processed string will be returned in that hash algorithm format., (*9)

hash() the only mandatory method. It accepts the string that will be processed. It must go at the end of the fluent concatenation., (*10)

License

MIT, (*11)

The Versions

17/01 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Roger VilĂ 

security string hash

10/01 2017

1.0.x-dev

1.0.9999999.9999999-dev

Combines different hash algos in order to create a strong hashed string

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Roger VilĂ 

security hash

19/11 2015

1.0.0

1.0.0.0

Combines different hash algos in order to create a strong hashed string

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Roger VilĂ 

security hash