Skip to content

Commit 794e176

Browse files
authored
docs: Fixed an issue in Vigenere cipher documentation (#964)
* Fixed a doxygen doc issue * Chnaged ||key| < |text| to |key| < |text|
1 parent 8d68e61 commit 794e176

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ciphers/vigenere_cipher.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
* ### Algorithm
1010
* The encryption can also be represented using modular arithmetic by first transforming
1111
* the letters into numbers, according to the scheme, A → 0, B → 1, ..., Z → 25.
12-
* Encryption of \f$\i^{th}\f$ character in Message M by key K can be described mathematically as,
12+
* Encryption of \f$i^{th}\f$ character in Message M by key K can be described mathematically as,
1313
*
1414
* \f[ E_{K}(M_{i}) = (M_{i} + K_{i})\;\mbox{mod}\; 26\f]
1515
*
16-
* while decryption of \f$\i^{th}\f$ character in Cipher C by key K can be described mathematically as,
16+
* while decryption of \f$i^{th}\f$ character in Cipher C by key K can be described mathematically as,
1717
*
1818
* \f[ D_{k}(C_{i}) = (C_{i} - K_{i} + 26)\;\mbox{mod}\; 26\f]
1919
*
20-
* Where \f$\K_{i}\f$ denotes corresponding character in key. If \f$\|key| < |text|\f$ than
20+
* Where \f$K_{i}\f$ denotes corresponding character in key. If \f$|key| < |text|\f$ than
2121
* same key is repeated untill their lengths are equal.
2222
*
2323
* For Example,

0 commit comments

Comments
 (0)