Git Product home page Git Product logo

erasure-coded-password's Introduction

About

This script splits a message (i.e. password) into k data chunks that can be printed as QR codes. A given number m of parity chunks is added. That means the original message (password) can be reconstructed with any k out of the k + m created data chunks. A more sound cryptographic solution would be Shamir's Secret Sharing.

Why?

Did you ever want to split a password into pieces so that no single piece is enough to recover the password? Then this script is for you. If you want to print them to paper, QR codes make your life easier.

Security Notice

Please note that this has nothing to do with encryption. Each chunk contains a plain text part of the password/message. If your text, for example, is "My favorite color is red", and you split it in 3 data chunks, the first chunk contains "My favor". Also contained is the overall length of the message. This would make it pretty easy to guess the full text. Therefore, only use randomized strings.

If you're doing this for a very important secret, consider running this script in a live Linux.

Installation

  1. git clone https://github.com/svenseeberg/erasure-coded-password.git
  2. cd erasure-coded-password
  3. python3 -m venv .venv
  4. source .venv/bin/activate
  5. Install the liberasurecode development package. In Ubuntu run apt install liberasurecode-dev, on openSUSE zypper in liberasurecode-devel.
  6. pip3 install Pillow-PIL qrcode pyeclib

Usage

  1. cd [/path/to/]erasure-coded-password
  2. source .venv/bin/activate
  3. python3 ec-password.py The script has no parameters, it asks for all the input while it runs.

Example

erasure-coded-password's People

Contributors

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