mirror of
https://github.com/Smaug123/ClassicalCiphers.jl
synced 2025-10-06 09:58:41 +00:00
Refined docstrings and added documentation
This commit is contained in:
21
README.md
21
README.md
@@ -1,10 +1,17 @@
|
||||
[](https://travis-ci.org/Smaug123/ClassicalCiphers.jl) [](https://coveralls.io/github/Smaug123/ClassicalCiphers.jl?branch=master) [](https://github.com/invenia/BlueStyle)
|
||||
<h1 align="center">
|
||||
ClassicalCiphers.jl
|
||||
</h1>
|
||||
|
||||
# ClassicalCiphers
|
||||
<!-- [](https://username.github.io/MyCoolPackage.jl/stable) -->
|
||||
[](https://username.github.io/MyCoolPackage.jl/dev)
|
||||
[](https://github.com/username/MyCoolPackage.jl/actions?query=workflow%3ACI)
|
||||
[](https://coveralls.io/github/Smaug123/ClassicalCiphers.jl?branch=master)
|
||||
[](https://github.com/invenia/BlueStyle)
|
||||
|
||||
## Main Features
|
||||
|
||||
Provides access to encryption and decryption of strings according to a variety of classical algorithms.
|
||||
Provides access to encryption and decryption of strings according to a variety of classical algorithms. Classical ciphers were created before computers, and thus work on letters rather than bits.
|
||||
|
||||
The Solitaire cipher is included for completeness, though it is perhaps not strictly classical.
|
||||
|
||||
## Currently Implemented
|
||||
@@ -20,6 +27,7 @@ The Solitaire cipher is included for completeness, though it is perhaps not stri
|
||||
* [Solitaire]
|
||||
* [Rail Fence]
|
||||
* [Substitution]
|
||||
* [Atbash]
|
||||
|
||||
## Gotchas
|
||||
|
||||
@@ -398,6 +406,12 @@ julia> decrypt_atbash("HLNV GVCG", "abcdefghijklmnopqrstuvwxyz")
|
||||
"some text"
|
||||
```
|
||||
|
||||
### Atbash
|
||||
|
||||
```julia
|
||||
encrypt_atbash("hello this is plaintext", "abcdefghijklmnopqrstuvwxyz") == encrypt_substitution("hello this is plaintext", "abcdefghijklmnopqrstuvwxyz", "zyxwvutsrqponmlkjihgfedcba")
|
||||
```
|
||||
|
||||
[Caesar]: https://en.wikipedia.org/wiki/Caesar_cipher
|
||||
[Affine]: https://en.wikipedia.org/wiki/Affine_cipher
|
||||
[Vigenère]: https://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher
|
||||
@@ -409,3 +423,4 @@ julia> decrypt_atbash("HLNV GVCG", "abcdefghijklmnopqrstuvwxyz")
|
||||
[Enigma]: https://en.wikipedia.org/wiki/Enigma_machine
|
||||
[Rail Fence]: https://en.wikipedia.org/wiki/Rail_fence_cipher
|
||||
[Substitution]: https://en.wikipedia.org/wiki/Substitution_cipher
|
||||
[Atbash]: https://en.wikipedia.org/wiki/Atbash
|
||||
|
Reference in New Issue
Block a user