Caesar Cipher program

This program is to demonstrate the working of the Caesar Cipher, which is the simplest encryption technique. This program will convert plain text to cipher text and vice-versa.

Caesar Cipher at Wikipedia:

The program runs through two loops. One to traverse each alphabet of the text and the other to compare the alphabet with alphabets from a-z and then do the needed replacements.

Program:

The following two tabs change content below.

3 thoughts on “Caesar Cipher program

  1. Hi there

    i would like to intergrate this caesar cipher with my GUI in Netbeans.How can I make that my “action performed” buttons co-link with this code?

    Thanks

    • You just have to do the modifications to the if condition in the actionPerformed method.

      Just change the butEncrypt to your GUI button name for encryption.
      if(ae.getSource()== butEncrypt)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">