Fixes #3497: add SHA512 and Linux's shadow file compatible hashes