Skip to content

Commit

Permalink
Fixed a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nbro committed Mar 3, 2017
1 parent 9d8e683 commit 46a8804
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ands/algorithms/crypto/caesar.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
In this way, a message that initially was quite readable,
ends up in a form that can not be understood at first glance.
For example, suppose we want to caesar_encrypt the plaintext m = "abc".
For example, suppose we want to encrypt the plaintext m = "abc".
Suppose further that our alphabet is the English alphabet (of lower case letters from 'a' to 'z').
So we have an alphabet of 26 symbols or, more commonly known, letters.
Expand Down Expand Up @@ -76,7 +76,7 @@
d(x) := (x - k) mod 26
where x is in this case a integer representation of a character, not from the plaintext,
but from an caesar_encrypt text using the previously described Caesar encryption algorithm.
but from an encrypted text using the previously described Caesar encryption algorithm.
## Implementation
Expand All @@ -85,8 +85,7 @@
# Comments
Caesar cipher is far from being a good cryptographic algorithm,
so, in general, you should never use it to caesar_encrypt your messages!
Caesar cipher is **not** a good cryptographic algorithm, so you should never use it to encrypt your messages!
# References
Expand Down

0 comments on commit 46a8804

Please sign in to comment.