Git Product home page Git Product logo

xor_crypt's Introduction

XOR Crypt

A command-line utility for encrypting files with a one-time pad. Each bit in the input file is XOR'd with the cooresponding bit in the one-time pad.

Proper Usage

Show proper usage for the installed version of xor_crypt.

xorc --help

Show installed xor_crypt version.

xorc --version

Encrypt/decrypt a file

xorc <input_file> <output_file> [--pad=<path_to_pad>] [--pos=<position_in_pad>]

NOTE: Options (starting with the "--" prefix) are optional and can be in any order.

WARNING: Paths to files must be absolute. Relative paths will NOT be normalized.

Example:
Encrypt "my_secret.txt" with "my_pad.key" at position 0 and write output to "my_encrypted_secret.crypt".

xorc my_secret.txt my_encrypted_secret.crypt --pad=my_pad.key --pos=0

Build and install this project with Conan (for Unix-like systems)

1. Install a C++ compiler (Example: clang), Git, and Python >=3.7 (Example: apt).

sudo apt install -y clang git python3

2. (Optional) Create a Python >=3.7 virtual environment and activate it. Install the Python Virtual Environment if you haven't already.

python3 -m venv .venv
source .venv/bin/activate

3. Install Conan.

pip3 install "conan>=2.0.0"

4. Create the default Conan profile.

conan profile detect

5. Build and install with Conan.

conan create .

xor_crypt's People

Contributors

cshmookler 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.