You are on page 1of 29
Experiment :Riindael algetithm logic 6 ExperimentNo: O6 NMREC inte z Date. ; ———________ Wise ‘ : oo Jovo. progam to ion plement Rijndaol alachithm hogre v dims Je peshgorn © Tava progam be implement Rijndasl algdithm Jogie . Quy - Rjpded emtayglion ss boxed o» ge -by- Lyle suplaament Soap sand XOR- + The proudute fooks Like the : roals 10 12-bit Keys fem dhe 28 bil Key. othe ploindent us lke sath of the ap-bit plainlant pies poured in a 10- sound pros (10 swunds 6 29 bet Kays , om 192, B om 256) . Shu, the tode ts qenvotted ftir. the to" ground > bach Undividual bk & pubstituted 4m an $-box and suplaud by th, suciprovol Ovex bf (2 2) : Subseqpurdly, va. mo dul >» makin ds applied biftere and Experiment : Page No, :___5 Experiment No; NMREC Date, : —________—— wia a holoic field (ur) (2 $) LAn KOR dink ws capplied fo the subkey fa tack Hound the secusii by cA ths entnyption umethod inGsos, when Rijndacl ws puiformed suaral Limes with deffustnd guound ous : Veconsfini dhigh! idevficol afion be a Stute Jecolien ceo ins ee a in fotrmati on piownli vmany, Aor yes - Our the covdesiins people rave made suptcted eoltemp & bo develop postiualaly dosd ~ be ~ decipher Seek Lanquages » Yaem vancint Rome fo the Atcend wotld won fs the Cetuenk dag, dan wee Hird im ening pli feo Jon, atiiamon ord important emmands, fo deciive de Oren a arp the tnfimalion ook of dh onde df, uwasth xed purrons Unfortunately , thee Folms af emiey plion uxic ausucally wan con bo vaak> dot instore, Om could easily devip het sek Languages » which have aston ftom the displaument of fitters . dhe vtok point of all sophisticated seert us that once tthe Key Sos, Len found » any Ad leant with the ux of imposible fo hap set a cans 54 Experiment: Page No. :_ 94 I 0 Sa le NMREC Date. ; ————__—______ = Sew Code eet hy bots import Jowux- Gyple s impatf fovaxs Cuyple + Spee + loys Suijndacl Weil atotic String aster (byte buf 61) * nga stubuf = onms ShingBuffis (buf length* 2)5 ind 35 doh (i205 1 buf slags f+) by (Cink) buf ti) & oxtf) 20x10) trlouf. + appind (ow 4 a ontdil (hong. do String Cnt) buf [7 & Oxet, 16))5 3 sitbuf » fe String 6); ia static void main (Sting Clorgs) tows Exception i = dyplogtaphy” ; tn eetegy +gelInstant ("aes") 5 egen-tntl (re); Seudtey hus + kgym qprant Keg (9 ; byt gow = dhuy + apt Ertoded Oo: Setar buy Spee shiny Spec = nw Setut Kuy Spee (rex, “nes"); Experiment aut Negi Page No. 5.8 sremane: oi. NMREC 24, y, Weile the ROU Logie ut i leg’e sn oun wusing Javo (ay plography ;, omiuypt ta text “Helle weld” suring Blowfish. Ouale pa olan. waing Joun Key fool % «Ain > Jo pam the Ru Logic vn Jouu using Tarn Gyptogtiophy entaypt the font “Hille wold” vsing Blowfish: RU iy a stteam Upha ond vosiable - Length dug algctithrn « She salggiitte emtayphs ene Qaybe ata dim + A key sinput 45, pseuudolandem bit agro thot produces .0 sHeam g- bit umber thal 5 unptedil ile vithouk knewldge of tmp Hay , She output of the gereralet vs called Kay Bitar vembired one dyke wat a Lime with the ploistod akiam ciphr uaing x.08 operation Geruakion Algaithen, i i dength kay ftom \ fo 256 byls is used fo initial’ye a 256 byte plo veh S, wrth elements Stel fo si255] Sot enugtion ard dasption, a. yh Bs ynutated ftom S by Eras pre. ups taped? enbrig in systematic fashion , 5 on pumuled again. tun the onluws in We - Sched Ala otithm : The eho gan Ad Cqyat fo te values ftom 0 fo 25% din asunding dd. tem potas veto T, ue craked: Of EE Experiment: = Page No. 60 ene: NMREC ».:—____ we Lena oh the huy a 256 byl thin ks canaignad tot ptaswit, Qh 0 fay “with Lingth Soyty the far! ealey Wein iio topied fem Ky vand then K a Mepeated 04 many fine ob ntarrasy fo fit T. the idea us llestaled as +2 te 255 do Sti} et} eile RE med k~ len]; gtuom Gunwabion Oru te veda 6 ab Snibioltyd the spit key will ot Se sed: af with another Lyte s{ol again. i, § = t: (Stes ¥- S(t; éntuypt wusit x-on () ¢ Lary 43) inp 0 plain Loot fe ond & algotithmn \ 1 : Page Nesta OE tains pore: Nae ploun nd , this xOk tq, jx dome by Byte By Qytr bo ptoduse the emuypled tot arcu) tod i tle sagt A tere! A e jatnded Suciuer will Bun duvyfted he ded ond oftes Axayplion » fhe sectver will gat the ohigi # Sousce (ede <- impett jovoxt- ple « Cipher ; ze joer wap Keygen fimpot jowox - cyple - Sacaat Key 5 ienpatt Jour + ewing « JopltionPare 5 x lors Blowkighliphux £ 7. public «tobe vpid main (Sting £3 a b hay gprasal _Kaylemanatis i Testor ("elonsish") sah Ee nds Ly ge (cigs ENCRYPT. MODE , necacthey) 5 shia dept ee ee es LY entuypted = Cipher » doFinal (inpublout + gt Byles trys iphas vinil ( Giphs , DELRYPT-MOOE , acexet key) $ byt) fe): daaypted > diphe lo Final (enaypted \s Mmm ord pttedln (“Original Stung ¢ + inpubloot) 3 gypton 018 pAirln & Ent pled ya new Sbuag (entypten)); ong) Hrrews txteption ” Experiment : Experiment No : Page No. 1 SO. oat NMREC x. paivate Randem Rt Public RSA LY S R= vrew Random (35 P= Biginteges - probable faime (max bength, ®) 5 @: ome - pswbalote Pairu (mast Langth, @); N=. sply (8); . i pars Pi uy Ceigindegeronte) seaualtigly (@. gubteod (GiqInfeger One); e+ BigInteger “probable Paime (moxboength [585 tude (PHI Qed Ce) - tompaseo (Bigintenus One) > 098 €tampossl Cer) 20) ae. cdl (Giatnfeger - one) s 4 ge: modTnuese (PHT)5 ie cn (Gatager €tighdege: d Syfagy ths .@= % this d= 45 His N=NS 4 publ doh. void main (String, {J arquenerity) throws TOtxapha cr ROA sO = ND RSAC )y Poito InpubStiam input = new Pala Tope Steam (Systoro in); Experiment : Page No. :__80. Experiment No : NMREC Date. : Beeman Counts impo foun slit 5 publi clam Aiffictlellman { publ: static void main (Stiing (3 0245) Sites ®, &, x,0,4,6) ka, kb: Stormer SCS vnmiy Sean (System str) 5 Systien -oukspatntln ("Goth thy ut» should be oqteed upon ae oa ays G ond P”); Systim « out. println ("Brtir value fot public 4: te Se: ened toon 09; ob @ tei Gt Fs Suystiom souk paint ("Bnfr vole for public. Muy Ps Se P= Sc+ unert bong C15 Systm oud « paintln (Enfer volua fot pruode Hay a elected ay wot 1 )s os $c + ment bong 095 Syston ox « paidln Cte value Fok privoile Key & rdected Joy wen 2 a fo = 6c + unerd Loong O15 ¥ = toleulate fowsr (4,0?) 5 y = toleulotePower (tr, b, P)s ve. = colvulati Power (4,0, F); Kb = taluulatePowe (*, 0, Fs; Experiment : Experiment No : Page No. :. 92 NMREC ow. Suglum + + outs pring ("Sef key fol Usui 4 Of eRal§ Suptum « ok privilln ("Seat Kay fot uses 2 ws" +kb)s j paivals slate long valuilatePnoer (long x, lorgy» Long P) i swsult = 0 Hye eh 1 subuam 5 ee 5 sunuld = ((leng) Math: pow (4) 7 F; sutsm swrult ; , 4 4 . Conclusion & + howe seoant Show be pufetmm Piffie - Hellman Key bxchanye vmuchaniém uring uTmL and TavaSteipt . bee Page No. : Experiment : a NMREC ov: Experiment No : * Oudpub :- ie a aur should be agiad pon MP “e hand P ron oon cule Te fix value fot publi key Pi OF boi t th 4 nition a 2 \ fate boy) ; or Ent |‘ Golie | ft pat 4 Ly igh BS ogee bp 1 Experiment: SHA =4 algetithm es ee Orlolulot: the menage diya of a text wring the gHA - 4 volgctitfim un Java e Aims Jo pufdim the amusage dignt f a dod wing fhe SAA algelithm un JAVA + Softusane wed t + Kote + Jouan a Sly 9 A shark funclion th wo special vmathemabical function thot tore vo. muurnerical input value of cabi Hany Jangth inte anotur com pwned ruumeival value» A hash purfolmns ome - anvayplion + Voluer silurmed 4 0 shosh funchion ate colle vmibiogt diqut o& simply shash voluss . hors tedx Or simply Jroshes + ee fundamental poat of porrwotd security , din Lum of Affivan ste LA thosh function mesponsible fot dranging on fink porwtl Unto a vinote complex Aut of chatacters ie, iat Ae complex sek of chorachrs by wring mole 1 tom rane fomilan omathumatal templx opuaxor pailtplt aban: epetofion ns AG e Experiment : ee Experiment No : Page No. :__86 NMREC ....,_——_ 9 The Sts Hoh valgotithm 4 (sat) a 1a Gupte compulsr secusify algotithm. SHA-d pheduces 0 160 bit Stash vols fom othe inputld lala 3 SHA-A ds Cornmnonly awitd Un cy pla qrophic cpplications, and envsonmenk wh the cas ti stash ds high Some of dhe protocol that unt SHA indude: » Vanspott foouyes Secusuby perk? + Seeuse Sockeh toouger (és) si Pretty teed Paivary (eae) + Seuss Shell (55H) -Seoure | mullipuspede Tebeanat a 4 * Conclusion ir ; T howe teasnt show be pun runage digedt of a tot using the SHA - | salah thm win Tou,

You might also like