Process of Shift Cipher
•Inordertoencryptaplaintextletter,thesenderpositionstheslidingruler
underneaththefirstsetofplaintextlettersandslidesittoLEFTbythe
numberofpositionsofthesecretshift.
•Theplaintextletteristhenencryptedtotheciphertextletteronthesliding
rulerunderneath.Theresultofthisprocessisdepictedinthefollowing
illustrationforanagreedshiftofthreepositions.Inthiscase,theplaintext
‘tutorial’isencryptedtotheciphertext‘WXWRULDO’.Hereisthecipher
textalphabetforaShiftof3:
Process of Shift Cipher
•Onreceivingtheciphertext,thereceiverwhoalsoknowsthesecretshift,
positionshisslidingrulerunderneaththeciphertextalphabetandslidesitto
RIGHTbytheagreedshiftnumber,3inthiscase.
•Hethenreplacestheciphertextletterbytheplaintextletteronthesliding
rulerunderneath.Hencetheciphertext‘WXWRULDO’ isdecryptedto
‘tutorial’.TodecryptamessageencodedwithaShiftof3,generatethe
plaintextalphabetusingashiftof‘-3’asshownbelow:
Process of Shift Cipher
SecurityValue
CaesarCipherisnotasecurecryptosystembecausethereareonly
26possiblekeystotryout.Anattackercancarryoutanexhaustive
keysearchwithavailablelimitedcomputingresources.
Process of PlayfairCipher
First,aplaintextmessageissplitintopairsoftwoletters(digraphs).Ifthereisan
oddnumberofletters,aZisaddedtothelastletter.Letussaywewantto
encryptthemessage“hidemoney”.Itwillbewrittenas−
HIDEMONEYZ
•Therulesofencryptionare−
•Ifboththelettersareinthesamecolumn,taketheletterbeloweachone
(goingbacktothetopifatthebottom)
Process of PlayfairCipher
•HIDEMONEYZ
•Ifbothlettersareinthesamerow,takethelettertotherightofeachone
(goingbacktotheleftifatthefarthestright)
•Ifneitheroftheprecedingtworulesaretrue,formarectanglewiththetwo
lettersandtakethelettersonthehorizontaloppositecorneroftherectangle.
Process of PlayfairCipher
Usingtheserules,theresultoftheencryptionof‘hidemoney’withthekeyof
‘tutorials’wouldbe−
QCEFNUMFZV
DecryptingthePlayfaircipherisassimpleasdoingthesameprocessinreverse.
Receiverhasthesamekeyandcancreatethesamekeytable,andthendecrypt
anymessagesmadeusingthatkey.
SecurityValue
Itisalsoasubstitutioncipherandisdifficulttobreakcomparedtothesimple
substitutioncipher.Asincaseofsubstitutioncipher,cryptanalysisispossibleon
thePlayfaircipheraswell,howeveritwouldbeagainst625possiblepairsof
letters(25x25alphabets)insteadof26differentpossiblealphabets.
ThePlayfaircipherwasusedmainlytoprotectimportant,yetnon-criticalsecrets,
asitisquicktouseandrequiresnospecialequipment.