https://github.com/thomas-basham/caesar-cipher
https://github.com/thomas-basham/caesar-cipher
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thomas-basham/caesar-cipher
- Owner: Thomas-Basham
- Created: 2022-05-11T21:23:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-12T03:51:53.000Z (about 3 years ago)
- Last Synced: 2024-12-31T00:44:04.935Z (5 months ago)
- Language: Python
- Size: 9.95 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lab: Cryptography
## Overview
**Today we’ll be tackling a cryptographic classic - the Caesar Cipher.****Your job will be to devise a method to encrypt a message that can then be decrypted when supplied with the corresponding key.**
**Feature Tasks and Requirements**:
1. [x] Create an encrypt function that takes in a plain text phrase and a numeric shift.
2. [x] the phrase will then be shifted that many letters.
3. [x] E.g. encrypt(‘abc’,1) would return ‘bcd’. = E.g. encrypt(‘abc’, 10) would return ‘klm’.
4. [x] shifts that exceed 26 should wrap around.
5. [x] E.g. encrypt(‘abc’,27) would return ‘bcd’.
6. [x] shifts that push a letter out or range should wrap around.
7. [x] E.g. encrypt(‘zzz’,1) would return ‘aaa’.
8. [x] Create a decrypt function that takes in encrypted text and numeric shift which will restore the encrypted text back to its original form when correct key is supplied.
9. [x] create a crack function that will decode the cipher so that an encrypted message can be transformed into its original state WITHOUT access to the key.
10. [x] Devise a method for the computer to determine if code was broken with minimal human guidance.**Implementation Notes**
In order to accomplish a certain task you’ll need access to a corpus of English words.
A search on something like python list of english words should get you going.## Resources
[]()