PiEncrypt: a Encryption Algorithm Thst Uses Pi.

by The_KE in Design > Software

37 Views, 0 Favorites, 0 Comments

PiEncrypt: a Encryption Algorithm Thst Uses Pi.

IMG_1500.png

PiEncrypt is a 32 bit Linux terminal tool where you input 3 integers, an input file and an output filename. With the -k flag, it will output the key to a file or you can just copy past it for use in the decryption tool. It uses digits of pi internally to scramble around different values while still being recoverable and considering each of the 3 integers can be anything from 0-~4B and that the key is generated using urandom (which pulls from a bunch of different factors like user inputs, cpu frame timings down to the milliseconds, input timings, and tons of other truly random things), which generates a super secure key, it’s very hard to crack without quantum computers as long as you choose really good integers.

Supplies

Any 32/64bit Linux terminal

Obtain Encryption Victim

First, you gotta find a file to encrypt. This can be anything because of the fact that the program just treats everything as binary and ascii values. Once you have found a file that you want to encrypt move onto the next step.

ENCRYPT!!!

Take the executable and the file and put them in the same directory. Then run ./piEncrypt int int int inputFile outputFile -k

Make sure to replace the 3 ints with 3 whole numbers that are really far apart, hard to guess, and big (has to stay under 2B). Output file is just what you want the output filename to be. After running the command, it should have produced an output file and a piEncKey.txt file. DON’T DELETE IT AS THAT IS AN IMPORTANT KEY!

Admire Your Encrypted File

You should now have a super secure and safely scrambled file that you can share to your peers without fear of pesky info stealers obtaining the file contents without your intention. Keep in mind you need to have the 3 input integers and the piEncKey.txt file generated before to decrypt it.

Decrypt!!!

Now you kinda forgot what was in the file and need to take a peek. Simply put in the piDecrypt executable in the same directory as the encrypted file and piEncKey.txt. Then run ./piDecrypt int int int fileToDecrypt DecryptedOut -k

Replace the 3 ints with the same ints you used to encrypt and now you should have your decrypted file with all the secret info you have hid in it before!

Extras

To actually grab the executables, go to https://github.com/The-KE/PI-encrypt/releases and download the executables. You can also take a look at the source code if you are into that stuff. Anyway that’s it byyyyyeeeeee.