Hash function used to encrypt