juice Posted April 25, 2007 Report Posted April 25, 2007 Textul urmator e criptat cu crifrul monoalfabetic de substitutie:-------------------PDUVREKNXLDFCVZRDCKZFVNUDYLCDUDVVRXKRDFFDLRZRZDFRLTDRLILRXVHVUVCLRDPVEDCVHUVFVRBVDFCLRDPVCVXLRDCLRDPVCVUDXLEDVTVRVZRZFILRXUDVXVCVXLZRDFLHDUVXKUEVZKRKZVNULTDMILDZREZSFZIDVDUCLRDPVULILCVEDNVRYVCVUDLRCJLIDVCKUXZFZRNZRCXFZTLRKEFZVRVEXDUDFVRBVKHUVYZFFZLCKUEKRVNKLEDTVULIDPDRLPVUXDMXUVBVRIIZNVDFPKFZXDFDCDXLLLRXZRDCVXDCKUEKRLELNZXZPDIDVCZUVRITVLRLFDNZEDNDZTDULLVRXKRDFFDLYKRVFZTLRKVEVEDTVRVCZKBVFVOLDUKXLRIZEDLRMZUZFDLLREVELLRCZNULREZFZRZLENVXLZNFLRELIDSKUTVRIZFESVELLRIZFNDTVEZUVCDCUDEXDVCVRIVXLREDZRILVTDXUZIDIKLTDXULYKRVEDEXVHLFLYVELUKXLUDVLRCDXVVRXKRDFFVELCKUEKREDVSFVZVNUKVNDLRLRXUDBLTDLRXUZRENVXLZIDFZTLRVCZTPVESDULCELVLCVUZLNDUDXLDUVZSVCZXLILRRKVNXDVRXKRDFFVLELLRVHZELZREXULBVXKTVRVLRTVRZEVXVEDLPDVILRCDVXVNFZXDVLUDVFVCVZRTDTHUZXVLVXDUVIDECJLEVEDIVUZLVCZNVFTVLRXLREVLRXUZRZRLPDUEVFBDEXIDNVCDLRENVXDFDTVLRLLLRXLREDEDVSFVZRKTEVZCDFNZXLRKELFZDXVZTVRVLTHUVCVXVLRXUZRCKEXZTENVXLVFCVECVLDUVNFLRVIDRKVNXDPLYLXVXKUZFLRXLREDSVUVKPKUHVCVXUDCKUEKRIKZVCKEXZTDLIDRXLCDELFDSVCZEDTREVELFDLTHUVCDCKUEKRUZNEDXVCDUDVCLRDDEXLRDCZR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EDCVRLEXDSLUDIDKXDFRZLEXVRMDRDVZTLECVULFDLRXZLCVEFZMDVZIUDNXJVXZULIVUJVHVURVPDVCZTEDCKRIZCDZRJLNNUKRTKREXUZFXUDTZUVVXVXVXLRCDXVEDEVBDVTVELECKXDVZRSFZLDUVXRDLRXUDUZNXULILCVRIZELCVNZFCKUEKRPVYZXUDLILRXUDKCJLLFZLFZCLRIEFVHLFVZYLNDEXUVLRECKXVRIZRXLNVXCLZIVXEDLRCKUIVLRVEXDNXVUDVZRZLEKCELLTNKXULPVVXKXCDCUDIDVEDNKTDRLNUVHZELRIZEDBUDZXVXDVILENVUZEDIVCVRVUSLELTXLXCJLRBLFDNFZXLRILRMZUZFFZLELFVRBVCKVEXDXUZNZFTVELPVFJLNNUKRZFZLVUSLYLECVKXUVNVLEDIDECJLEDEDEZHNLCLKVUDVRXKRDFFVECKVEDZRXLNVXIDTLUVUDPUZEKFLRLEXDVECVIVULRVLRXDIDVVPDVXLTNZFEVIDECJLIVBZUVLDELUVILRRKVNXDEXDFDEXUVFZCDVZFLRLEXLXIDVEZNUVFKUCKUEKRLRXKVUEDCVNZFIVURKNZXZYVULNDVRXKRDFFVVECZREVIDTVEVZULVEVVVRLTVFZFZLCZUVEZSFVUDVXVLVXVPVYZNDEXDCVNDXDFDFKUCVKZULVEVCLZNDUCVDPKFZVRILRPVYIZJZRVFXJLNNUKRVCKNDULRIKHZCVXVTVUDIDCDUKCJLLLCFLNDVZCVFVTNLFDZRZLCVFCZFVXKULRRDHZRLXEXUVLRZFENVRYZUVNDKFVXZUVVEDTDRLZRDLDOCUDECDRXDFDSVCZZREDTRIDLTHVUHVXVUD---------Sirul urmator de numere reprezinta pozitii ale literelor din textul decriptat(numerotarea incepe cu 0).Sirul : -------------79,1,4,1,2,3,8,9,54,6,14,3,4,14,50,1,2,1,7,2,9,50,1,12,14,3,156,14,8,6,2,14,11,3,11,79,6,2,9,8,50,14,11,14,9,54,1,79,1,4,1,2,3,2,1,9,4,54,14,5,8,2,9,3,11,3,54,1,4,14,50,1,2,1,7,2,9,50,1,50,3,9,50,9,12,9,54,1,54,6,14,3,5,14,8,1,54,1,50,9,11,9,6,3,4,1,5,9,3,7,6,9,79,1,4,1,2,3,8,9,6,12,198,1,9,1,7,14,59,11,9,12,3,5,9,14,4,3,5,1,12,2,1,8,3,12,14,3,156,14,8,6,2,14,11,12,3,2,6,2,3,0,3,8,2,1,59,14,9,5,3,0,3,12,2,9,7,8,3,8,9,4,14,50,1,11,1,9,4,54,9,12,3,8,9,1,391,7,11,9,12,9,8,164,9,1,12,3,2,1,7,3,5,9,4,7,3,2,8,1,4033,4034,--------------Determinati literele coresp acestui sir de numere ce formeaza textul problemei de rezolvat.Cerinta : determinarea cifrului si decriptarea integrala a textului Ca ajutor : http://makcoder.sourceforge.net/demo/mono.php decripteaza un text criptat monoalfabetic dupa ce se determina din numerele anterioare ,textul de rezolvat Quote
0x90 Posted April 28, 2007 Report Posted April 28, 2007 se termina in "le facu un semn de imbarbatare"nu pun toata decriptarea ca sa poata si altii sa o rezolve. Quote
HexString Posted April 29, 2007 Report Posted April 29, 2007 Nu ar fii simplu, copiem linia cu textul, ca tot incepe numerotarea de la 0, citim linia din fisier, in C++, cu fgets , dupa care introducem linia cu pozitiile,declaram "virgulele" separatori, transformam din litere(cuvinte), in cifra si de akolo in colo sir[numar] si il afisezi intr-un alt fisier.Nu cred ca este ceva foarte greu!? Sau nu gandesc bine? Quote
juice Posted April 29, 2007 Author Report Posted April 29, 2007 nex:) , sincer si eu am bataie de cap cu asta , nu l-am postat pt ca sa fiu smecher ca eu stiu si altii nu.ideea e , frecventa de aparitiei a literelor in scrierea textului in limba romana ( ex : A=0,13 ); am dat asa doar o valoare literei A ca frecv de aparitie , se afla pe net procentele astea.Se numara totalul de caractere ale textului de decriptat , apoi se numara o prima litera , si se face raportu de aparitie (nraparitii literaA / nrtotal litere) si se compara cu procentajul frecventei de aparitie.Am facut si eu asa , si ma mir ca nu mi-a dat ceva fezabil , de-asta am decis sa ma consult si pe-aci Dupa substitutia normala a literelor , se deduce un text decriptat , si faza cu sirul de numere , e ca pozitiile literelor sunt inversate , si nu se poate reda textul prin intuitie sau deducere. Quote