You are on page 1of 18

BK Birla lInstitute of Engineering &Technology, PILANI

Expuimnt-I

ObËccise lo undasdand that sLuHL


poAsibl uith amall kypoe hi is mau.

Shift Cighek
>Ratae each ntee
for examgk, if k a 3 thanA
Decsughon Dec(x) =() mod 26
Example key =3 and Plaintext = "ATAcK

Enc)

Dec)
Paoblem with Shiff Cphea
Nod enough ay

back

oSo ie aly haue Q5 ky f to s)


’Thsutox, eaay ta aack uia hhude tot.
Example uyptanaiya slit Gpha
Cper TezB &QVDTHOFkVzZPISL&LEZH YLAOLYL
BK Birla Institute of Engineering & Technology, PILANI

Ky value Possible ploin Tezt


1 NUCSGEVUy YOHR6 QKE YGXKZNK XK
MIRRESDuT XXNGQJPT DXF WIYMIWJ
3 1SAQERCISWwNE PIOlCwE VIXLIVL
4 KRZPDQ ASRVE OHNH8VDVH WkH 0H
5 JQYOCPAR@Uk DNGMGAUG GVJGTG
6
TPXNB0ZO PITJCMELEZT6SEVLESE
HOWNANY POSSI&IE KE YSARE THERE
G7NVLZMXONRRHALDJDXK2o nS4 DAD
FMUKyL WNMOQa 2ICICwQ Yp GRFCPC
FLTSXIKVML PPEyLRH BVPxoRaE 808
DIsiwJULkooF XHAaÂN 0W NPA DAA
12 CJRH VTK JNNDWGzE2TNVM20CZM2
BLOGHSINMCUEYEYSHULY N6LY

Pxoaduei
SkepI a or thu qien (iphuutert in thu PART1 he simulatn
to deuypt it ang each
and obtaio
the asapsnding laintxt tm dcsyptien,
thu taa! giun in the PART I| the
Aimulatoo pag
SkepII:Af each decsyptian, you may cut-and- pak the
ultant plaintxt Athu acIath pad. the pat
BK Birla lInstitute of Engineering &Technology, PILANI
StplLaEinally, obiesue thL plaintcck and chaosc dhe most

ut -and- paate it in the texd fcld pamad pat


"salutian Plaintet", Ako sclect the
Hay in the kxt feld namad k and alid on
Chuck my anlue " Buten,

Steplva Viify that uyau antuut ia coLuct, hy enypting


the solutan glaintxt with yan eue

uea ciphar trxt "


KRZ DNH GRX' qenanakd by a tit cphe
aut the hannte Ce atack 4ollul&
IFar t=0&

Ciphae teti kRZ D UH &R X


ploin tczt

ciphr txt kR Z D w H 8R X

For =22

plain
BK Birla Institute of Engineering &Technology, PILANI

Tox t=3

aphi txt& k RZ DUH B RX

Iax t=3, Le obtam a maninaulplain dxt namaly


yau and hunct
BK Birla Institute of
Engineering &Technology, PILANI
braking the tHano akhalb dic Suhstitufiar
Ciphun
Ohjctiue a undaland lhat jut hauing a lag
tyspace is nat enough do chiuse.

Thoy
uyetanal.
Notc that the quency af sceweuneL af chaackuus
in the plaintat ia "pusud" in thaciphue tcxde
toY mstaoe, ae most uquend chauacke n the
plaintxt chakacd "" which ia the mast
laccwuing chauacleu n Engahe
Mono alphabtic sutstitution aphex
Considau ust hae the plain tut
using Sbshtudon tableu
"yptgsuaahy
can enuyptaur pla
y
follouj=
Platoa h cd e 4hijkmnapqIStuvwXy2
CipheJI
elain texti cIyp1a 43aphy
ciphn Hoxt N
BSEZ w u c SJZ

Nono alphabetic suhsttuhan ciphet - uyptanalyia


onsidex ue ha the nllaulng ciphex ttxt &
cquncia Relote eequny
0.02 0.03 0.06 O.07 05
O.
O.0! 13
0.
O.12

letter

crglteixtl

BK
Birla
FGHTIJKIMNoPiaRSTUvwXy2 lA
l={.So totHe "IMokt
iVGLoLle
OFkGo
ati MHHe
and couni
I=.tutons est he33292
alphahsiesubsittion th Number BlcDIEMSESTKo
iphk
Neno
JnDOMCOTMCOSTOTGNSOwNcUSRGCDSTCN TOTWCG VowLSD
N wFK Institute
he
LMCOTKOMSEkSWIMCQTGAUEC
WNCGDTOSkwEMCkso
SCwFO
kt the commonMost
Heyete Ka wITETSLHIJ
Ee Jea NaG See iuen al w
DDt He followed JE of
JtioG1ol
KED Fkeo T
D 91L88 rcuMMLDLeA
wlkOEYRCQYwIGCoFECDoCDSGO
doMaiMa and iphe, NSOw Engineering
FGtolKtFYRa Qe lMa
ALHe KoE
JE?NelMiT O=t ky HTHCOSYwasCGHCO
YSOSJO"
leitiG
QiGAUEai ue867468
EeikGolE Make a seDTO_SYL
lwe Similaxy, 'o abseuy cach
Neto tunu &
can TGKTG
HiYol GeE 6153 alphabet
Technology,
Ja that H
iduce ileMade
GatFEa Di Ve KiGo u W
ue HCK
to
0e NR
haH make 'S wFEZE
FEZEole 52
Yete NoYLMo G 61 i TtoH
ko haA E
Geo aNela WEA
be J", Dia Hak C=a, the 49 ciphu WISKKIWG
the SESKE wo PILANI
a G kkio 46 MO67
YLMDeGt 0¬o sukit
W=o text SYSOS
and high y6 poo
FA 6 SK
BK Birla Institute of Engineering& Technology, PlILANI

ft ig eaay te make srnaining suhsthihutlag hy juat


þbaeuuing theha tezt
te and we
fnally gt QuN plain
fillau
what the use hauing tacin in aui pofcaafao
T dnow well that 9 haue in me to make my
nam amauk No
No man lives, or hay euer ied oho
ha hnught the gam amout a stug cnd.
natuaal talnt to tho detectioM çme, uhich
hausedano And what the wesitt Thsee is
no c mme to daeot".

StpI Tor the giun iph1nkxt in the PART I tho


ezpuimt pag th gnanae ciphu
Het ky clicking tto "Next Cipher Text" tuta.

SttpI;Calaiak fuuquwodes q geneuated iphutkezt by cliking


lGo "aloulate
lan Iaqunciea in Gphextext" tutton
om PARrT and paake
SkplLa|Cepy tha qnuattd ciphnext teom

1VAnalyde Aimilauitea tethucan"Caleuatecd uagusnc'os


Ieaquen°a
Steo
lTahieand " Engh
Englih Aphabt Iuequunciea Tabl ".
Alpkakt Iequ
Aimilauites, uy to mak1 a faquency
eaet
bad Latinatian. fos eaah chaacky clphintxt
BK Birla Institute of Engineering &Technology, PILANI
Stp VI kRaplac chakachua a< phu Text n Seath pad
Hodiy functian pARTI
n Hiak somm
pem Ciphoxtezt io "Scakchypad" a
make mae 3eplaument a dphetat chauacteu

AiepM Rapat Skp HL you qet a maniagul Englisk Toct


Stp TX § Fnally, obaue tha deiphasad plaiakxt in Scrakeh
pad dua, a muoniagfal Engsh Tect a fammd.
cui -and paalt ?1
it in the teA field namsd "aution
Plaindxt" af PARTI; ABço entee 'the fnal chauQckex
in the "Soluian key " in PARTI0 and click an
mappiag
"ChuckAnjwex" tuton.

Sep Xa uify that yau anwen d cawrsck, by encayphing


hu soltian plainBext uiih yaue key in PART M
BK Birla Institute of Engineering & Technology, PILANI

Cne- Tims fad and feu<eet SeeMUC


Ohjechiue& Io undexstand that petccky

hunys
Venam pmpased a td- wise exlsive 07
message stucam with a
stean hich waa shaud hy sendh and sceipicat.
hi iphu i
The intutian iàuthat ans muaagt can ke tansfomed
inks any cipui by a pady and all tanstunatin
thasu uA a pad which add to the muiage tz
qiue Qk and anathH pad which dds to tha.
NO. Sina eitheu ihealpada

b ak

SENDIN Gu

pad.
XOR
Ciphex
RECEIVINh
eipher
pad9 10
XOR
BK Birla Institute of Engineering &Technology, PILANI

SkepIaSelect a plain txt and a ky hy ciking sn the


Nt tuttan at te the ugctiseitlda

gien nthtmy paxt


StepllLaCn ikig
cipheudzt
et he ciphea t t fo as many plainkt and.
schume ya car change the cnsyptn schme
aulant

SteplWi4ou can take a a k at all thepassihle Q^eag

and ciphu kxt n the 2ext black.

StcpV; By chseung the tuplu shiainad aboue, y head


to tll i the enetuypiao schnu bing wac cis
ind tha
sage,m and ciphu ai C wuch that eN mC)

equal. Thua x0m Shannsa' htoim tu show that


a achens a nat pad, it
tecaethsitint plaintts thata encuyted
HAG-(m)

BK
Birla
SA
CBC-
pasbabilty, I4 ky
MAC A
omponenk IMAC Thuoyi
Authunhicakan
Data unctlan
m, A Gemxahr Alice lnstitute
veuifaiant ky fhatuse
minarlg
MA ha
C
(anskuctan
musag qiuen lyomahisoinuatan
thi Authuntiafao
Mage odw of
aigonhna Engineering
xpesiment
th
alus mÄage
Alqoihn
n algoitnAuthnhtatian
qenc4k
quarakor,
Ey Cec-MACfo
a not
ing povi
t m
hat
maditiedi anda acceptelat mI4 ded
&
uaksas th at hat veriN Technology,
tue
Paatacal
aKtuuna aubitay
mmg
with aan
then Geraratr KMAC
otheruise tag t a abusas (m,t) (r,) G(m)HA
bit a ’BoB psederardom
ith saceet -
h a tsue PILANI
hig
taíat. vengkk tag
thun
tor
BK Birla Institute of Engineering &
Technology, PILANI
BecaduLL&
Skp IaAleat a plaintzta he ociyakd.
SkpTaSalect Auch dhatl(length a plaiotoxt )2.
Sitplil4Slct an. iitialzafian. Vectnc, TV f length L.
SkplVa yet the walue F(x) by pmuding aaing ng
4eld ediyoun txanl cliking
Eunctiom, Rpeat thia to as many tmy ad
et th
con
chang th functian if yau uh,ta
Skplaik ta fiual ipha kext in ha 'Tinal Qutput'fll.
StepVL Ona yau haue haunt te wok uith th baaic CBC

Jau may accavdingly nok with éhe uecnd pat


pat

ast paut and hance yan anuer å nd chuchdl


BK Birla Institute of Engineering &Technology, PILANIl

yptagraphic Hash Eundng Rfpplicak'ns

and
Ohjectiue Ie undeatand the ned, duigt bast
applatan collisim eetant
funckoms

Theony
HHAC Constucn
kepad
P

-epad
ke

>HNAC
tag
An thi expuimnd inskad aof ing a tull-feded
Leao collisfon sistant hash funhon h, we haie
acad t with a "dummy" unctsn h. au au askd to
hsumn
Lollisionsiatanet abaut tai qiwn tuntians b
Jaaa sit to duag HHAC
BK Birla Institute of Engineering &Technology, PILANI

kpTiEamiliasie yauaes uih the osking of SHA-1.


Thougk uould be using a dummy hah in the
Cauld he
using SHA-4 insktad.

plainkext fo uwhih. Hh HHAC ag ia to be


compukd.

SkplViAlet
huten
SkpValtie thu ipad and opad as discib1d an khzany
paxt te camputk tha ciphttxt with th kelp he
hah tunctHn pmided tota you
yai
SpstDiuide gcexated plaintxt Im int say "kchunkI
&5k and t chunk ill haue bit les than to
make it B-bik hy padding 2enOs
zexos at end,

heMa |L
SkpiT :Coomputk z0= "|V|HCE xOR ipad) manually text"
ipies csncattnatísn and entr 20 in "Goux

SkqiT:Gmpuk zlzoll m1 manually whu|l


BK Birla Institute of Engineering &
Technology, PILANI
lconcatnation and enky z4 in"your tt" eld to

SuplX a|Ripat ahaua skyp and fina lly camputke z(k)=


"kIuwhuk |=lm), oake l bik by padding

SkpX alompuk p"1V]\lCK xR opad manually uwhuel


mplies cncaknation and entrpin "you toxh"

SkepXI aCanmpuk 'q|l z(t+'manually


coscaknatian and enter in"aur et' field te
get final HHAC tag'4
SkpXllNatica that z0, 2l,22zk, z(tt), p
lall sie '21'(-L6(in auy case yl 8).

final ciphas dat in Fnal Catput'


ile and ichek yau
Pemut
atior
Final Pemutatian
Initial

Raund16
64
Reund 2Rsund 1
bit
plain
iphu
4-bit
teat
text
48-bit 48-bit 48-bit
Kis iphDES

Round Key yuratoy


56-bitky

BK
Birla
-bit 56 trt
yenexad DES Objectie Institute
and
A
duche a
catea Symnct
>DES
CGpher
implmuntaban
montatian. te
Block aTo i of
64-bit
cipher
text 64-bit
plain
text cipht, uodiscstand Engineering
a
a Ky
64-bit
DES
which. Encxptia
ciphu. how &
takes
Technology,
to
txt tuipi
Stundaxd
cemveut
64-bit -
DES
plain
impe a
[DES) PILANI
DES
BK Birla Institute of Engineering &Technology, PILANI
Boceduuu
StepI2lyasate Plainkeat m, kay Aand tyf hy clicking
n apect ue buttm PARr1 the aimulatian
pag
Stepll&Sotn qenMakd Plaia tcxt m awrm PART1 to PART
text to be entypted/deyptad
tlocke

Kay to bu uscd "blodk and lict on DES


encypt hutan ta autpt dphun text ci, Thà ia
st EncLyptían
StplvEnkey qenuakd ciphuutcat c1 om PARTIT Ot
patlock ta PAeT TI in "yous at to be ecsypted/
decypted "dlock,

StepVaEnks gnsxaBed keyB tan PR PART4 o PART Iio


"Ras to bi wsed! block and clik n PES decypt
Jbuan t autput ciphutxt c2.4hi ASend

Skl'sEnkn qnmatkd ciphutxt c2 gonm fAET | "Gtputi'


"dlack
BK Birla Institute of Engineering &Technology, PILANI
be uatd3" tlock and click on DES eneypt bukken
to output ciphasteact c3. Thi a Thind ensyptin.
As ncseuptian a done dhica, Tha acheme t
talledtipl DES.

SepVilEaku qununakcd ciphan lexd c3 from PAKTToutputz"


block ta PaRT TIT "ntr uour answes hor Block
|'mader tn verig your aiple DES

You might also like