Naranbataar / Aqua

Protect data using Reed-Solomon algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aqua

CodeFactor License: Unlicense

A minimal tool that implements Reed-Solomon algorithm to protect files against corruption

Installation

You need just a C compiler with the default libraries, and make

# Compiles to `aqua`
make
# Optional, copy the binary to /usr/local/bin
sudo make install

Example

# Protect the file (defaults to 10 symbols per 256 bytes)
cat file | aqua protect > file.aqua
# Corrupts 5 bytes of the first part of the file
dd if=/dev/urandom of=file.aqua bs=1 count=5 seek=0 conv=notrunc 
# Corrupts 5 bytes of the another part of the file
dd if=/dev/urandom of=file.aqua bs=1 count=5 seek=1000 conv=notrunc
# File can still be fully recovered
cat file.aqua | aqua purify > file2
# Proof
md5sum file
md5sum file2

About

Protect data using Reed-Solomon algorithm

License:The Unlicense


Languages

Language:C 98.9%Language:Makefile 1.1%