Giter Site home page Giter Site logo

sushant097 / encrypt-and-decrypt- Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 169 KB

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

Java 100.00%
encryption decryption java self code encryption-algorithm decryption-algorithm text-encryption ascii encryption-decryption-scratch

encrypt-and-decrypt-'s Introduction

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.

encrypt-and-decrypt-'s People

Contributors

sushant097 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.