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 = DILMURODOV_SHOHJAHON
K = TALABA
Qo’shish jarayoni :
D 00011 I 01000 L 01011 M 01100
+ + + +
T 10011 A 00000 L 01011 A 00000
= = = =
Q 10000 I 01000 A 00000 M 01100
Shu tariqa davom ettirsak quyidagich shifrlanadi :
T1 = QIAMVR@DFV@S_OEJBH@N
Deshiflash
Q 10000 I 01000 A 00000 M 01100
+ + + + +
T 10011 A 00000 L 01011 A 00000
= = = = =
D 00011 I 01000 L 01011 M 01100
Davom ettirilsa quyidagi hosil bo’ladi:
T0 = DILMURODOV_SHOHJAHON