Skip to content

This is the Program used for Encryption and Decryption of the text in java without using any built-in function of java i.e. who is interested to understand Encryption and Decryption in java

Notifications You must be signed in to change notification settings

sushant097/Encrypt-and-Decrypt-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here this is the basic Encrypt and Decryption in java.

  • ALL the main logic is that read the ASCII value of the each character of the string and shift (add) the ASCII value by the key + extra value and in decryption remove the extra value by the given key + extra value to extract the original information.
  • In this project the interesting thing is that whole process is done without using the encrypt and decrypt in-built function of java. (all the code is used as self-logic).. Good to understand how encryption and decryption works also

As, the function String encryptcon(String mess,int code) receives the mess as string type and the code as integer which is the key input by the user. So, inside it it encrypt every character by the enter key and the random number stored inside it such that

  • If the input message is " Hello This is the Encrypt and Decrypt in java" and the key is 1234 then, as Encrypted form is: "ಯ㖡彳⡽඀ֳփٟڔ➂Ԕ⯌◟ಇ㖰彯⡶റט֝ٚڝ➈դ⯗▌ೈ㖪彫⠱ൕ׸֒٩ڤ❿ը⮃◕ೕ㕜影⡲ඇ7343432" Here you see that the encrypt data is almost change compare to input. And last number you see here is the impure key added with external unknown number to extract the key to check while in decrypting the encrypted data.
  • The same concept is used as in decrypting the content as, subtracting the added extra number to it. Here is also jar file u can directly use it as an application. if u have any suggestion of information then send me at [email protected] Thanks for seeing it. Good Luck!!

Download: The ready use Application can be downloaded from here as window application.

Demo


Notes

To be honest, I didn't name it any, but everyone like the concept behind it. I will welcome any improvement over this project. When I compare the system time complexity and space complexity to other algorithms such as AES, DES, this algorithm has good performance compared to others.

Improvement

  • How to better encrypt the key seen at end of encrypted content.
  • Add further encryption such as Image, Video etc.
  • Advanced Feature: Encrypt from the Internet (link) content, and able to email the encrypted content to the specific person.

About

This is the Program used for Encryption and Decryption of the text in java without using any built-in function of java i.e. who is interested to understand Encryption and Decryption in java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages