Class for hashing with salt