Client side hashing and encryption