I have two protected worksheet in excel of my colleague, he forgot the password so i wan`t to password as a plain text, help me to make this SHA-512 hashed password correct way so i can run hashcat on them -
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Of course. I can help you format those Excel worksheet protection hashes into the correct format for Hashcat.
Based on the XML data you provided (algorithmName="SHA-512", spinCount="100000"), these are hashes from a modern version of Excel (Office 2013 or newer).
Understanding the Hashcat Format
Hashcat requires a specific format for these types of hashes. The mode you'll use is 9800, which corresponds to MS Office 2013.
The format looks like this:
$office$*2013*<iterations>*<salt>*<hash>
To get this, we need to:
Extract the spinCount (iterations), saltValue, and hashValue.
The saltValue and hashValue from the XML are encoded in Base64. We must decode them from Base64 and then re-encode them into Hexadecimal for Hashcat.
Dictionary Attack (most common): You'll need a wordlist file (like rockyou.txt or another list).
bash
hashcat -m 9800 -a 0 hashes.txt /path/to/your/wordlist.txt
Brute-Force / Mask Attack: If you suspect the password follows a pattern (e.g., 8 numbers).
bash
# This example tries all 8-digit passwords (00000000 to 99999999)
hashcat -m 9800 -a 3 hashes.txt ?d?d?d?d?d?d?d?d
VERY IMPORTANT WARNING
The spinCount of 100,000 and the SHA-512 algorithm make this a very strong hash. Cracking it will be extremely slow and computationally expensive.
Unless the password is very simple and in a common wordlist, cracking it on a standard computer could take days, months, or even years.
You will need a powerful GPU to have any reasonable chance of success in a short amount of time. Running this on a CPU will be incredibly slow.
Good luck with the recovery process!
Disclaimer: This information is provided for the legitimate purpose of recovering forgotten passwords for files you have the right to access. Please use this knowledge responsibly and ethically.