Skip to content
SashaCrofter edited this page Jul 1, 2012 · 5 revisions

Crypt

Cryptography Library

crp.sum (inputPointer, inputLength)

Performs a BSD-checksum operation. returns the 16-bit hash

crp.dsHash (inputPointer, inputLength)

depricated 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