simple string encryption and hashing