Skip to content

Naranbataar/Aqua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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