Changed the hash to 512 bit output. Now hashes salt before use.