0% found this document useful (0 votes)
16 views47 pages

CNS Unit-2

Unit 2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
16 views47 pages

CNS Unit-2

Unit 2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 47
ase wi o eae SOE & 6 — Cach block can heve AE en. i N Expt. NOw oes 2Ravvrnnrse Diat nsosnoewesneenoeereons Page No.... Syormebic a pe - x Block &pher pHociples ; ee. oiegh eee LL TSE cs an encryptten | decryptoo Scheme fs tveale A as & — Block Cfpher os to which a. block of plafotert L block of GB whole e wet © Pr a cipher 4 eguoh Length . a _, To Convest plafo texk goto céphes fexk, plese tent ts dlerded nto no. of block - —» Where end dasa block cot Indsvidual cipher text block - ex- abedef —, gererake an! as c i 4 fauls a sexe of (40,56, 64, (29, 256 bets) ~ ad : — Whenevex we WC deedtog ne nent make Swe tral the plaf text block’ Stge % egual bo the cipher fexk block sige’ > By viog the key’, the | plaPs text “blocks ame blo cles 7 we Converted eno cepher ext block» | WC Signature EAMCET CODE : MRIT JNTUH CODE: SI Oma text hlocles ees th[aL LLL — plofo text pe Rece? vex Beck es Rng | (desego w) ; — When we me dura ntog a Hock cfphex, coe need follow three dean prodples : = They are as -follo'cos &| 1) Number of Rocincls 2) Des’qn of functPon F ' f e D key schedule —Alg ortho» i) No- of Rounds fe = Every algorith en conststs. tn wousous Low ke pencling on the dtqnfog of the Algorithyy . [/ — The 4% the wound %%, the kougher fy seo aes tor the hacker to break ft ° Ex 10K, 1ee, 2OR (ao -t8s POR GS Ioucler ial | log}. Jb ‘ i LEB BLT [1p teste i. i) @ tes ‘, Ae Wie MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE & (NS Expt, No. Symmehse heey ~ ik only yeguives a Stogle key toy both enewption & decryphon — The Sfge of cephertert ig the Sarre Or Smaller than Ihe Orfgfoak platoteet — The eneyplon process fs very fast: 7 Ik % wed cohen O daxge amount of dota needs to be transferred - — Ik only prowdes Ps Conftdentiolity : ' + he heng th of key Ps. 1Q8 Or 256 bib — The vesouce ub leak ~» #¢ how compared Page No.....©.6 Ps ymmcbie bex — Tk vegutres boo leeys, o publte bey 4 a private key, One to encrypt & the other to checrypt ~7 the Stze oF pherkrt| fs the Same or tasger than the Ovigfinch piafolet I The rereny pon prees fs sloc- —y Th &s Wed to transfer Sra amount of dale - bo tt provides conffelenticr — The kengih of key > the verowurce Leh: sabeh whey, curthentfet Ey ras non ve putoliakion Used: *s 204% or higher es heat. “WC Signiiture Lo ay rmmel8e ee ‘ rT EAMCET CODE: MRIT ~ JNTUH CODE: $1 ! Symmubte ry Pky ruredinc bey | 1b) Autbenlrcakfor Regetvennents 4 > Ub & effectenl as toy dosge amount of data eo wed] 4 Ze ¢s 26 less ef Pecfenk as tk can haodle a Smalk yn amount of ‘coke ‘ 5 Seussly ¢s Koctey at only | Secuthy % hégher a two One bey PS uted for both leeys ae wied, ene for rent ie a ee eneryptoo % other for rere decryption ~> “There ave clfterent ‘kd of attacks fo the, conlert of communtcakfons. acrost a Nieo- They ore. OR follocos 1) Décclosure 2. Tratlec analysts 5 Contreen abby Mas gucrade Content modi cation message Ge Seguence modthrcalsen Authencatton | Tmtag mods hrcalo O, ee | Source sepucfakfon Sqnakene. = DesKoalon vrepuoltalion et HN y fw SpeePatesca DigteL Rgnahee Le Dicdosume + Release of ein ements +o oy person a. Trobe Bie aolyss Di covery of the pattern of trate blo puke - Expt. No. ... & ey Date ... >) Masqueracle | Aoserkton of messages nlw bom a Source | : y) content med? coke n * we MMALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE 4 Page No... 2. foto the. changes Lo the conten oF a mesoge , tocladin g, enterton, ldlet on Se modi berks nS) Seguewe modify cobson = Any modthcakfon FO 2 sequence of mersoge blo potier encluding Fee) deletton & seorckertag i 6) Teetog mnodihecalso o'- Pelay ox replay of menage: 1) Source Aepudtation = Lf Pt ~the tromsertssfon OF ea hy Source 7 8) Detk&oallon repudiation = Dental of receipe of message by dulinetion. cradbnes) Mesage Aubheolicaluen > ee procedure to verfty that Aecefued menagey come hom the dllegedl Source % have hot been altered ; j <3 Theve are Hhvee funelont of "cpr Pahentie hoe “They ate OA -foleros ») Messoqe encry phon ss 2) message pruthentiobion code (He) 9) Hoh fundion VC Signat jignature EAMCET CODE : MRIT JNTUH CODE : SI ; 5 ; | iA etegatee @) Heqttel eq ve a5 ik thre As ynmelie bea eryphogreply Z — Piagflal sqretae 1 crypeomrerplte Teebntgee cried +o verthy te Prdtranttly u atest] of Digitek doc O®%8 musage - ’ > i Ienclver Une Cure of (PBvode leery to Sign tte doc %&_ coves ponding publ?e key to veahy the Staneluve > Tek means privedc cey fs ured for encyyplico € > Prd publfe ey Ps used for Decrypbon ’ 5 th ts ued for both cuthenticakion Ef POP = sepudltolfo'n ‘ @ Aothoriieslion Ib ft cued to verily ia menage otiten te ps sent to the covreck pexon O° nok - Neo- Repuctiakion se 35 aclerred a8 the pesen rrecefves the ressoge Cannot eke bor recor tx: plonspaad ia po pa . Stonsduae > es a prook of toletcly , to Knew Hat eo Exvorn the Correck Seroler /not « 7 > Buk the bigicel segraliune cLoes n't _provicle conk Leah Communities - ; who ; f ! / $e a Ne MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE Expt NO, OR, Page Now O.2 aves ; \ ‘» Destan, of -funckfoo £5 > We must oles?gn eb eee ron which must be Complicated to unduxtanel —for +the hacker. > he hada -the tunclfoo 9% Aekgned, the wove me the hacker takes +o wae or dececle the Algoxithm — > Noo- boeas functions Ue, prelerrect vatber drown Moeox functio a ° ; a 3) key schedule Algosthm > —s» We mutk be Coretul cohtke we bore, gensalig | — Though, a wvtauke chosge $0 to key; dhe hole “Algor hrn ge’ ee leet + Modes of @lock cfpher ss —_— The modes of operon of Block cipher - Elechrongte lelesk code book ‘ ; ) €ce - 9 Cac - Cher block chaforag « ) CFR - Cophex deed lecrcle a ore _ olp Feet bacle s) Ctie- unter VC Signature JNTUH CODE : SI EAMCET CODE : MRIT ————————————————_ — : (a ) ae. 1) Lleckronte code book (<6) = = — ie, 3 The flafotext #s deidel roto no of blocks, ; encrypts the plafo fert cotth the help of the eay > Theo cfpher text fs gerertec, agato by ehrg Ha (ker chehe» fer to pleto fern: p Oe coo decrypt the 5 — | > Thes process oll contfoue upto Po S 5 The prepesven’ axe t) Glock stge Ps egual to ou pi ) bey $8 Same fo everyeohere* : 3) The S83 of PT & CT Should be Same - s 5 Fes eo Ce oy Show esteget wien — loo Lit bey eye ge 7 Oo 7 2) Cipher block chateto g (cae) : 7" : = The olp of the XoR epercdoo bho the plato text gy Forltaligaloo vector, °S enlevec @ a Vp - 2 The Enoyplion proces fs done with’ the help of | bey &% Ip mn, MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE Page No.....Q.3. Expt. No. ... : Date ......:-0-sees0000 the cfphes tert fe generation. ; t the, ciphexlex £ worth => After encryption , — Then we noect bo cleory | the rel p ot the key~ 4 Agofn that oF Totgalsgatvon vector, then we get the approach ¥OR worth the | plogo. text ¢ —> fos the next Shep, we We wrt peo Cfpber text as a “oilteligation ve choy = Ths ‘proces orll CONF oure upto, Po ine _ > fori Po the Cp., ofl ackagh & Srsifaiteakog vector Fi VC Signature T : MRIT EAMCET CODE : MRI JNTUH CODE : SI ) Ciphex feedback (cre) + — In thes we have Shift Regester- The sfge of the | ghett degi ster es bits —4 —s The (gr'ge OF (plato tare es? S “bik — We kil encrypt the nubyis ‘Of +he top veg?sier | Mh he hele of key, then coe Weil get hero 1 oe ets of cfpher texk v ~~ Acdually the sfge of the plain +e 80, hom that § bits we have, +O Select whe Shessabs, ; | % | MSG C Most Signteant bk) - /— Fem the ‘n’ bits of cépher text , We musk check that Counter SPg@ PS eguall to the plofo text Sige ov nok SIL es Stmelar to Elechoo%e cock boolc : ud eH a VC Signature EAMCET CODE : MRIT INTUH CODE : S1 > Whe Bunter wll be encrypled wth the help of | key, the BOR operaken colll be doe bf the ley plafotert (P,) then we gek a cipher ert Cc,) = DH acs to get the Platoterk we Needs to Perley yerwerse © pesalkion » — for every vexk Sep, the counter will be aclded (01) sreeorented cotth | — fey the vl step, the Counter es Counley 4n>I sae Te | Tres proces tl coniave - 2 : * Xe MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE 4 MRITS E S ihe Per Garapben > 4 pad, ofp & key O3¢ YU 6M bib, The sel xpt. No. .. CS Page No..8.9. DES_Algrrith 4 065 Stanly fry date Gronphi7 standard 2 u wa Syemehic bey biock Cipher 3 fs wo Symmebic Key vthe same ola & hey 6 used fr eacoyptun & decyprtn ; > plain teal ~ C4 bils } cipher text ~ 64 Sib : a no-ef mudach ~ 16 bey sze ~ 64 bib / yous + ter cach rund He ore proricla fub bey of Si8¢ us bity ; i Ke 4 The cocryphyn prey 1 mode of tuo permutchay chih wv tothal & Food pomutetons ' > pes we both teoas porn & Subshtuten. & Sum efny aetlered +0 a procul Gphev, : a ou bis ax aeltered blocky 3 the cphey Gmnyetls d 16 Mund mv thevatey Cech rund wits a seporale Icey + Mt bik ea . Signature EAMCET CODE : MRIT \ JNTUH CODE : SI r ane 2 fg + B€1 eoonyphen algorithn tovere tito) eoonuka hen & —— ; Cipher tent (64) > 10 FG. Fost the cu bik pleon teat poates thwugh 00 thal Perouatn thet *camreye the bi ty produce permuted Up, + Thea ther ia phare of Garis hop 16 “waved of Same Func cahich towdrey beth Permutaha ¢ Subshhihar (" wd Gosh of Gy bik, The left ¢ wight halver of Pre- ofp. 4 The ofp of ofp ovr Susapped to Prcdluce MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE 4a 06 age NO...iileacwae Expt. No. Date Page No. | r baba Mn + The pre -eutpat v poured thowuyh royent (+o 64 ¢ uo 34 3 st 36 4,3, 4 $3 -to ‘alle cu AR sold y 8 2 ‘ bi, Cipher tenk.” whol peut + > The fp to table Ganit of Sf 86 oO 62 at st 84 4 63 Mig uh ois ae NY Ww 8 wine wou 4 ty a 4 s2 SY 6 a oa 33 SS. tovene rattiol pampataheny 373 ee Soe 42 4 MC af a ua ar a cu 3y ae 36 8 33 gts yo 32 33am 3g 37d sq St oy 32 ao 3 @ 30 6 24 oo 28 si 2? HW 26 st ot t 3 20 2 24 tt 19 21 23 bib numbered fw 10 Q y re q it B iS g 4 ¢ 8 ' 3 a 5 4 # VC Signature EAMCET CODE : MRIT JNTUH CODE : S1 7 ; : fig: of DES algovitha. a. i Shorey w Fuac’ (¢ & > te ee Ce ped jes2bt J + The lelt ofp Ga Sienply Gry do ved lp (&:-1) Kae A he yh ofp (ke) uv Simply Kor of lee lp Cur) ¢ nigld Mp (ea 1 TO pert nt P ). Si ) Es ta | hay. LL Fae ey Gl 4 shone ic 6 bib @ Dp ¢ vu bi ay “i Roe SERS Eg eeemoncmm aman. a es AES _Atgeien > aes (Advonced Groyph stendond ) ~) Aner & @ on ferttal «Cipher thel cacy a doty block ot ‘top Sty - 5 tey 196-129, ae oy age BNW Cleperds 99 goed vende) sur 4 tt fey 4) Round Key addition = The th ay ty tooyptyen & decyphm algo 's a Sugle ton Ait bloc ee * A Alneeteze YO seprercatef 101 & wma of cyahit of (6 by tet : > Acs. we Several wounds va which Cack qwoad mode od several shapes. WC Signature MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE <3 Expt. No. .... a Dele... 2am Page No. OF. oreo J EAMCET CODE : MRIT JNTUH CODE: S: oes SS ~ Pata bloc t troutfmmed Bre one Claye A oauther » Hene Dota block y vetmed to w Stat. 4 Block uv Gpled for State which 4 modiheok ef ach staye ob ealmyphn © eomahy -} altor tho Bool dteye, shett te Copied te on elp Mahan, . Plain tent Key lam tere a [Aad vaued tey ae: [eovene Sub Dyke | hreveve Shift rss Chil wows fAdd ound bey Cipher ten{ ws MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE 4 MRITS. Expt. No. Date ......! Page NO bee GB! deere nes Shuctune 9 90k ferstal sbrctu expanded toto ~The Key the & prided ay ipo ch osroy to!” 44 Ret ward) iI « 3 fur ait Stayer ory, weds, ONE al prrnotehn § sheee Subshtuhoy the ciphey begin wf ane cpouds roth wud hawt 3 fey bith Enoryphen ¢ decrypter \ Add Eoucd fey Stoye follwed by at have four Steger excep! the three stats only Add Gourd bey Stage, erate wr of key. > Gch steye fe easily acvers (le + 4 the decwp tor alpo mate, tial ol. enapenele! oy ln wevenc onder ejhablihed toh ol, Peer Heyer or Jy one. teu vy eay to apnty hot decrypt severe, 4 dea Crt the plave tent ~) The final wound ch bth caoyphm & dlecryphen Gost of 8 shogey, VC Signature EAMCET CODE : MRIT JNTUH CODE: S1 OO necennenmeeee J ht eee : BlowAsh algerithan Fh § 0 Syamehte biect Cipher teal Ga be cued ay ¢ Imp 1 arplace meat fa bes, & DEH a 4 take a yvewalle levy tt Sy Bury 22 to Mn, bit & dekank g bbs > Th begs ore Fired 19 3 bea P es ei, Up se OW PS Ga py > The cubskey one Ghoved 19 p- annoy VRS. A Yy € 2 Ayre ar fuuy S-buves Each wlth are 3a bil cones > tt we UC youndy FD Brat the gieal key tab a Wee ot Subkeyg he & suka | ond four 22 ba og boves The I hile oc Shor | ; A ther Wo P orray ¢- ervey Contos UP = 3 bib Subteys , : Gatoms 256 eahiel, : } ; | | FT Blowkeh har a Cy bit Mock sige” aad try ‘ian . onyuhee fon 32 BH te Uy Cy HH wa. 6 wad Fula ciphev Oo wes looge tey | depended S-Lones 4 the bdow tp mdi@le Whe oche klesPoh fol, bac repre cab 22 bk. 7 52 MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE MRIS Expt. No. . Ditesc ity teenetunsort a FASE Bie (09. x,t... Sagat bd ie, &.) 1 Monee aes i i i he foes glo wtish ee j alyrithn fr *] fs | \ \ 4 cthetig bape ate Poa pub ond produce 32 til output . ? Gne eoby ct the fravtay 8 wed every avaed, orc alter Final sound, each half of the data block ys x-oked ustth one of the tuo meme loin eared P-eahieg, 4 \aiholae the pearray avd Gboes. Thera XoR p-orvay woith the key biks VC Signature EAMCET CODE: MRIT JNTUH CODE : Si | 4 ue thy enettad te cocnipt the all -2cv0 shag. cielo) | ofp WU pow p oad Pr | ¥ Enowp! Heo new A ond with Abe moclrbied Subkey 5 5 nd 0, hy oew Wp " aw & 4 y 4 Subteye Pw Prany F beopel srt me 19 ode b Gl a eos 7 And four s- benes- yo Fetstal of) | tt Cos ke tovertecl 2 Sace Glow heh to cipher Smply by KokMG Pr cad Pig J Blowfth -tunchm: The fund thot spl Le ila 4? wir for Cy bit quorfere © ever WisplegtaRe cy pt s-Lones ote cade! aad KOhed to produc dhe final | 32 brt dp. Slot ebib shit gbib g bits L x 1 “] Ee CH) Ey [af Ba bits . 4 32 Ak 4 R05 Algostthan © —> Re Standls for Cfvest céphex —>reee clestqnect by Ronel Crrest fo : > RES everyption allgosithen 4S a fast, SYromebfc | block cipher Suftable tor blo & she renplementalfon. length 19% > kes ererjpts bloctes oF phiolext of : 32,64 0» 128 bike oto blocs of cepherkext of the Same feogth - — tthe lkeey tength anges from Oto 2040 brs 3 Tk 26 a Symmehte | block, exphex cohich mors} = the Same Seorel Bey peur) Soeeloe Hh) <1 Enemyplfon & cleeryphen - — ecs, cools of Hare pouancers - They Gio F R Ee Detentto o Allocaalle values w “void #30 fo BS)] 16,33,.64 Ror ency pls B-wovel bl ocles ' i De eeier atoll Osis avs Z No: OF by tes . 4 : 0,1," +. atg= +e Secvel- key le VC Signature F EAMCET CODE : MRIT JNTUH CODE : SI — res ener pion algo ss om eS Simglaxr to Bg wore, mmbouke let Peronces —> RBarecl en choowag ‘co’ setetntng wel be bared. More vouncls provicles an Prurearect evel at Seeustly . © —3 RCS ConsPote 4 Cx vee Cop EL ne que i © a key , Len algowtim , — It follows three steps - | — > Tk Converts Secrel tey byt to worels — Fk Aopbeoltger the Sub key Grrowy S. | Be mix Ye Secret key! frto cub key away s- , wa MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE & MRITS- Expt. No. .... Date Page NO.eoeebdesoo Enexyptfoo ’ Plafoterk (obit) plosolest (oto bits er st | std so leap: er Leo efo . Pound (3) Het. Secure hy- "Sales WC Signature EAMCET CODE : MRIT JNTUH CODE: Si MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE a Page NOwerwel Bsssersnrey | Date ¥ ——— = MRITS: Expt. No, ... Py tae tghernghmnol bata Eacryphien Aly mada block Gpher. d ‘ele sae. 3 th ha 9 mounds. 5 en wey 12e bit "| 3 wer setoer oat wer So beter fy yourd Fine? ditt mathemnerhcal opevatas) » binary maulli pliqahieg ith Ct0CA) a D2 pea velid on KOR binary, addihun of (6 bits Nabagiert one ot (G6 Lit tntegers. wn Such oe OY ty to prduce a loenplen Bet ci ee brother) Chota aly Ati cult ty onelyze € hence’ vew defialt! te: Gritenalyae 2 Tere Funct ave Gmbined ‘ 45 a Shuctore of IPEA, Kaa Ke by Xr a VC Signature EAMCET CODE : MRIT FNTURGEDE ESI the basic Suche of 1068, “WEA wer dhvee 3 Ry hows tq ${0, to Greate © Mapping op craton all cary ty Gonpule -] The 12g bik Key 4 exported raty S2 bis 16 bite, t,t, ame 4 The key eupensien tr deve etficteat iffereatty fy 24 Gun ben thea Fo Aecoyphon compte & decyptan eperahny ge Some one the 2 bey oor grarvoted wet perfnared tn pounds. UH hey TP noctads thert the odd numbered ioendt. 1 ditt Arn even numbered rounds Gindev- xq ty ¥ Xd um es te dhe eC ake ds ut Xa xe X xd ty ve L L J = > + tte Mey +4 Jd Xb —_ Xq faq odd ued, Xo = Xa (®) ba Xe 7 Ke t k& Xo = Xb + KP Xd = nd) td Eve round + Gasedey 4, a Bec tq te tf Yin ~ Ka @) mb Fo > re O ed VC Signature EAMCET CODE : MRIT JNTUH CODE: St Kq fig rh und Xa - Ka@ you “9 _— pee Oat Where: Xe = ¥¢ @ zout vd 2 gee Youd + (Ce Of) +) @ ke Feat: Cte@ Yin) + Youp DEA Uy Clemeity cleveleped Gn =" So thot 6 Some Code © per Fores etthey rahe & Secryp tus ‘ Cc oa. \cas SMALL REDDY INSTITUTE OF TECHNOLOGY & ScieNGe a Expt. No. ...... es teen oe PAE NO rset te errr Stream céphexs — There cure vouvous enevy ptfon techutgueg / +0 : Comet plninter’ alaosthens, Srearn cfphes PS Ore of those techdgues * =) Sheam cepher enurypls plafatext eee by applying an eneypion oulgo~ no, a key sheou, - tind les I ee) K 4 ‘a 6 ae — A Seon efphex) enoypts. Salter, block of dota, by Beth or bytes: ; —7 A key Stream geoerctor oulpul a Shroom of} bee k& ka icy. ke: = hes key Shreem °% KOeed tof a Shreay of pofobexks bers P, Paps Spe to mocks Skreom of Cipher tert beh. : — Then the cfphartext bts are Kore torlk oh key $ trenn to gererecke plesntext bel. WC Signature ~ EAMCET CODE : MRIT JNTUH CODE :SI ™, m2, my, - -- me -plofo feat” @ “ke ky - - - bP keys C Ra p'- -- Cy cipher Sex Eka ida pares HoOlll oo jan P, PBS wie / @O10l O11} Oo OLY st lig ee yy HOOT LOOl Olis¢ a Wisecbalyes HO!0l O11 1 OO5€ a) Sy ea 2 Be Sein. 1100111 COT ye — Xo erroy $ Ex ecy Nyortlhiog REAL gor Haro > ie aq bak example Ob Sreoum ephen. - — 50, eneygion & desrpson % ey the fom 9 biks | pytes | : : > Rey Algos fen hos 2 Steps > | ® os SehecidFog® | © key Shean qrreradton i ® Enemplicn & clecryplfon 1 (® b ety weal & | > No. of Heraloos ae egual 6 the se of | S- ray. eM Expt. No. fosl€ alive 5 ° fox @r0 ko ass AO $= tae sa) 4 TC) mod 26 geoap (SC), 8D) ; there, st — Stale vector aCe} key onery Cherporory vector ) Exampe Saray = [ol 23 > an key omoy = [12 26] plato fexk= rico 20a. } . Viwotth key * Totbfolese Trae TS x To frame aed } 1). se6 ts) f20 Eon? lees tor f= bo j- [o+04 Vmod 8 fe [isora) 5 - eae ge amod & ; i swoop (s@), sc) Swop (s(0,8@)) era gur 6? 30 fa g-[roasus 69) g-[t32ouse) > we need to upto gh ayerehen - EAMCET CODE: MRIT Page No... ae a 55 ] ee i j+ [axats] 5:8 mod ¥ gro ; swap (s@), ©) &- [23lovs ely VC Signature JNTUH CODE : Si Ree: ) & bey Stvearp qeraralfon ~ ap ths the no of “terakoas the Brae Ot the aH Br =0; cohsle (Tree) Fe (P4i) mod ave ; $= G48) mod ase; Swap (sc), sg)); * = (s01)45G)) mod ose ane eguol to b= sca); — te is ae tor cotll get the kexy oe. * Hleraboo we get k Co) Pe | 4th Cegy — At [asl nes key % obktaroe & wed +o, Eneryplon & i. © Enery plfoo & Boo ; ~ E-—+, PT xoe per tery Be cr Kor neo bey: > 3S thts tnt “ne Gaye, en Convert the Pr Sod | Yeo kex 2m to braasy ; Then PT © NOO1\O0F key O1O10111 69 3 ae ee 1001001 oy eA DL 5 Se OO ne a ae we MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE © Expt. No. ... hun [Date slam PageNg of | —Asy mmelyic key cfphexs = Pimegles of publde bey cyptosystern’s + — Te is on asymnmelyhe bey alge . cp toy enuyphoo — de depeods en two a decryption - . C > Tu 400 feely sate — @puhlee bey @ private key: oF Lectrer ae rt Jee ee * sini ale 3 | 2 plafotert | > cipharlext re exchage . (pubite Key ) C s) The Kx0 mag prodples oe - © Ackrenleabion « ® Data Conkidenbialrby. OM Duthenlecak?o9 $m —— — the ker Source por bat fom +e dame oO i ia widely Ate Ween TE bes he priv q pub le VC Signature Soure - EAMCET CODE : MRIT JNTUH CODE : St — In AS We wre AP Le vent bey Gowyees > And ewe Lo enemy plfon Lepo ~Henes © 2) Glalate 9 ~ pra” SS MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE | { MRITS, Expt. No. .... Date .. ea 9 pp aBe NOR... NR. ca RSA Ag evithen - > Risk shanty Pdlemag CRA) ts a block, cipher which ty plantert & Gopher tent axe tatters blo © ond nt far Come 'o’. a F EM algo tt paslics key cocupher type ogo > th Hts algo ME Wer UES & pubte bey & othev wer user ce Secvel Cpnvate key) tey ; D ta the Pra algo €ach Slabun tadependently Chootes teoo large P and y. numbey and 9 al plies them produce: ney , 4 & Yond fey geneity ) pice two large Qumben r ol oe 3) Gladake 9@)* (-0C4-) 4) flee Fo Hhol ged (Gio) ,¢) ee ees da) s) Glolote dm tet dee mod (a) = 1 ) Get public Hey by = feny 1 Gad pravale bey fp > {da} VC Signature JNTUH CODE: S1 EAMCET CODE : MRIT a foyphen + | fx plarntert block pen, th cipher teal 3 as . | Cc > pf modo ] Decryphon — a ate fu Gpher dent block c, th gan reat y ae d mod 0, How RSA Sccare 7 > hb ume Secure ay HUE hese techoiquer ) Brite twee altact 1) Mathemahted attack ) Timing alta +} chearea Cipher Fett attock ~The econ behind @s0's cecucityy we the fackning 0 Arg num ts hard, 4 ad thy hq chiicult ty detronne $4), Advontayes Ors odveatayes ' ~) asa ’Gn he wed tw pat, Gaootptun oll as digital Sipatune asuanphm Alot- anes MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE a Page No. Mont Expt. NO. sos Date Gt — Perla eacmphn & decmpteg auep esa ata Fn p 8, Qa, ex me ST F Slur jp p23 yeo4l N= prq - 3rit 223 {) a (-) @-t) > (3-1) (ud) C 2) Co) > 20 © ged C00) ¢) =| ho tzezdta) (2 £0 -e valeres vonges Fron ate 4) eee ged(2oa) bl es 3 ged (20,3) bf » [&= 3] d= de cnod Gla) «1 dx3 mod 20 =I det, 2,345, 6 thea AX3 mod ao 47 te deq then 43 mod 20 =} VC Signature EAMCET CODE : MRIT JNTUH CODE : S1 21 mod 20 = 1 se [aoa] HBS Otte Eowip hon Ce NS mod 9 C 255 Tote C > aS mod 33 c 2 oc ‘ Peenphon a | mM = ctmod 4 \ M = oc mood 33 Moe & Hepat Guptagrephy 2 gamal algo puda on adterncdre ty RIA By 4 public key Caoypry * . . | D security 4 the et ‘depends on tty clatticadt o- | fckong lye sbgen: | 4 Security A the Agemal alyo depends ow tHe det | dd Goraputvy Auicele logy mia lye pone antic dey F Agawal hoy We divodventafe Alok the Cipher fat “tere oF long Q) pla text U0 MAITS: 120 Nowell san Expt. No. =e Date .... = Page No. aU hey co advontacs the Same praia tent ges att Cophen tert each -hwe cocypled. 4 ub ha 3 sheps 1) key grained >) Envy pho 3) occupied CS ) tey Genevahon 4 Select —donge prime quaber (e) rm 3 Stled a decrypbw key alo called pavate, bey (4) -) Sted Secind past of encryghen hey (a) 4 Glatate thd pot ol cocryphen, Key.) Gm ed mod p J publre Fey > C6, sp) & patiliate bey of 1 *; 2) Goceyphen 4 Seect vondow totegen @ + Glealate G = e"modp > Glalake G > (er x6") med p 4 Cpher fend > Co, nG) WC Signature EAMCET CODE,: MRIT SNTUH CODE : Si ’ % MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE a (s ‘le 3 Decuphay » 4 eT > Cax(Cay) "J nod p SF ig poy ended) Gutre Gl & > chad y > @) ened > mod [& 78 pute Key > Cer eee) = C280) soos wt @ Encwyp hen — r select ‘vordom Inkeg or ary | Gl q > é"med p G= stew y Cs 46 mod | fers 7 Vet. plata tab. i Z ; ray \ ' Q = (PT x6")eod p a > (1 x 51) nod 2 2gcq2 mod If Gik ¢ ; Cher teat > 4); ben (Cs, ) becaphan + 6 (ta5f' od t} pete Cancer) )"J onde rag xx enod NI r heet ! 3 Tr encoyyis oe" fet we ees onal mn > 6X (asf! mod aru + iemedy =F By . SJ MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE 4, Expt. No. Date Page No......20..... oifKe = Hetlinog_key Gichonge ba” J The oilve- Hellmea Cey, Yrecarl pwtuel Wey developed by pile ob telleoa 10 (476, 2 The purpose fr thy alno ite Conable usu Wes te cuchoge a ‘o Securely that Gn pe used fy Crcyptim ok onc 3 tk yy tyed to yuk extheta the nol Povborm oe Exeryphen ] decyphen Agu. a) gy ri t % ] @) 7 -} Select tus Mumbers prime numberl ® G ee prmibre avot of OY toy bute ie 4 suppose the used A § 8 arg, fo excher] € o f . a) ure A Select a random pola eg Xn Ary ond Yq © at anod ay s) caer 68’ selech a veoclum lntesey oa Gg Grate Ye 2 ys onod WC Signature EAMCET CODE : MRIT JNTUH CODE : SI SBA Ree J Both sides keep the x’ Value privake and mats the Y volue aveilable publecty to ahey tide 4 user W eoont to ——_ bes ‘ k> (1g) "® od y ] 7 wer $e’ wonl to [ee by then (e> ~C) i med 4) > Bos, Side the yerulh mul be Sane ‘ usey & aaa Generaley povalt ¥y 44) Generals x9 24 %4°s i (1. eoeale t (vy ied 9, t: (V4) “creda, i q &: we qe, d 2 F Baad | kenG rat wr — sey A maxqy (cau ( J 7 YA = Cu mod 4 Ya - of rod 4 gq C Ya= xX mod tt V7 MALLA REDDY INSTITUTE OF TECHNOLOGY & SCIENCE 4 MATS Expt. No. . ™ Dille s:.cssea alias Page NO... Mb scccscecsssemeesee user 8B xe xy ( 3 9° mod t] > ase mod lve 23 Groerote kegs k 2 (%9)"4 ance a b> (ta) enod ey K 2 3° mod g (x g? mod g tr F aod 1 k> 29 ood I) [e23/ at yey ‘A’ Ceg value ts 8 & Wen a" cr Value "a keys ove exchoryed pager VC Signature JNTUH CODE : SI EAMCET CODE : MRIT SG awa peppy msTITUTE OF TECHNOLOGY & SCIENCE MRITS Expt. No. Date cm PageNO. 22 rsesseeree K koapsa.cle Algosthrp - — It wo decovaed bY oa. one et -Asymneh' c ber cryptography - — the knapsacte prberr ts an opferk galfoo preblena wed to ellustake both pProblero & Solkekon. — Gren a set of Tkerns worth Specie coefy hes & valu, the aim % to & get OS Mnch value to the lenaps oc dccodtag fo Hee cocks’ Men’ oned - Ex: coefghts » (6,8, 5 § ax) I DH Gereval Rrapsack, ce Select webg hts to ack a Sum. : TP we cont Sums 30, we Select 16,98 1S- = knapsack Ga Geocl alhemal$ve cohere coe Can create a ‘prblec “key 4 a’ private one. tek plate lexk= 10011 Pino ?® enn nn 168 tray 16 Bis ay 1415424" 40 HO HTS = 32 CT = plofo fexk * Corresponding wee ghbs "CT = 40 22- VC Signature EAMCET CODE : MRIT JNTUH CODE : Si Se key Geneneioe ack) 1) publte key Chard lenaps 5 2) privede key (eay " fend the ‘4 fet we frock the pvt bey then we fa pulltc key - . he os f1,2,4,10,20, 40h vlew - BS = wetghts are aloasys fo fooreasting © ~ § © sty frock pvt bey D = $6.2, 410,20, 40 4 — pvt key Sduld Gig eles ins ond ins” cod rm > Sum of all nos 80 Sequence - - Sum 2a lek fro 10 | Seleck So trek 8 has nO Common. factor with, ms tet(o= si] e Noco, (D8 xn) modm 4 elemertt fo D , Cixay mod no «=, 3 (2x31) mod no 2.62 (4 x21) mod NO ™ Ly (10x39 mod WO = FO (20%3) ER 0 tO (4ox 38) en eLO. {poioo = \x3)oxe> + aan aia Ox30 + 0x30 = 3i+90=12] A P park —IiMOO = yreariet+ COLO tOs (TF A 34 pat 3 1olllO = +O 414 49043040 = 2077 ) - et =fiig! 1% 204) | @ o . € Beery poo colin ee BWrmoditO =| then we get xed | Cer x2) modi mm -fvoon Seg D< Tria. 4, 10,90, 40 |, Nmod 10 = MI = joo10O ((+l0= 1) (Q0K9 217% 2 Noo CLtQALHIO= 19) (193 x71) mod 0 ay = LOMO Craux1o + 20= 35) (305 91) rod {os We mot JINTUH CODE: Si FAMCET CODE : MRIT

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy