Diferență între revizuiri ale paginii „SDA Crack the Cipher”

De la WikiLabs
Jump to navigationJump to search
m (Radu Hobincu a redenumit pagina SDA Lucrarea 3 în SDA Crack the Cipher fără a lăsa o redirecționare în loc)
 
(Nu s-a afișat o versiune intermediară efectuată de același utilizator)
Linia 32: Linia 32:
 
== Date de intrare ==
 
== Date de intrare ==
  
  uGtw?pxz?0z'-08V?z(0H0?'z'Sek0r8z8'(Sr8S 0'1Se'ep 0?szE0's?nzeSoz8SSQ'z8z8'1Se'E0r8s?pH'xphHSrQ'rz8'ES
+
  uz-h,tmhbv!hzTh!bhlhzvDvzct-phz!bhvt,zvl!bsrzghlhD!vbpzhi,h!hz,hlmhzrz-,hcvbpzvlz-rlD!bt-!vpnz
  1Se'r0H'x?S(z8Q'SerHpES('SeE8S8p8SS'np(0?ez 0e8zH0Q'z hzEz10Q's?nzeSoz8SS'1Se'Se1pE8?Sz'10'x08?sH'ES
+
  el!bsrzOvazDh!t,hzHhlhzHpD!pz-hHzcpz,vgThdt,zot,mhbzh,z-rlD!bt-!rbv,rbzDshzUr!hbh!zDhsDvzHp!bph-hz
  nzo0Q'r0e8?0'10'r0?r08z?0Q'r0e8?0' SHS8z?0'ES's?nzeSoz8SS'10'zr8S(SE8Sy'js8?S(S8'?zxs?8pHpS'4zEx0?E&l
+
  -pohz!vgHz-tzpvzDvzDhz,pz-rbp-!pOpz,vgThdt,zgtbchbnzFhztbghbpzDvshzHtDzvlzgvl!pz-hzhzcrthzOvzDhsDv
  BzhQ'zr0zE8z'z 0eSe8z?0'0E80'zr8S(z'Serz'1Se'dLLCQ'SeEz'r0H' zS' z?0'(sHp '10'zr8S(S8z80'ENz'
+
  zvhzHbhlOt,z,hzHh-Up!zDvzDhzD!phzvl!bpzgtl-v!rbvazDhzorbTphD-hz-tzpvazDhzghlhl-pzvgHbptlhz-tzpvnz
  Se?0nSE8?z8'Se'x0?Ssz1z'dL)L'N'dL)Cy'?0H0' zS'S xs?8ze80'1s 0eSS'10'Se80?0E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bzh'zp'ksHsES8'4zEx0?E&l'A0rp?S8l'-08as?&'b4A-.'x0e8?p'z'S10e8SkSrz'E8z8SE8SrS'EpxHS 0e8z?0'
 
  rp'x?S(S?0'Hz'Sek0r8S0y'j?S 0H0')L'8z?S'1pxz'ep z?pH'10'(Sr8S 0'1080r8z80'10'4A-'zp'ksE8'FsensHSzQ'
 
  p? z8z'10'UpESzQ'De1SzQ'4zoz&RE8zeQ'4l?nloE8zeQ'?RSezQ'VzOS&SE8zeQ'?s?00z'10'Ap1Q'AxzeSz'ES'w0? zeSzy
 
De'8S xpH'zezHSo0S'4zEx0?E&l'Bzh'zEpx?z'-08V?z(0H0?Q'02x0?8SS'rs xzeS0S'zp'S10e8SkSrz8'EzE0'(Sr8S 0'
 
rz?0'zp'ksE8'Sek0r8z80'z8z8'10'-08V?z(0H0?Q'rz8'ES'10'U01'?r8sh0?Q's'zH8z'sx0?z8Spe0'10'ExSsezO'
 
rSh0?e08Sry'M0ES'ep'z'ksE8'S10e8SkSrz8z'eSrSs'H0nz8p?z'1S?0r8z'Se8?0'z8zrz8s?SS'-08V?z(0H0?'ES'
 
zr8s?SS'S xHSrz8S'Se'sx0?z8Spe0z'U01'?r8sh0?Q'kzx8pH'rz'zep S80'(Sr8S 0'zp'ksE8'zk0r8z80'10'z h0H0'
 
rz xzeSS'10'ExSsezO'rSh0?e08Sr'10 seE8?0zoz'rz'zr0E80'(Sr8S 0'ksz?80'S xs?8ze80'Epe8'8Se8z' zS' pH8s?'
 
z8zrz8s?S'1Se'rzpoz'rz'Seks? z8SSH0'x0'rz?0'H0'108Se'Epe8'ksz?80'(zHs?szE0y
 

Versiunea curentă din 9 martie 2016 10:58

Cerință

Se dă un text criptat prin metoda substituției. Se cere decodarea acestuia fără să se cunoască cheia.

Informații suplimentare

Metoda substituției are la bază înlocuirea caracterelor dintr-un text cu alte caractere, asocierea dintre caracterele noi și vechi reprezentând cheia de criptare/ decriptare.

Spre exemplu, dacă textul de intrare este:

ana are mere

cu regulile de substituție (cheia):

  • a -> h
  • n -> v
  • r -> o
  • e -> z
  • m -> e
  • <spațiu> -> r


Textul criptat este:

hvarhozrezoz


Metoda de spargere a cifrului

Acest mod de criptare a fost spart folosind metode statistice. Cunoscându-se limba în care a fost scris textul original, și cunoscându-se care este frecvența statistică a caracterelor în acea limbă, se pot face încercări, considerând caracterul care apare de cele mai multe ori în text ca fiind cel mai probabil codarea literei care apare de cele mai multe ori în limba respectivă.

Ordonând caracterele după frecvența apariției lor în limba română, obținem următoarea secvență (de la cel mai frecvent caracter, la cel mai puțin frecvent):

<spațiu> a i e t r s u n c l o p m - d v z g , b h . I H j : ? C U f D F O P T !

Date de intrare

uz-h,tmhbv!hzTh!bhlhzvDvzct-phz!bhvt,zvl!bsrzghlhD!vbpzhi,h!hz,hlmhzrz-,hcvbpzvlz-rlD!bt-!vpnz
el!bsrzOvazDh!t,hzHhlhzHpD!pz-hHzcpz,vgThdt,zot,mhbzh,z-rlD!bt-!rbv,rbzDshzUr!hbh!zDhsDvzHp!bph-hz
-pohz!vgHz-tzpvzDvzDhz,pz-rbp-!pOpz,vgThdt,zgtbchbnzFhztbghbpzDvshzHtDzvlzgvl!pz-hzhzcrthzOvzDhsDv
zvhzHbhlOt,z,hzHh-Up!zDvzDhzD!phzvl!bpzgtl-v!rbvazDhzorbTphD-hz-tzpvazDhzghlhl-pzvgHbptlhz-tzpvnz
elzOvthztbgh!rhbpz,hzobpgphzhgvpOvvzDvshzHtDztlzDhlcov-vzvl!bsrzHtlmhzghbrzDvzDshzvlcbpH!h!zDHbpz
-rlD!bt-!rbvvz-hbpz-Uvhbzvlzgrgpl!t,zh-p,hzvDvz,thtzHbhlOt,nzFtztlzOhgTp!z,hbmzHpzih!hzDvz-tzrz
or-pzT,hlchzvshzvl!bpTh!?z
sz:bh!v,rbazorvzv,z-tlrhD!p!vzHpzeDtDzCbvD!rDjz
fr!vzgtl-v!rbvvzhtzD-t!tbh!zlpmh!vozcvlz-hHzaztv!hlctsDpzrhbp-tgzcpbt!h!vztlvvz,hzh,!vvnz
Plt,zcvl!bpzgtl-v!rbvzDshztv!h!zvlzDtDzDHbpzD-Up,pzDvzhzD!bvmh!z?z
szCpvazv,z-tlrhD!pz-hbpohzcvl!bpzorvzHpzeDtDzCbvD!rDjz
Plt,zcvl!bpzgtl-v!rbvvzcpzHpzD-Up,pzhzD!bvmh!zvlhHrv?z
szIpz-pjz
sz.hvazhztb,h!z-hzbhDHtlDz-p,zcpzdrDazhzoplv!zlpohD!hsDhzDhsvzhct-hzHbhlOt,