Need to create a hash based on email adrdess or zip code

Need to create a hash based on email adrdess or zip code

I would like to create a unique hash for a public user based on email address or zip code or some other field. Any idea how I can do this easily or point me to a coding or function solution? Thought there might be a .hashcode() function somewhere. Chris