Skip to content

mike-school-projects/caesar-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAB - Class 18

Project: Cryptography

Author: Mike Shen

Description:

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’.
  • 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.

Links and Resources

Taking out punctuation from word

Setup

Install per requirements.txt

How to initialize/run your application (where applicable)

to run program:

python cipher.py

How to use your library (where applicable)

N/A

Tests

To test:

pytest

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages