#reed-solomon-erasure-coding #erasure-coding #reed-solomon #ecc #repair #logging #corruption #parity #detect #block

app rsarc

Reed-Solomon erasure coding utility for repairing file corruption with O(n log n) performance

1 unstable release

0.1.0 Jun 16, 2025

#527 in Command line utilities

Download history 104/week @ 2025-06-11 31/week @ 2025-06-18

135 downloads per month

MIT/Apache

91KB
2K SLoC

RSARC: Reed-Solomon Archive

Implementation of Reed-Solomon erasure coding for file corruption detection and repair using $O(n \log n)$ algorithms introduced in the paper Novel Polynomial Basis and Its Application to Reed-Solomon Erasure Codes.

Commands

  • test: Runs an end-to-end test of the program.
  • encode <input file> <output file> <block bytes> <parity blocks>: Generates parity data for the input file.
  • verify <input file> <parity file>: Check for corruption in the input and parity files.
  • repair <input file> <parity file>: Attempt to find and repair corruption in the input and parity files, if there is enough parity data and the metadata is not corrupt.
  • reassemble <input file> <parity file> <reassembled input file> <reassembled parity file>: Reassemble the input and parity files after an insertion/deletion error (very unlikely to happen).

Dependencies

~5–30MB
~432K SLoC