Data Encryption Program Using Javascript

'); pWin.print(); pWin.document.close(); pWin.close(); }

Developing Data Encryption Program Using Javascript
Encryption is the process of transforming (or encoding) plain text in to cipher text.
In this post, we will see how to develop encryption program using javascript. One clear problem using javascript as an encryption program is that since it is a client side scripting language, it is not appropriate to use in real application. i.e It is client side scripting language means the program is run on users browser so that they can see the source code and that will be easy for cryptanalysis.

This encryption program uses a key to encrypt the plain text.
In the decryption program the same key used for encryption is required to decipher the cipher text.
To see in action how to encrypt a plain text, use the following steps.

  1. Enter a secret key (this will be required for decryption)
  2. Enter the plain text that you want to encrypt in the text area
  3. Click on ‘Encrypt’ button below the plain text
  4. You will see the cipher text in the output text area
  5. Click on ‘Select’ button below cipher text and press ‘Ctrl+C’ to copy the cipher text.
  6. Click here to go to the decryption page
  7. On the decryption page, enter your secret key and paste the cipher text in the text area
  8. Click on ‘Decrypt’ button below cipher text’
  9. You will get the original plain text on the output text area
Enter a secret Key

Enter Plain Text

Output: Cipher Text

Share this article:
Previous Post: Data Decryption Program Using Javascript

December 13, 2014 - In Academics, Computers

Next Post: How to use Xilinx® for Digital System Design

December 20, 2014 - In Academics, Electronics

Related Posts

Leave a Reply

Your email address will not be published.