Giter VIP home page Giter VIP logo

solenc's Introduction

solenc

v1.0.2

Build Status Coverage Status

An implementation of Bruce Schneier's Solitaire encryption algorithm.

Usage Example

$ solenc encrypt -d "$(solenc generate)" -k CRYPTONOMICON solitaire
KIRAK SFJAN
$ solenc decrypt -d "$(solenc generate)" -k CRYPTONOMICON "KIRAK SFJAN"
SOLIT AIREX

Syntax

$ solenc --help
usage: solenc [-h] [-v VERBOSITY] {encrypt,decrypt,generate,add,subtract} ...

positional arguments:
  {encrypt,decrypt,generate,add,subtract}

optional arguments:
  -h, --help            show this help message and exit
  -v VERBOSITY, --verbosity VERBOSITY
                        The verbosity for the program to operate at
$ solenc encrypt --help
usage: solenc encrypt [-h] -d DECK [-k KEY] message

positional arguments:
  message               The plaintext to encrypt

optional arguments:
  -h, --help            show this help message and exit
  -d DECK, --deck DECK  A deck serialization, or filepath for a file
                        containing one.
  -k KEY, --key KEY     A key to apply to the initial state of the deck
$ solenc decrypt --help
usage: solenc decrypt [-h] -d DECK [-k KEY] message

positional arguments:
  message               The ciphertext to decrypt

optional arguments:
  -h, --help            show this help message and exit
  -d DECK, --deck DECK  A deck serialization, or filepath for a file
                        containing one.
  -k KEY, --key KEY     A key to apply to the initial state of the deck
$ solenc generate --help
usage: solenc generate [-h] [-d DECK] [-k KEY] [--shuffle]

optional arguments:
  -h, --help            show this help message and exit
  -d DECK, --deck DECK  An initial deck state to operate with. If omitted a
                        bridge order deck with both Jokers at the end will be
                        used.
  -k KEY, --key KEY     A key to apply to to the deck.
  --shuffle             If present the deck is shuffled. You probably only
                        want this if the other two options are omitted in
                        order to produce a random deck.
$ solenc add --help
usage: solenc add [-h] n m

positional arguments:
  n           The first term
  m           The second term

optional arguments:
  -h, --help  show this help message and exit
$ solenc subtract --help
usage: solenc subtract [-h] n m

positional arguments:
  n           The first term
  m           The second term

optional arguments:
  -h, --help  show this help message and exit

Author

Brian Balsamo [email protected]

solenc's People

Watchers

 avatar  avatar

solenc's Issues

Implement bumpversion

Need to implement bumpversion (and semantic versioning) for keeping track of any changes that are required, and also to bump the current iteration up to 1.0.0 and do a tag/release

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.