The Hardware Side of Cryptography

19 May 2008

Implementing Polybius Cipher using PIC16F84

Polybius cipher works the same as Tap Code Cipher. Each letter is represented by its coordinate in lookup table. To fit 26 characters into 5×5 lookup table we rounded down by combining I and J letter inside one cell. The basic lookup table of Polybius Cipher is shown below.

For more convinience usage, you may enlarge that basic lookup table into another 6×6 lookup table. The 6×6 lookup table capables to encapsulate both digits and letters. An outlining example of 6×6 lookup table is shown below.

I wrote a code of Polybius Cipher for PIC16F84 microcontroller using MPLAB v8.0. I’ve verified and simulated the program. It works the same as specification. The program comes in two version, first version implements basic polybius cipher and the second one implements modified (6×6) polybius cipher.

Test Vector:

  • Plain Text = HELLO WORLD
  • Ciher Text = 23 15 31 31 34 52 34 42 31 14

Screenshots are shown Below:

Plain Text Screenshot

Cipher text Screenshot

RELATED STUFF

Download:
Source Code v1.0
Source Code v2.0
PIC16F84 Datasheet
Mid-Range Reference Manual
MPLAB v8.0

Reference:
Polybius Square

Official Website:
Microchip

1 Comment »

  1. Any business today aims to be on the first page of major search engines for higher visibility and higher sales. There are many SEO companies that offer SEO packages after analyzing the needs and requirements of the clients. To make sure that you are getting the best techniques for your business, better make sure that you have chosen the best SEO Company for your business needs.

    Comment by click through the up coming website page — 27 November 2015 @ 4:24 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: