Add hash method to EmailRepository