Giter Club home page Giter Club logo

pyrc5's Introduction

pyRC5


Build Status

Unlike many schemes, RC5 has a variable block size (32, 64 or 128 bits), key size (0 to 2040 bits) and number of rounds (0 to 255). The original suggested choice of parameters were a block size of 64 bits, a 128-bit key and 12 rounds.

Usage

There are two entrypoint script: encrypt and decrypt with the same interface.

usage: encrypt.py [-h] -i INPUT_FILE -k KEY_FILE -o OUTPUT_FILE
                  [-w BLOCK_SIZE] [-r ROUND_SIZE]

Required arguments:
  -i INPUT_FILE, --input-file INPUT_FILE
                        Path to data file
  -k KEY_FILE, --key-file KEY_FILE
                        Path to key file
  -o OUTPUT_FILE, --output-file OUTPUT_FILE
                        Path to result file.

Optional arguments:
  -w BLOCK_SIZE, --block-size BLOCK_SIZE
                        RC5 block size. (32, 64 or 128 bits)
  -r ROUND_SIZE, --round-size ROUND_SIZE
                        RC5 round count. (0 to 255)

For example, assume that we have source.txt and key.rc5 files, then:

python encrypt.py -i source.txt -o encrypted.txt -k key
python decrypt.py -i encrypted.txt -o decrypted.txt -k key 

pyrc5's People

Contributors

tbb avatar

Watchers

 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.