Skip to content
Sasha Crofter edited this page May 29, 2012 · 1 revision

Crypt

Cryptography Library

##crp.dsHash (inputPointer, inputLength) Reads data of inputLength from inputPointer and performs a hash function on it. returns the 16-bit hash

For every value, shift the word i left and BOR with EX. XOR all of the resulting values together to produce the hash.

for i in inputLength:
 output ^ (inputPointer[i] << i)
Clone this wiki locally