O’zbekiston Respublikasi Axborot Texnologiyalar va kommunikatsiyalarni rivojlantirish Vazirligi Muhammad Al-Xorazmiy nomidagi Toshkent Axborot Texnologiyalari Universiteti. Kafedra Kriptografiya Fani bo’yicha



Download 19,65 Kb.
Sana24.06.2022
Hajmi19,65 Kb.
#700121
Bog'liq
A51


O’zbekiston Respublikasi Axborot Texnologiyalar va
kommunikatsiyalarni rivojlantirish Vazirligi
Muhammad Al-Xorazmiy nomidagi
Toshkent Axborot Texnologiyalari Universiteti.
Kafedra Kriptografiya Fani bo’yicha
AMALIY ISH
Mavzu:A5/1 shifirlash algoritimi asosida ma’lumotlarni shifirlash va deshifirlash dasturini yaratish.

Bajardi:Davronov shaxzod
Tekshirdi:Mardiyev U


Toshkent 2022

A-00001 F-00110 K-01011 P-10000 U-10101 Z-11010 #-11111
B-00010 G- 00111 L- 01100 Q- 10001 V-10110 @-11011 /-00000
C-00011 H-01000 M-01101 R- 10010 W- 10111 ?-11100
D-00100 I- 01001 N-01110 S- 10011 X-11000 &-11101
E-00101 J- 01010 O-01111 T- 10100 Y-11001 %-11110
Jadvalda berilgan harflarni mos sonlarini 2 bitli sonlar bilan belgilab chiqamiz .Harflarimizni 2 bitli ko’rinishida belgilandan sung.Matinimizni 2 bitli ko’rinishga o’tkazib olamiz.
Davronov shaxzod =1001101000011110100,01001010101 01000101000,01010110101001100100001,001111110010010110110.
A5/1 3-ta registrlardan iborat;
–X: 19 bits (x0 ,x1 ,x2 , …,x18)
–Y: 22 bits (y0 ,y1 ,y2 , …,y21)
–Z: 23 bits (z0 ,z1 ,z2 , …,z22)

X,Y,Z –registrlarga Davronov shaxzod 2 likka o’tkazgan qiymatlarimni 64 ta belgisini quyib chiqaman.Bundan boshidagi 19 tasi X-registrga, Keyingi 22 tasi Y-registrga, Oxirgi 23 tasi Z-registrga joylashtiraman.


-X(1,0,0,1,1,0,1,0,0,0,0,1,1,1,1,0,1,0,0_)_-Y(0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0_)_-Z(0,1,0,1,0,1,1,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,1'>1,0,0,1,1,0,1,0,0,0,0,1,1,1,1,0,1,0,0 )
-Y(0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0)
-Z(0,1,0,1,0,1,1,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,1)
Har bir qadamda Majori hisoblab boriladi.
M=maj(x8, y10, z10)
Biz majordan chiqqan qiymatga qarab qaysi registrni surishni bilib olamiz.Majorni hisoblashda qaysi belgi ko’p bo’lsa Majni qiymati ushanga teng;
Masalan:
m=maj(0,0,1)=0
m=maj(1,1,0)=1
m=maj(1,1,1)=1
Biznig misolimizda x8=0, y10=1, z10=1
-X(1,0,0,1,1,0,1,0,0,0,0,1,1,1,1,0,1,0,0 )
-Y(0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0)
-Z(0,1,0,1,0,1,1,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,1)
M=maj(x8, y10, z10)=maj(0,1,1)=1
Majorni topip olganimizdan sung x8, y10, z10 qiymatrini Maj bilan tegshirib olamiz.Qaysini qiymati majga teng bo’lsa O’sha registrni suramiz.
M=1 , X8=0 --> X-register surilmaydi.
M=1 , Y10=1 --> Y-register suriladi.
M=1 , Z10=1 --> Z-register suriladi.

Surilgan registrlarni X0, Y0 ,Z0 Urniga esa Xorlash amali orqali topgan holda bo’shagan o’rinlarga joylashtiramiz.

– tx = X13  X16  X17  X18  Bu X registrdagi xorlanadigan belgilar.
– ty= Y20  Y21  Bu Y registrdagi xorlanadigan belgilar
– tz= Z7  Z20  Z21  Z22  Bu Z registrdagi xorlanadigan belgilar.
Bu belgialrni tanlanishdan maqsad biz yaratgan kalit bardoshli buladi.

-X(1,0,0,1,1,0,1,0,0,0,0,1,1,1,1,0,1,0,0 )


-Y(0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0)
-Z(0,1,0,1,0,1,1,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,1)
ty= Y20  Y21 =00=0
tz= Z7  Z20  Z21  Z22=0001=1
Xregister surilmaydi.

Y va Z registrlarim bir birlik o’ng tomonga surilib oxirgi bitlar chiqib ketadi. Va birinchi bitga esa xorlaganda chiqgan bitlarni boshiga quyiladi.


-X(1,0,0,1,1,0,1,0,0,0,0,1,1,1,1,0,1,0,0 )


-Y(0,0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,0)
-Z(1,0,1,0,1,0,1,1,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0)
Kalitimizni topishda esa X,Y,Z registerlarimizning oxirgi belgilarimizni xorlash orqali kalitimiznig birinchi bitini topip olamiz.
X18Y22Z23=000=0
K=0
Shu tariqa Kalitimizni boshqa bitlarini topip olamiz. Chiqgan kalitni matnnimizga xorlab shifrmatn hosil qilamiz.
Kalitimizning topip olgandan sung Shifirlanadigan matnni ham 2lik sanoq sistemasiga utkazib olamiz.
K=00110011011101111001010001010011111110010011101101011011101010010111111110101010
A-00001 F-00110 K-01011 P-10000 U-10101 Z-11010 #-11111
B-00010 G- 00111 L- 01100 Q- 10001 V-10110 @-11011 /-00000
C-00011 H-01000 M-01101 R- 10010 W- 10111 ?-11100
D-00100 I- 01001 N-01110 S- 10011 X-11000 &-11101
E-00101 J- 01010 O-01111 T- 10100 Y-11001 %-11110
Matn=Umirbek
Umirbek=10101, 01101, 01001, 10010, 00010, 00101, 01011
Matn uzunligicha kalitni olamiz.
K=00110,01101,11011,11001,01000,10100,11111
Kalit va matnni mos urinda turgan bitlarni xorlayman
Sh=MK
M=10101,01101,01001,10010,00010,00101,01011
K=00110,01101,11011,11001,01000,10100,11111
Sh=10011,00000,10010,01011,01010,10001,10100
Kalit va Matn xorlab Shifirmatnni xosil qildik.
Shifir matnni harf kurinishiga o’tkazib olamiz.Belgilab chiqgan harflarimiz orqali.
A-00001 F-00110 K-01011 P-10000 U-10101 Z-11010 #-11111
B-00010 G- 00111 L- 01100 Q- 10001 V-10110 @-11011 /-00000
C-00011 H-01000 M-01101 R- 10010 W- 10111 ?-11100
D-00100 I- 01001 N-01110 S- 10011 X-11000 &-11101
E-00101 J- 01010 O-01111 T- 10100 Y-11001 %-11110
Sh=10011,00000,10010,01011,01010,10001,10100
Sh=S/RKJQT
A5/1 shifirlash usuli orqali Shifirmatnimizni topdim
Download 19,65 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish