put createSalt method to BaseHasher class