hash signature
This function generates a hash value from the parameters supplied. The intention is to minimize coincidences of two different values resulting to the same hash signature value. Purposes: Fast matching of old vs. new data by just checking the signature values. Great effort has been put in to avoid or minimize colliding signatures, e.g. if two values sharing the same signature. As an example, 'ab' and 'ba' will luckily generate two different signatures. Any number of parameters of any type may be provided, e.g numbers, strings, dates, sets, etc.
Indirect parameter passing is disabled
Min 1
No. | Type | Description |
---|---|---|
1 input |
all types | Contributing values These values contribute to calculating the hash signature. |
Type | Description |
---|---|
numeral | Hash signature Values between 0 and 999999999 (max. 9 digits) |
echo( hash signature(0) );
echo( hash signature('') );
echo( hash signature(' ') );
echo( hash signature(Hello World) );
echo( hash signature(Hello world) );
202308436
163212821
202234692
976078552
508617228