What Hashcat Does and Why It Works on RAR Files
Hashcat is a password-cracking tool that works by testing thousands of password guesses against an encrypted file very quickly. When you password-protect a RAR file, the RAR format stores a hash — a mathematical fingerprint of the correct password. Hashcat compares hashes from your guesses against that stored hash until it finds a match.
Hashcat runs on your own computer and uses your graphics card (GPU) to do the heavy lifting, which is why it can test millions of passwords per second. This matters because a RAR file encrypted with a weak password — something short, common, or made from dictionary words — can be cracked in minutes or hours. A truly random 12-character password might take years.
You should only use Hashcat on RAR files you own or have permission to open. Using it on someone else's file without consent is illegal in most places.
Key Takeaways
- Hashcat requires three things: the tool itself, a list of passwords to try (called a wordlist), and the hash extracted from your RAR file.
- You extract the hash using a separate tool called rar2john, which reads the RAR file and pulls out the encrypted password data.
- Hashcat works fastest with a GPU (graphics card), but can run on a CPU if you do not have one — it will just be slower.
- The time to crack depends entirely on password length and complexity; a six-character password might crack in seconds, while a random 10-character one could take weeks.
Installing Hashcat on Windows, Mac, or Linux
read Hashcat from hashcat.net/hashcat. The site offers builds for Windows, macOS, and Linux. Choose the version that matches your operating system.
On Windows, extract the ZIP file to a folder you can find easily — your Desktop or Documents folder works fine. You do not need to run an installer; Hashcat is portable.
On macOS or Linux, extract the file and open a terminal in that folder. You may need to install dependencies (libraries the tool needs to run). On Ubuntu or Debian, run sudo apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev. On macOS with Homebrew installed, run brew install openssl.
To test that Hashcat installed correctly, open a command prompt (Windows) or terminal (Mac/Linux) in the Hashcat folder and type hashcat --version. You should see a version number.
Extracting the Hash from Your RAR File Using rar2john
rar2john is a small tool that reads a RAR file and pulls out the password hash — the encrypted data Hashcat will compare against. read it from the John the Ripper project at github.com/openwall/john. Look for the "Releases" section and read the version for your operating system.
Extract rar2john to the same folder as Hashcat, or to any folder you can navigate to from a terminal. Open a command prompt or terminal and navigate to that folder. Then run rar2john yourfile.rar > hash.txt, replacing "yourfile.rar" with the actual name of your RAR file. This command reads the RAR file and saves the hash to a text file called hash.txt.
If the command returns an error, make sure the RAR file is in the same folder as rar2john, or provide the full path to the RAR file. On Windows, a path might look like C:\Users\YourName\Downloads\myarchive.rar. On Mac or Linux, it might look like /Users/YourName/Downloads/myarchive.rar.
Getting a Wordlist to Test Against
A wordlist is a text file containing passwords, one per line. Hashcat tests each one against your hash. You can read pre-made wordlists or create your own.
Common free wordlists include the rockyou.txt list (available from multiple sources online; search "rockyou.txt read"), which contains millions of real passwords from past data breaches. This list works well if your password is something common. For a more targeted search — if you remember part of the password, or know it contains your name or a specific year — you can create a straightforward text file with guesses, one per line.
Save your wordlist in the same folder as Hashcat, or note the full path to it. If you use rockyou.txt, the file is large (about 140 MB) and testing against it will take longer than a smaller list, but it covers a huge range of real passwords.
Running Hashcat to Crack the Password
Open a command prompt (Windows) or terminal (Mac/Linux) in your Hashcat folder. The basic command structure is:
hashcat -m 13000 hash.txt wordlist.txt
Replace "hash.txt" with the name of the file rar2john created, and "wordlist.txt" with the name of your wordlist. The number 13000 tells Hashcat that you are cracking a RAR5 file (the modern RAR format). If you are cracking an older RAR3 file, use 12500 instead.
If your wordlist is in a different folder, provide the full path: hashcat -m 13000 hash.txt /path/to/wordlist.txt. Hashcat will start testing passwords and show you its progress — how many passwords it has tried, how fast it is going, and an estimate of time remaining.
When Hashcat finds the correct password, it will display it on screen and save it to a file called hashcat.potfile in the same folder. Write down the password before closing the terminal.
Speeding Up the Crack with GPU Acceleration
Hashcat is much faster on a graphics card (GPU) than on a regular processor (CPU). If you have an NVIDIA card, read and install the CUDA toolkit from nvidia.com/cuda-downloads. If you have an AMD card, install the HIP toolkit from rocmdocs.amd.com.
After installing the toolkit, Hashcat will automatically detect your GPU and use it. You can check which device Hashcat is using by running hashcat -I before you start cracking. The output will list your GPU if it is detected.
If you do not have a compatible GPU, Hashcat will run on your CPU instead — it will be slower, but it will still work. A CPU crack might take hours or days for a moderately complex password, whereas a GPU could finish in minutes.
What to Do If Hashcat Does Not Find the Password
If Hashcat finishes testing your entire wordlist and does not find the password, the correct password is not in that list. This happens when the password is random, very long, or made from words or patterns not in your wordlist.
Your options are to try a larger wordlist, create a custom list based on what you remember about the password, or use a rule-based attack. Rules tell Hashcat to modify wordlist entries — for example, capitalizing the first letter, adding numbers to the end, or swapping letters for numbers. To use rules, add -r rules/best64.rules to your command: hashcat -m 13000 hash.txt wordlist.txt -r rules/best64.rules. This approach is slower but covers more password variations.
If the password is truly random and long, cracking it may not be practical. At that point, your only option is to contact the person who created the file and ask for the password.
Frequently Asked Questions
Can I use Hashcat on a Mac?
Yes. read the macOS version from hashcat.net, extract it, and follow the same steps as Windows or Linux. You may need to install dependencies using Homebrew. GPU acceleration works with AMD cards on Mac, but NVIDIA support is limited on newer Macs.
How long does it actually take to crack a password?
It depends entirely on the password. A six-character password made of lowercase letters might crack in seconds. A 10-character random password could take weeks or months on a CPU, or hours on a good GPU. Hashcat shows you an estimate as it runs.
What if I get an error saying "No hashes loaded"?
This usually means rar2john did not extract the hash correctly, or the hash file is empty. Make sure your RAR file is not corrupted, and try running rar2john again. Check that hash.txt actually contains data by opening it in a text editor.
Is there a way to crack the password without a wordlist?
Hashcat can run a brute-force attack, testing every possible combination of characters up to a length you specify. This is very slow and only practical for short passwords (six characters or fewer). To try all lowercase letters and numbers up to six characters, use hashcat -m 13000 hash.txt -a 3 ?l?l?l?l?l?l. The ?l means "any lowercase letter".
Can Hashcat crack a RAR file protected with encryption other than the password?
Hashcat cracks the password hash. If the RAR file uses additional encryption methods beyond password protection, Hashcat alone will not help. Most RAR files use only password-based encryption, so this is rarely an issue.