createSalt refactor