Commit 62f3297f authored by Sadnan Kibria Kawshik's avatar Sadnan Kibria Kawshik

read me modified

parent 7dd4b210
...@@ -17,7 +17,13 @@ A command-line utility for decrypting tokens and validating JWTs using AES and J ...@@ -17,7 +17,13 @@ A command-line utility for decrypting tokens and validating JWTs using AES and J
git clone <repo-url> git clone <repo-url>
cd TokenDecryptionTool cd TokenDecryptionTool
``` ```
2. Install dependencies: 2. (Recommended) Create a virtual environment:
```bash
python -m venv venv
venv\Scripts\activate # On Windows
source venv/bin/activate # On macOS/Linux
```
3. Install dependencies:
```bash ```bash
pip install -r requirements.txt pip install -r requirements.txt
``` ```
...@@ -38,4 +44,3 @@ Follow the interactive menu to decrypt tokens or validate JWTs. ...@@ -38,4 +44,3 @@ Follow the interactive menu to decrypt tokens or validate JWTs.
## License ## License
MIT MIT
...@@ -57,7 +57,7 @@ def jwt_menu(jwt, aes): ...@@ -57,7 +57,7 @@ def jwt_menu(jwt, aes):
print("Your JWT has been decrypted successfully.") print("Your JWT has been decrypted successfully.")
print("Decrypted JWT:", decrypted_token) print("Decrypted JWT:", decrypted_token)
print("") print()
ch = input("Do you want to see the claims? (y/n): ").strip().lower() ch = input("Do you want to see the claims? (y/n): ").strip().lower()
if ch == 'y': if ch == 'y':
claims = jwt.parse_claims_from_jwt(decrypted_token) claims = jwt.parse_claims_from_jwt(decrypted_token)
...@@ -67,6 +67,9 @@ def jwt_menu(jwt, aes): ...@@ -67,6 +67,9 @@ def jwt_menu(jwt, aes):
break break
except (TokenDecryptionException, JwtException) as e: except (TokenDecryptionException, JwtException) as e:
print("Failed:", e) print("Failed:", e)
cont = input("Do you want to continue? (y/n): ").strip().lower()
if cont != 'y':
break
elif choice == 'f': elif choice == 'f':
token = input("Enter JWT token: ") token = input("Enter JWT token: ")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment