File ENCRYPTION Software

ENCRYPTION 

Creating Own Encryption Software with Shared key



Do you have  Files (.txt  , .pdf  , .jpg , .png , etc) Which you don’t want to see any unauthorized people access your files?
Then This will Teach you how can you protect those kind of files which are included more valuable data.

Three Main things we need to know


Cryptography        -Is a Practices and studies of transforming readable information into unreadable format.
Plain text                - Readable Data
Cipher text             - Encrypted Data (Unreadable)

 
We can do encryption  in two ways:

  • Asymmetric Encryption - Also known as public key cryptography, uses public and private keys to encrypt and decrypt data.
                   Ex:RSA,EIGamal,elliptic,curves,DH.
  • Symmetric Encryption - That use the same cryptographic keys for both encryption of plaintext and decryption of cipher text.
                  Ex: DES, 3DES, AES, IDEA, RC2/4/5/6, Blowfish.

And now I am using Symmetric Encryption for encrypting files. In here I have used AES as my encryption algorithm used Java as my coding, You can Fine Code in GitHub URL which will be placed at bottom of this Post


First Open a Project
 


 CryptoUtils class provides two methods,  for encrypting a file and  for decrypting a file:

 

 

 

 

 encrypt() and decrypt() Methords accept a key as an input file and an output file as parameters,

 

 Codes as Follows

in test class :





 


 

 

 


 



NOW Your Encryption / Decryption Software is ready to work,

to TEST Create .txt file with random values in side it 




 


RUN the Application 


 



 

 GIVE 16 Digit Encryption Code Since This is based on AES Encryption
and Give the File Location from open Button you need to encrypt

REMEMBER THE ENCRYPTION KEY OR ELSE YOU MIGHT NOT ABLE TO CONVERT IT BACK





 


 Now It is Encrypted

Text cannot be read
 


 Again to Decrypt just do enter the same KEY and choose encrypted file and click decrypt 




 


That's it and Here is my GitHub URL Check it out for the code

 GitHub URL for Source code:

 https://github.com/PasanRS/Encryption-Software
















Comments

Popular posts from this blog

Attacks Against Weak Token Generation

Some Terminologies You Should Know About Trojans

Nmap Scanning