put createSalt method to BaseHasher class

I found that all the classes extending BaseHasher have the same method createSalt, so I put the createSalt method to BashHasher.