GithubHelp home page GithubHelp logo

python1's Introduction

python 1

This project is intended to be a bare-bones example of how to start a python project.

To start the virtual env:

pipenv shell

To install the dependencies:

pipenv install
pipenv install --dev

Make sure the python interpreter used by VS Code is set to the python installed in your project .venv

To run the project:

python3 app.py

To test the project:

pytest

To close the session:

CTRL + C
exit

Substitution Cipher

To run the substitution cipher program...

First, make sure you have a plaintext.txt file with some text in it, and a keyword.txt file with a word in it, and put them in the same folder as the substitution-cipher.py file.

Change into the substitution-cipher folder:

cd substitution-cipher

Then type the following into your command terminal:

python3 substitution-cipher.py

This will create a file named ciphertext.txt if it does not already exist, and store the encrypted text there.

To decrypt the ciphertext.txt file type the following into your command terminal:

python3 substitution-cipher.py -d -i ciphertext.txt -o decryptedtext.txt -k keyword.txt

This will create a file named decryptedtext.txt if it does not already exist, and store the decrypted text there.

At this point the contents of decryptedtext.txt and plaintext.txt should be the same.

python1's People

Contributors

bjanderson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.