Hashing util

util for hashing password and generating salt