• Shifr l ash
  • Muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti axborot xavfsizligi fakulteti




    Download 90,71 Kb.
    bet2/2
    Sana19.05.2024
    Hajmi90,71 Kb.
    #243618
    1   2
    Bog'liq
    Namazov kripto Amaliy 1

    D

    E

    F

    G

    H

    I

    J

    K

    L

    M

    N

    O

    P

    Q

    R

    S

    T

    U

    V

    W

    X

    Y

    Z

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25



    Shifrlash. Ushbu usulda ma’lumotlarni shifrlash uchun “ NAMAZOV HUSNIDDIN” ochiq matni olinib, kalit sifatida a=2 va b=5 olindi. Alifbo uzunligi m=26 ga ten. Bu holda shifrlash funksifsining umumiy ko‘rinishi quyidagicha bo‘ladi: y = E(x) = (2x + 5)mod26. Yuqoridagi jadvalga asoslanib quyidagini olish mumkin:



    Xabar

    N

    A

    M

    A

    Z

    O

    V

    H

    U

    S

    N

    I

    D

    D

    I

    N

    X

    13

    0

    12

    0

    25

    14

    21

    7

    20

    18

    13

    8

    3

    3

    8

    13

    Shifrlashning umumiy ko‘rinishi esa quyidagicha bo‘ladi:

    Xabar

    N

    A

    M

    A

    Z

    O

    V

    H

    U

    S

    N

    I

    D

    D

    I

    N

    X

    13

    0

    12

    0

    25

    14

    21

    7

    20

    18

    13

    8

    3

    3

    8

    13

    2x+5

    31

    5

    29

    5

    55

    33

    47

    19

    45

    41

    31

    21

    11

    11

    21

    31

    (2x+5)mod26

    5

    5

    3

    5

    3

    7

    21

    19

    19

    17

    5

    21

    11

    11

    21

    5

    Shifr matn

    F

    F

    D

    F

    D

    H

    V

    T

    T

    R

    F

    V

    L

    L

    V

    F

    Deshifrlash formulasi D(y) = a1(y-b) mod m ga teng bo’lib, a1 = 9 , b=4 va m=26 ga teng bo‘ladi



    .Shifr matn

    F

    F

    D

    F

    D

    H

    V

    T

    T

    R

    F

    V

    L

    L

    V

    F

    Y


    5

    5

    3

    5

    3

    7

    21

    19

    19

    17

    5

    21

    11

    11

    21

    5

    Deshifrlashning umumiy ko‘rinishi esa: X*a mod m =1




    Shifrmatn

    F

    F

    D

    F

    D

    H

    V

    T

    T

    R

    F

    V

    L

    L

    V

    F

    Y

    5

    5

    3

    5

    3

    7

    21

    19

    19

    17

    5

    21

    11

    11

    21

    5

    9*(y-4)

    9

    9

    -9

    9

    -9

    27

    153

    135

    135

    117

    9

    153

    63

    63

    153

    9

    9(y-4)mod26

    9

    9

    17

    9

    17

    1

    23

    5

    5

    13

    9

    23

    11

    11

    23

    9

    Xabar

    J

    J

    R

    J

    R

    B

    X

    F

    F

    N

    J

    X

    L

    L

    X

    J

    Download 90,71 Kb.
    1   2




    Download 90,71 Kb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti axborot xavfsizligi fakulteti

    Download 90,71 Kb.