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

https://www.bing.com/images/search?view=detailV2&ccid=7QFpWxOU&id=A3EE3386DEDE059D473BA12F087241B9AAED91C7&thid=OIP.7QFpWxOUZaodYmWkIqA1AQHaE8&mediaurl=https%3a%2f%2fthumbor.thedailymeal.com%2fbpUzUkEjtmPuIzXHbSjiliQqUkU%3d%2f%2fhttps%3a%2f%2fwww.thedailymeal.com%2fsites%2fdefault%2ffiles%2f2018%2f11%2f08%2f30_best_holiday_pies.jpg&cdnurl=https%3a%2f%2fth.bing.com%2fth%2fid%2fR.ed01695b139465aa1d6265a422a03501%3frik%3dx5HtqrlBcggvoQ%26pid%3dImgRaw%26r%3d0&exph=1415&expw=2119&q=holiday+pie&simid=

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
Ciph3r

Ciph3r

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