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
Source Code v1.1
Source Code v1.2
PIC16F84 Datasheet
Mid-Range Reference Manual
MPLAB v8.0
Reference:
ROT13 cipher
Official Website:
- Microchip



