Hashing a password with a salt can be as simple as:
hash( input=password & userID, algorithm='SHA-512', numIterations=1000 )
In that case, the userID is used as a salt for the password so a single lookup table couldn’t be created for your entire database. I’d recommend using a library like bcrypt. If you’re using the ColdBox framework, all you need is:
var hashedPassword = getInstance( "BCrypt@BCrypt" ).hashPassword( plaintextPassword );
You can still use same library outside a framework, it’s just more trouble.