I've created a mysql dump of my users and passwords and awked them into a presentable form:
Passwords:
'6cc5db1c282daa071b0cf80982d19ec0f2e21976a4c39c0c7a3ab30f102b33e2780fd56f4d507e4873630eeb5ba1a8ad8d338bb8abcf64a513630a0dea7044db'
'1927f6acb76f53106a29015ba787e6f7c826f939a64be656a669f78515ffbb2447bee266e5f57751d98f4990f71d131bcb11575199b8e717a0ad91c381df43ca'
'dfd3b2e6478c0ca15102e74251a300abba96296662686f9eeba1f2ebbb9353ad9f91546d0c02ececd5e205c0a94e083a3f63eeec9642f69ad24fd674927c6a3d'
Salts:
'ecb2796f-e69d-4ad6-858f-832170b00b5c'
'a46a3486-79dd-428b-88a8-558303fe8dc8'
'02b6fedc-6932-4893-8725-cd4c8a191d57'
With the first entry on one corresponding to the first on the other. The password for the first entry is password. I am using sha512whirlpool as the hashing algorithm.
I want to use a utility to hash a string ("password" in this case) using that same algorithm and salting it and compare it to the hashed password. Anyone have any ideas what utility might be good for this? I was hoping to use mkpasswd, but I got an error there:
mkpasswd -m sha-512 password ecb2796f-e69d-4ad6-858f-832170b00b5c
And this is the error:
Wrong salt length: 36 bytes when 8 <= n <= 16 expected.
Was I doing something wrong here? Any advice?
Note: I've transferred the question here from stack overflow.