
https://ipfs.busy.org/ipfs/QmX1Ae5Msy1AkcuZVSa68XapoJPgPMn8ktn5H3Kbo6dhWt
| Hill cipher | Шифр Гілла |
90 years ago, in 1929, the American mathematician, Lester Hill, developed, patented, and even put on sale, a new system of encryption that was based on linear algebra, on its own. Below you will be able to make sure matrices are very convenient instrument for encrypting messages when the text is split into pairs of letters and each corresponds to a certain numeric value.
|
90 років тому, у 1929 році, американський математик Ластер Гілл розробив , запатентував ,та навіть виставив на продаж,нову на свій час систему шифрування яка базувалась на лінійній алгебрі. Нижче ви зможете переконатись у тому , що матриці , являються дуже зручним інтсрументом для шифрування повідомлень коли текст розбивається на пари букв і кожній відповідає певне числове значення .
|
https://ipfs.busy.org/ipfs/QmQt6KZj61z6CWRxeaUnYaFrrDWgU4vtQs1jwKC19jnB8f
|
For encryption, use the matrix above, with a determinant equal to 1 (ad-bc = 1). For decryption, use the reciprocal matrix:
|
Для шифрування скористаємось матрицею вказаною вище,з визначником рівним 1 (ad-bc=1).Для розшифрування скористаємось зворотньою матрицею:
|
https://ipfs.busy.org/ipfs/QmdywSgWWhW8S6RHMb3EvGE7QMrNSgyXz9FSQX4TN7ApCa
| A
|
B
|
C
|
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
|
|
We use the mapping above to encrypt the message. To get values from 0 to 25, we will work on Module 26.
|
Використаємо зіставлення вище для шифрування повідомлення.Для отримання значень від 0 до 25 будемо працювати по модулю 26.
|
https://ipfs.busy.org/ipfs/QmNRi41whQMbpKT7VEY9npgs5p64HrYceakwuQiVNvFWf6
| Encryption matrix from right, decryption matrix from left. |
Матриця шифрування з права , матриця дешифрування з ліва. |
|
Encrypt part of my pseudonym. We get 4 pairs of 2 letters and their numerical ratios. Multiply the encryption matrix with each of the pairs of letters
|
Зашифруємо частину мого псевдоніму . Отримаємо 4 пари по 2 букви та їхні числові співвідношення. Перемножуємо матрицю шифрування з кожною з пар літер
|
| a b| | x | = | ax + by |
| c d| | y | = | cx + dy |
| 5 1 | | 12 |
| 24 5 | | 0 |
5 * 12 + 1 * 0 = 60 = 8 (mod 26)
24 *12 + 5 *0 = 288 = 2 (mod 26)
| Compose all values and get the result as below: |
Зіставляєм усі значення і отримуємо резулятат вказаний нижче: |
| To decrypt, we carry out a similar encryption action using the decryption matrix. The resulting result will be equal to the input current, make sure you can independently |
Для дешифрування проводимо аналогічну дію шифруванню використовуючи матрицю дешифрування.Отриманий результат буде рівний вхідному тектсу , переконатись в чому можете самостійно |
Дякую вам!!!
У наступній статті буде спроба реалізувати даний шифр !!!
Шифр не є криптографічно надійним , та всеж є цікавим для практичного вивчення!!!
Thank you!!!
The next article will attempt to implement this code !!!
The cipher is not cryptographically reliable, but still interesting for practical study !!!