[feature/crypto] Use common salt generation function for all hash types

We will be using the same method inside the crypto driver helper class
for all hash types. This is the same function that has been used for the
salted md5 hash of phpBB 3.0.

PHPBB3-xxxxx