The Hardware Side of Cryptography

14 May 2008

The Implementation of ROT13 cipher on PIC16F84

ROT13 or ROT-13 cipher is a classic and simple cipher. ROT13 works exactly the same as caesar cipher, except the shifting key was fixed to 13. We may say that ROT13 is a special case of Caesar Cipher🙂 . To encrypt, you simply shift plain text by 13. To decrypt you simply shiftback cipher text by 13. This simple cipher was pretty famous, you may find this cipher on online forum to hide offensive words or to avoid spoilers :8 .

I alse wote a ROT13 code for PIC16F84 microcontroller on MPLAB 8.0. I’ve simulated the program and it works perfectly the same as what i expected. You may download the source code on download section. You may freely use this code under the term of GPL v3.0 license. The screenshots are shown below.

Example

  • Plain Text : YOU KNOW, MY BOSS IS A REAL JERK I CAN NOT BELIEVE HE ASSIGNED ME A HELL OF PROJECT
  • Cipher Text : LBH XABJ, ZL OBFF VF N ERNY WREX V PNA ABG ORYVRIR UR NFFVTARQ ZR N URYY BS CEBWRPG

plain text

cipher text

Note : this cipher is extremly weak. Never use this to hide sensitive data! Use this cipher for jokes and fun🙂 .

RELATED STUFF

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

Reference:
ROT13 cipher

Official Website:
Microchip

1 Comment »

  1. Pretty! This has been an extremely wonderful article. Thank you for providing this information.

    Comment by tiger balm 925 — 3 November 2012 @ 11:25 am


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: