Code covered by the BSD License  

Highlights from
Caesar Cipher

4.0

4.0 | 3 ratings Rate this file 24 Downloads (last 30 days) File Size: 2.13 KB File ID: #30429

Caesar Cipher

by Nikesh Bajaj

 

16 Feb 2011

This is Program for Caesar Cipher encryption Technique.

| Watch this File

File Information
Description

This is one of the Classical encryption Algorithm, Not secure one but good for teaching.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
12 Sep 2011 Mr Smart

didn`t work...sir

07 Oct 2011 Tamir Suliman

It should work if you use the caesar_E instead of caeasar I think the help files didnt express well how to use the function but its good try

07 Oct 2011 Tamir Suliman

What I did notice is when you extend it above 3 words it doesnt do the shift so its missing that part
try to run this code and you will understand what I meant :

P='Hello World and Welcome to Matlab cryptogrpahy'
k=3
C=caesar_E(P,k)
CD=caesar_D(C,k)

08 Oct 2011 Nikesh Bajaj

@min min: It is a function not a code, it will not work till you pass P and k to it in command window

@Tamir: It depends on what name you have used to save this file, will be called by that name only,
I have used this code to even encrypt 100 pages of text file, it is working fine
this is the result for what you asked
P='Hello World and Welcome to Matlab cryptogrpahy'
k=3
C=caesar_E(P,k)
C=Khoor Zruog dqg Zhofrph wr Pdwode fubswrjusdkb

05 May 2012 Mayukh

Sir I also created one but not a function like yours...preferred script file instead..but functions are still better to handle...so thanks Sir..:)

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
encryption Nikesh Bajaj 16 Feb 2011 14:28:40
cryptography Nikesh Bajaj 16 Feb 2011 14:28:40
communications Nikesh Bajaj 16 Feb 2011 14:28:40
image processing Nikesh Bajaj 16 Feb 2011 14:28:40
signal processingcaesar cipher Nikesh Bajaj 16 Feb 2011 14:28:40
ceasar cipher Nikesh Bajaj 16 Feb 2011 14:28:40

Contact us at files@mathworks.com