Giter VIP home page Giter VIP logo

secure-chungus's Introduction

Secure chungus (schungus)

A tool for splitting a file into a number of smaller chunks, where none of the original data can be retrieved from any of the chunks unless all chunks are supplied.

How it works

The file is split into N different chunks, and each chunks gets its own unique encryption key. This key is then used to encrypt all chunks' data section, ordered by the chunk-index. To join the chunks and retrieve the original data, all chunks' data sections have to be decrypted with all chunks' key, in the opposite order of the encryption process. For encryption and decryption, 128-bit AES with CBC is used (with the same key and initialization vector).

Each chunk stores the total number of chunks required to unlock the original data, this chunk's index, a unique encryption key and it's data. The total overhead becomes 32 bytes per chunk.

[64-bit N-chunks] [64-bit chunk index] [128-bit signing key] [data]

To Do:

  • Move to 256-bit AES
  • Print errors more nicely in main.rs (and update impl fmt:: Display for Error)
  • Support wildcard file paths
  • Allow user to select encryption standard and settings
  • Decide if we should add a file signature/magic to make it easier to identify the file and its version
  • Compile to wasm (+ switch from openssl to something more rusty)

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.