Hash Function for Encryption Purposes