How to check all Details, encrypt or decrypt any PDF file using command line Android Termux [Also work for non-rooted devices]
DISCLAIMER
This Tutorial is made for educational purpose only, I didn't harm anyone everything shown an used in this Tutorial for testing belongs to me such as the computer, smartphone and my website. Every Tutorial on utopian.io is made to teach people how to stay safe and help others for making them safe.
HACKING, CRACKING, STEALING OR ANY SUCH KIND OF ACTIVITY IS A CYBER CRIME WHICH CAN LAND YOU IN JAIL. I DO NOT SUPPORT ANY SUCH KIND OF ACTIVITY
Introduction
peepdf is a Python tool to explore PDF files in order to find out if the file can be harmful or not. With peepdf it's possible to see all the objects in the document showing the suspicious elements, supports the most used filters and encoding, it can use to encode, encrypt or decrypt a PDF file. Some time the Decrypt command give error so i provide a Alternative way to Unlock the Locked PDF.
What Will I Learn?
- How to check deep details of any PDF File.
- How to Encrypt PDF with custom Password.
- How to Decrypt PDF
Requirements
- Termux :
Download Link - PDF Unlocker
Download Link - GitHub Link
https://github.com/jesparza/peepdf.git
Difficulty
- Intermediate
How to setup peepdf in Termux
- 1: Run Termux and execute the command type
pkg update && pkg upgrade && pkg install python2 && pkg install git
and press Enter.
- 2: Now type command
cd peepdf
and press Enter.
- 3: Now type command
chmod +x peepdf.py
and Press Enter
- 4: Type command
python2 peepdf.py -i
and press Enter.
How to check details of a PDF
- 1: Type command
open/sdcard/FileName.pdf
. Here FileName.pdf is the name of your PDF File with .pdf extension. In my case file name is "name.pdf".
- 2: This will open the PDF file and give all its detail.
- 3: Now you can check more detail by typing the command
tree
How to encrypt PDF
- 1: After open the PDF as describes above, then type command
encrypt Yourpassword
Here "YourPassword" is Password for PDF file to open. In my case i chose "1234"
- 2: Now type command
save
and press Enter.
- Your PDF file is now password protected
How to decrypt
- 1: First open the file again by command
open -f /sdcard/FileName.pdf
and press Enter.
- 2: Then type command
decrypt YourPassword
and press Enter. Password must be the same as set to encrypt the same PDF.
- If this decrypting method gives error you can use simple use PDF Unlocker App.(Link in Requirements)
How to unlock with PDF Unlocker
- 1: Install and Run the app and click on 'OPEN PDF' and select your encrypted file
2: Type the password to open encrypted PDF and then click on "back-key" once and click on "Unlock". This will save a unlocked PDF file in the same directory
After click the back-key once click on Unlock
And then click on OK
3: Your file is now decrypted and saved in the same directory
Curriculum
How to setup and run python and C++ in Android Termux
Tutorial 2: How to make a call and send SMS using Android Termux
Tutorial 3: How to install SQLmap in Android Termux [Also work for non-rooted devices]
Tutorial 4: How to Trace exact IP Location on Android Termux [Also work for non-rooted devices]
Posted on Utopian.io - Rewarding Open Source Contributors
@faisalamin, No matter approved or not, I upvote and support you.
Thanks Dear. Thanks all !
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Hey @faisalamin I am @utopian-io. I have just upvoted you!
Achievements
Suggestions
Get Noticed!
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x