readme fix

This commit is contained in:
Luxferre
2025-03-24 11:34:59 +02:00
parent ecdd305c43
commit 58a6d460fa
+6 -6
View File
@@ -79,11 +79,11 @@ message with DRACONDI.
1. Randomly choose the initial offset from 0 to 25. Write its corresponding 1. Randomly choose the initial offset from 0 to 25. Write its corresponding
letter in the KA1 alphabet as the first ciphertext letter. letter in the KA1 alphabet as the first ciphertext letter.
2. For every plaintext letter, do the following: 2. For every plaintext letter, do the following:
* Locate the plaintext letter position in the KA1 alphabet. Locate the 1. Locate the plaintext letter position in the KA1 alphabet. Locate the
ciphertext position by moving (offset) letters to the right, wrapping ciphertext position by moving (offset) letters to the right, wrapping
around the alphabet if necessary. around the alphabet if necessary.
* Write down the ciphertext letter according to the KA1 alphabet. 2. Write down the ciphertext letter according to the KA1 alphabet.
* Get the position of the ciphertext letter in the KA2 alphabet. Calculate 3. Get the position of the ciphertext letter in the KA2 alphabet. Calculate
the next offset as the sum of that position and the amount of letters the next offset as the sum of that position and the amount of letters
already encrypted in the message (modulo 26). already encrypted in the message (modulo 26).
@@ -101,11 +101,11 @@ with DRACONDI.
1. Derive the initial offset from the first ciphertext letter in the KA1 1. Derive the initial offset from the first ciphertext letter in the KA1
alphabet. Discard the first ciphertext letter afterwards. alphabet. Discard the first ciphertext letter afterwards.
2. For every remaining ciphertext letter, do the following: 2. For every remaining ciphertext letter, do the following:
* Locate the ciphertext letter position in the KA1 alphabet. Locate the 1. Locate the ciphertext letter position in the KA1 alphabet. Locate the
plaintext position by moving (offset) letters to the left, wrapping around plaintext position by moving (offset) letters to the left, wrapping around
the alphabet if necessary. the alphabet if necessary.
* Write down the plaintext letter according to the KA1 alphabet. 2. Write down the plaintext letter according to the KA1 alphabet.
* Get the position of the ciphertext letter in the KA2 alphabet. Calculate 3. Get the position of the ciphertext letter in the KA2 alphabet. Calculate
the next offset as the sum of that position and the amount of letters the next offset as the sum of that position and the amount of letters
already decrypted in the message (modulo 26). already decrypted in the message (modulo 26).