dev-master
9999999-devCombines different hashing algorithms in order to create a strong hashed string
MIT
The Requires
- php >=5.4.0
The Development Requires
by Roger VilĂ
security string hash
Wallogit.com
2017 © Pedro PelĂĄez
Combines different hashing algorithms in order to create a strong hashed string
Combines different hash algorithms in order to create a stronger hashed string., (*2)
You can find the v1 docs here., (*3)
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
// Simple usage
Phashp::hash('stringToHash');
// Full options
Phashp::algos(['sha1', 'sha256'])->cycles(2)->output('sha512')->hash('stringToHash');
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)
MIT, (*11)
Combines different hashing algorithms in order to create a strong hashed string
MIT
security string hash