Vernam usuli


Download 16.28 Kb.
Sana17.06.2023
Hajmi16.28 Kb.
#1553517
Bog'liq
VERNAM USULI


VERNAM USULI
Vernam usuli bo’yicha shifrlashda Ingliz alifbosi va yana 6 ta simvol jami 32 ta belgini tartiblab raqamlaymiz va 0 va 1 lik kodlarga o’girib chiqamiz. Keyinchalik xor amali orqali belgilarni yig’indisini olamiz. Qo’shiluvchilar esa shifrlanuvchi ma’lumot va kalitdir.
A=0=00000 N=13=01101 #=26=11010
B=1=00001 O=14=01110 !=27=11011
C=2=00010 P=15=01111 _=28=11100
D=3=00011 Q=16=10000 @=29=11101
E=4=00100 R=17=10001 ?=30=11110
F=5=00101 S=18=10010 *=31=11111
G=6=00110 T=19=10011 XOR jadvali
H=7=00111 U=20=10100 0+0=0
I=8=01000 V=21=10101 0+1=1
J=9=01001 W=22=10110 1+0=1
K=10=01010 X=23=10111 1+1=0
L=11=01011 Y=24=11000 Formulasi:
M=12=01100 Z=25=11001 T1=T0+K
T0 = USMANBAYEV_DONIYORBEK_SHUHRATOVICH
K = TALABA
Qo’shish jarayoni :
U 10100 S 10010 M 01100 A 00000
+ + + +
T 10011 A 00000 L 01011 A 00000
= = = =
H 00111 S 10010 H 00111 A 00000
Shu tariqa davom ettirsak quyidagich shifrlanadi :
T1 = HSHAMBTYPV@D@NDYPRSEB_THHH#ASOGIJH
Shu yo’l bilan orqaga qaytiladi ya’ni tayyor ma’lumotga kalit qo’shiladi va shifrlangan ma’lumot qaytarib olinadi.
Download 16.28 Kb.

Do'stlaringiz bilan baham:




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