Download the PHP package nechin/smart-hash without Composer
On this page you can find all versions of the php package nechin/smart-hash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nechin/smart-hash
More information about nechin/smart-hash
Files in nechin/smart-hash
Package smart-hash
Short Description A simple hash generator that makes it easy to get a hash for any text.
License MIT
Homepage https://nechin.github.io/smart-hash/
Informations about the package smart-hash
nechin/smart-hash
About
A simple hash generator that makes it easy to get a hash for any text.
From Wikipedia:
A hash function is any function that can be used to map data of arbitrary size to fixed-size values. The values returned by a hash function are called hash values, hash codes, digests, or simply hashes. The values are used to index a fixed-size table called a hash table. Use of a hash function to index a hash table is called hashing or scatter storage addressing.
Installation
The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to your project's composer.json
:
Requirements
PHP 5.4.0
Examples
If no length is specified, the ripemd128 algorithm is used, which will generate a string of 32 hexadecimal digits.
The following hash lengths are available: 8, 16, 32, 40, 48, 56, 64, 80, 96, 128. For each length is used its own optimal algorithm.
It is possible to specify the desired algorithm as the third parameter. Then the second parameter should be false.
Copyright and license
The nechin/smart-hash library is copyright © Alexander Vitkalov and licensed for use under the MIT License (MIT). Please see LICENSE for more information.