O’ZBEKISTON RESPUBLIKASI AXBOROT
TEXNOLOGIYALARI VA KOMMUNIKATSIYALARINI
RIVOJLANTIRISH VAZIRLIGI
MUHAMMAD AL-XORAZMIY NOMIDAGI
TOSHKЕNT AXBOROT TЕXNOLOGIYALARI
UNIVЕRSITЕTI
KIBERXAFSIZLIK FAKULTETI AXBOROT XAFSIZLIK YO’NALISH
710-20 GURUX TALABASI YO‘LDASHEV DONIYORBEKNING
KRIPTOGRAFIYA1 (amaliyot)
fanidan
6-AMALIY TOPSHIRIG‘I
BAJARDI:YO‘LDASHEV DONIYORBEK
Toshkent-2022
N bitli sklemebr qurish
23-variyant
Doniyor 1 0 1 0 1 0 1 0 0 0 1 1 0 1 0 1 0 0 1 0
# Online Python compiler (interpreter) to run Python online.
# Write Python 3 code in this online editor and run it.
bit = [1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0]
bit_org = [1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0]
i=0
key = []
while True:
k = bit[18] ^ bit[6] ^ bit[5] ^ bit[2] ^ bit[1]
bit.insert(0, k)
b = bit.pop()
key.append(b)
i += 1
print(bit)
print(i)
#)print(bool)
if bit == bit_org:
print("finish")
break
else:
continue
print("key = ", key)
Bu berilgan sklember davri 1429 ga teng
Do'stlaringiz bilan baham: |