Implement SimplePasswordHash based on DJB hash

It's a very simple and efficient algorithm created by Daniel J.
Bernstein. A quick manual test showed that there are no duplicates for
strings up to six characters in length.