dynamophp / hash
Installs: 21
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dynamophp/hash
Requires (Dev)
This package is auto-updated.
Last update: 2025-09-24 17:49:56 UTC
README
Purpose
For a given string the hash function should return a value in the interval [0;360].
Hash : String --> Float [0;360]
To achieve its goal, the hash function will use a given hash function (for example sha256) and hash the input.
From the hashed input, it will transform it to a float in the wanted interval.
In this implementation, the function will take the X first and Y last characters of the primary hash function's result and apply a transformation to obtain a number in the interval.