8000 Minor formatting improvements in `hill_cipher.md` (#202) · StenTech/Algorithms-Explanation@12f8a74 · GitHub
[go: up one dir, main page]

Skip to content

Commit 12f8a74

Browse files
author
AnAverageBeing
authored
Minor formatting improvements in hill_cipher.md (TheAlgorithms#202)
1 parent c111d47 commit 12f8a74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

en/Ciphers/hill_cipher.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ key:`GYBNQKURP`
1717
1. We have to write key as an `n × n` matrix as
1818

1919
```
20-
[6 24 1]
20+
[6 24 1]
2121
[13 16 10]
2222
[20 17 15]
2323
```
@@ -31,7 +31,7 @@ key:`GYBNQKURP`
3131
3. Now, we need to encipher the vector by just multiplying these two matrices
3232

3333
```
34-
[6 24 1] [0] [67] [15]
34+
[6 24 1] [0] [67] [15]
3535
[13 16 10] * [2] = [222] ≈ [4] (mod 26)
3636
[20 17 15] [19] [319] [7]
3737
```
@@ -42,14 +42,14 @@ So we will get the encrypted text as **POH**.
4242
1. We need to first inverse our key matrix
4343
```
4444
-1
45-
[6 24 1] [8 5 10]
45+
[6 24 1] [8 5 10]
4646
[13 16 10] ≈ [21 8 21] (mod 26)
4747
[20 17 15] [21 12 8]
4848
```
4949
2. For the previous Cipher Text **POH**
5050

5151
```
52-
[8 5 10] [15] [260] [0]
52+
[8 5 10] [15] [260] [0]
5353
[21 8 21] * [14] ≈ [574] ≈ [2] (mod 26) ≈ ACT
5454
[21 12 8] [7] [539] [19]
5555
```

0 commit comments

Comments
 (0)
0