These are solutions for cryptography homeworks
Crack geffe generator with a correlation attack, written in c
[1] LFSR: 76% correct with initial state '01110'
[2] LFSR: 78% correct with initial state '11110011010'
[3] GEFFE: 100% correct with initial state '1101001'
Decrypted:
cryptographypriortothemodernagewaseffectivelysynonymouswithencryptiontheconversionofinformationfromareadablestatetoapparentnonsensetheoriginatorofanencryptedmessagealicesharedthedecodingtechniqueneededtorecovertheoriginalinformationonlywithintendedrecipientsbobtherebyprecludingunwantedpersonsevefromdoingthesamethecryptographyliteratureoftenusesaliceaforthesenderbobbfortheintendedrecipientandeveeavesdropperfortheadversarysincethedevelopmentofrotorciphermachinesinworldwariandtheadventofcomputersinworldwariithemethodsusedtocarryoutcryptologyhavebecomeincreasinglycomplexanditsapplicationmorewidespread
Crack hill cypher using your GPU, written in C++ cuda
N:604
block_size:2
number of vectors to check: 676
(676):done calculating chi
smallest block_size:[26 483 ]
26[0, 1, ]:40.068
483[15, 18, ]:33.8264
0: cryptographypriortothemodernagewaseffectivelysyn...
1: rcpyotrgpayhrpoitrtoehomednrgawesafeeftcvilesyny...
block_size:4
number of vectors to check: 456976
(456976):done calculating chi
smallest block_size:[483 8933 26 9152 ]
483[15, 18, 0, 0, ]:23.8969
8933[15, 5, 13, 0, ]:127.038
26[0, 1, 0, 0, ]:40.9216
9152[0, 14, 13, 0, ]:169.851
0: recpoottppaarepcttrrerhueeddggaasfaneeffviivsfyl...
1: ercpoottppaaerpcttrrrehueeddggaafsaneeffivivfsyl...
2: creptootappaprecrttrherudeedaggaasfnfeefivivysfl...
3: prectootappacreprttruerhdeedaggansfafeefvviilsfy...
4: rcepototpaparpectrtrehruededgagasafnefefviivsyfl...
5: ecrpototpapaeprctrtrrheuededgagafasnefefiivvfysl...
6: cerptootappapercrttrhreudeedaggaafsnfeefiivvyfsl...
7: perctootappacerprttrurehdeedagganfsafeefvivilfsy...
8: rpecototpaparceptrtreurhededgagasnfaefefvviislfy...
9: eprcototpapaecrptrtrruehededgagafnsaefefivviflsy...
10: cprettooaapppcrerrtthuerddeeaaggansfffeeivviyls...
11: pcrettooaappcprerrttuherddeeaaggnasfffeevivilys...
12: repcoottppaarecpttrreruheeddggaasfnaeeffvivisfl...
13: erpcoottppaaercpttrrreuheeddggaafsnaeeffivvifsl...
14: crpetotoapapprcertrtheurdedeagagasnffefeivviysl...
15: prcetotoapapcrpertrtuehrdedeagagnsaffefevviilsy...
16: rcpeottopaaprpcetrrtehureddegaagsanfeffevivisyl...
17: ecprottopaapepcrtrrtrhueeddegaagfanseffeiivvfyl...
18: ceprtotoapappecrrtrthruededeagagafnsfefeiivvyfl...
19: pecrtotoapapceprrtrturhededeagagnfasfefeviivlfy...
20: rpceottopaaprcpetrrteuhreddegaagsnafeffevviisly...
21: epcrottopaapecprtrrtruheeddegaagfnaseffeivivfly...
22: cperttooaapppcerrrtthureddeeaagganfsffeeivivylf...
23: pcerttooaappcperrrttuhreddeeaaggnafsffeeviivlyf...
block_size:151
number of vectors to check: -2147483648
Overflow in number of vectors