- Create an encrypt function that takes in a plain text phrase and a numeric shift.
- the phrase will then be shifted that many letters.
- E.g. encrypt(‘abc’,1) would return ‘bcd’. = E.g. encrypt(‘abc’, 10) would return ‘klm’.
- shifts that exceed 26 should wrap around.
- E.g. encrypt(‘abc’,27) would return ‘bcd’.
- the phrase will then be shifted that many letters.
- shifts that push a letter out or range should wrap around.
- E.g. encrypt(‘zzz’,1) would return ‘aaa’.
- 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.
- 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.
- Devise a method for the computer to determine if code was broken with minimal human guidance.
.env
requirements (where applicable)
i.e.
PORT
- Port NumberDATABASE_URL
- URL to the running Postgres instance/db
python caesar_cipher/caesar_cipher.py
- How do you run tests? pytest test_caeser.py
- Any tests of note?
- Describe any tests that you did not complete, skipped, etc