|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2022-08-03 (4 months ago) ||Not yet rated by the users||Total: 54 This week: 1||All time: 10,294 This week: 491|
This package can generate hash values of a string using Murmurhash.
It takes a given string and a seed integer value as parameters.
The package computes the hash value of the string using the Murmurhash algorithm.
|Hashing is an operation that computes a value from a string of data.
Hashing operations help check the integrity of data that may be transmitted between a source computer and a destination computer to detect data transmission failures caused by external interferences.
In environments in which security is an important aspect, developers should use cryptographic hashing algorithms to detect malicious alteration of data by people with bad intentions.
In environments where security is not essential due to the low risk of alteration of data by bad-intentioned people, developers can use non-cryptographic algorithms.
Such algorithms do not require so much CPU processing power and can run faster.
Murmurhash is a non-cryptographic algorithm.
This package provides a pure PHP implementation of the Murmurhash algorithm. Therefore it does not require that particular cryptography PHP extensions are available to use this class.
PHP Implementation of MurmurHash3
More information about these algorithms can be found at:
Use composer :
composer require lastguest/murmurhash
You can retrieve an hash via
hash3 static method of class
echo Murmur::hash3("Hello World");
You can pass a precise seed positive integer as second parameter
echo Murmur::hash3("Hello World", 1234567);
If you need the integer hash, use the
echo Murmur::hash3_int("Hello World");
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.