Update Caeser README

This commit is contained in:
Josh Mudge 2018-10-06 11:53:21 -06:00
父節點 be2d772495
當前提交 891e3ac0da
共有 1 個文件被更改,包括 5 次插入3 次删除

查看文件

@ -17,12 +17,14 @@ This tool is a work in progress.
### Encrypt ### Encrypt
`python3 caeser-cipher.py encrypt "secretmessage"` `python3 caeser-cipher.py encrypt [secretmessage] [shift]`
For example: `python3 caeser-cipher.py encrypt "Hi, how are you?""` For example: `python3 caeser-cipher.py encrypt "Hi, how are you?" 3"`
### Decrypt ### Decrypt
`python3 caeser-cipher.py decrypt "encryptedtext"` `python3 caeser-cipher.py decrypt "encryptedtext"`
For example: `python3 caeser-cipher.py decrypt "hhhhhhhhhh"` For example: `python3 caeser-cipher.py decrypt "hhhhhhhhhh" 3`
If you don't know the shift for the encrypted text, use 0 for the shift. The script will attempt to break the cipher for you.