Skip to content

This repo name is self-explanatory. This software could encrypt and/or decrypt some file(s). Look at README.md for more info on how to use this. This is some beginner level code but you can still post issues about this program.

Notifications You must be signed in to change notification settings

iladshyan/Simple-RSA-Encryptor-And-Decryptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-RSA-Encryptor-And-Decryptor

This repo name is self-explanatory. This software could encrypt and/or decrypt file(s). Look at below for more info on how to use this. DO NOT USE THIS FOR HIGH-SECURITY APPS AND I AM NOT RESPONSIBLE FOR ANY HARM CAUSED TO ANYONE OR ANYTHING BY USING THIS CODE. This is some beginner-level code but you can still post issues about this program.

Generating A Key Pair

  1. First Run KeyGen.py

  2. It will ask you for a password. Enter a secure and memorable password. WARNING - IF YOU LOSE THIS PASSWORD YOU CAN NOT DECRYPT ANY FILES ENCRYPTED WITH PUBLIC KEY CORRESPONDING TO THIS PRIVATE KEY (TL;DR Don't loose your Private key password)

  3. The code will generate two key pair files called pr.pem and pu.pem

  4. pu.pem is the unencrypted Public Key

  5. pr.pem is the encrypted (using the password provided when running the script) Private Key

NOTES -

  1. Public key can be shared freely But Private key must be kept secret
  2. .pem files are standard in the security industry you can edit the code to change the program to output .txt files too

Encrypting

  1. In the inenc.txt file type the content to be encrypted
  2. Run Enc.py
  3. Output will be in a file called outenc.txt encoded in Base64 for ease of sharing

Decrypting

  1. In the indec.txt file type the encrypted content (Copy -> Paste)
  2. Run Dec.py
  3. It will ask for a password. Provide the password you gave the program while generating the key pair using the KeyGen.py script
  4. Output will be in the outdec.txt file

If you like this project ...

  • Just put this repo link if you review or use reasonable amount of this code
  • Star the project (Only if you like this project)
  • Please ask for feature requests. I will try my best to add them

About

This repo name is self-explanatory. This software could encrypt and/or decrypt some file(s). Look at README.md for more info on how to use this. This is some beginner level code but you can still post issues about this program.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages