Class refactoring

Method hash.setSalt(generateSalt()) will be always invoked. It makes more sense in another class