Do you think it is safe to store your password in Chrome?
Does Chrome store your password safely?
My answer is “No”.
A simple program to decrypt the Chrome password saved on your machine.
This code has only been tested on Windows, so it may not work on other OS like Linux or MAC.
Now first I will check my saved password in Chrome.
Go to settings >> Autofill and passwords >> Google Password Manager
When you try to get the password then it’s asking for the Windows user password.
Now I am able to get the password.
Decrypting Chrome passwords
Four important steps to decrypt Chrome passwords:
- Find the encryption key
- Find the encrypted passwords
- Understand AES cryptography
- Decrypt the saved passwords
Find the encryption key:
The encryption key is kept in a JSON file, which can be located in the following place on your Windows PC.
C:\Users\<PC Name>\AppData\Local\Google\Chrome\User Data\Local State
We have found the key to decrypt the saved password:
Open the file “Local state” and search for “encrypted_key”.
Find the encrypted passwords:
The encrypted password is saved in a SQLite database, which can be located in the following location on your Windows PC:
C:\Users\<PC Name>\AppData\Local\Google\Chrome\User Data\Default\Login Data
Important Notes: Install Python and Git on your Windows machine.
For details on how to download and install Python, check the tutorials for details:
Download and install Git for Windows.
Open the PowerShell and run:
git clone https://github.com/ohyicong/decrypt-chrome-passwords.git
I created one Folder in C drive and named as “Chrome Hack”. (c:\>)
Now we go to the directory decrypt-chrome-passwords and before changing the directory verify first by using ls command.
Install PyCryptodome by running the below command:
pip install pycryptodomex
PyCryptodome is a self-contained Python package of low-level cryptographic primitives. It supports Python 2.7, Python 3.5, and newer.
Now run the final command to get the passwords.
However, I also checked banking sites and was unable to decode them.
We can also export the auto-save all decrypted passwords in .CSV format.
So go to the folder where you clone to download and install.
Next, you are able to see one file called decrypted_password.csv so take that file to open.
,CSV file output.