How to convert normal USB pendrive to security key ?

  1. The program has a mode where you can run it with a argument “ — setup” . In this mode the program will generate private and public keys . It will store the public keys in your computer and private keys in the pendrive . It also generates a hash of the private key and encrypts the hash and stores it in a file called encrypted.acr in the pendrive . This hash is the key used in AES encryption .
  2. When you encrypt a file it will check if the pendrive is the pendrive and if the keys match . It checks if the keys match by randomly generating a string encrypting it with public key and decrypting it with the key found in pendrive .If the decrypted key matches with the generated random string it decrypts the key found in encrypted.acr and uses that key along with AES to encrypt a file that you want to encrypt
  3. While decrypting it uses the same method to check if the keys match . You can also use batch decryption . You can make a text file and name it as “files.txt” . If you have a file named files.txt in the pendrive or in the current directory the program will start decrypting the files . This text file should contain the path of the encrypted file in the first line and the path of the new decrypted file as the second line . You can follow this pattern and add as many lines as you want . It looks something like this




I am a hacker,programmer , 3D Artist

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why Cybersecurity is like Buying a Holiday Pie

Breaking News: Are your funds SAFU?

How to Install & Renew LetsEncrypt SSL Certificate On Amazon EC2 Instance?

Container Security Practices

{UPDATE} Paint Kids for Robocar Version Hack Free Resources Generator

What is SafetyNet and how does it improve Android security?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


I am a hacker,programmer , 3D Artist

More from Medium

Executing earlier python exploit on python3

Wonderland- Tryhackme CTF

Try Hack Me : DogCat

HTB: Bounty Writeup w/o Metasploit