Pearson's Hash Algorithm

Anonymous
Anonymous

Creates a hash of any string

Version
1.0

Requirements
CitectHMI/SCADA

Description
Converts any string into a fairly unique long integer using Pearson's hash algorithm. There is no easy way to decrypt the value.

This makes it useful for storing passwords. Just compare the hash of the original password with the hash of the user's entry to see if they match.

It can also be used to verify that a file has not been tampered with, since changing anything will change the hash value.

See also Wikipedia.org article Pearson Hashing

Author
Eric Black

Submitter
Eric Black

Attachments