Git Product home page Git Product logo

aesculap's Introduction

AESculap

Implementation of the Advanced Encryption Standard (AES) algorithm.

aesculap is just a little hobbyist project for learning purposes.

The binary provides a little CLI tool to encrypt/decrypt files. The library provides stuff to work with AES but is not really intended to be used in external code.

CLI usage

$ aesculap encrypt --help
Usage: aesculap encrypt [OPTIONS] --key-file <KEY_FILE> <--cbc|--ecb> <--input-file <INPUT_FILE>|--stdin> <--output-file <OUTPUT_FILE>|--stdout>

Options:
  -k, --key-file <KEY_FILE>
          The key must have a size of 128, 192 or 256 bits (16, 24 or 32 bytes)

      --cbc
          Cipher Block Chaining mode

          An initialization vector (IV) is used and the blocks are chained together. It is generally more secure.

      --ecb
          Electronic Code Book mode (not recommended)

          Each block is encrypted with the same key and algorithm. It is fast and easy but quite insecure.

  -p, --padding <PADDING>
          Padding is required to divide the data into even sized blocks

          [default: pkcs7]

          Possible values:
          - pkcs7: Padding is done according to PKCS #7 (recommended)
          - zero:  The blocks are filled with zeroes
          - none:  The data is not padded (may fail)

      --iv-file <IV_FILE>
          In CBC mode an IV with a size of 128 bits (16 bytes) is required

      --random-iv <IV_FILE>
          Generate a random IV and write it to a file

  -i, --input-file <INPUT_FILE>
          Read the input from a file

      --stdin
          Read the input from STDIN

  -o, --output-file <OUTPUT_FILE>
          Write the output to a file

      --stdout
          Write the output to STDOUT

  -h, --help
          Print help (see a summary with '-h')

$ aesculap decrypt --help
Usage: aesculap decrypt [OPTIONS] --key-file <KEY_FILE> <--cbc|--ecb> <--input-file <INPUT_FILE>|--stdin> <--output-file <OUTPUT_FILE>|--stdout>

Options:
  -k, --key-file <KEY_FILE>
          The key must have a size of 128, 192 or 256 bits (16, 24 or 32 bytes)

      --cbc
          Cipher Block Chaining mode

          An initialization vector (IV) is used and the blocks are chained together. It is generally more secure.

      --ecb
          Electronic Code Book mode (not recommended)

          Each block is encrypted with the same key and algorithm. It is fast and easy but quite insecure.

  -p, --padding <PADDING>
          [default: pkcs7]

          Possible values:
          - pkcs7: Padding is done according to PKCS #7 (recommended)
          - zero:  The blocks are filled with zeroes
          - none:  The data is not padded (may fail)

      --iv-file <IV_FILE>
          In CBC mode an IV with a size of 128 bits (16 bytes) is required

  -i, --input-file <INPUT_FILE>
          Read the input from a file

      --stdin
          Read the input from STDIN

  -o, --output-file <OUTPUT_FILE>
          Write the output to a file

      --stdout
          Write the output to STDOUT

  -h, --help
          Print help (see a summary with '-h')

Sources

aesculap's People

Watchers

Rasmus Buurman 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.