Rolling Hash Algorithm

CI Docker pulls Go Report Card Quality Gate Status Maintainability Rating Reliability Rating Security Rating Coverage Release Go version License

Build Locally

make build

Usage

Create a signature file from original file:

rha signature -f original.txt -s signature.txt --chunk-size 2

Create delta from new file and signature file:

rha delta -s signature.txt -d delta.txt -n new.txt --chunk-size 2

References

https://en.wikipedia.org/wiki/Adler-32

https://en.wikipedia.org/wiki/Rolling_hash

https://en.wikipedia.org/wiki/Rsync

Development

This project requires below tools while developing:

After you installed pre-commit, simply run below command to prepare your development environment:

$ pre-commit install -c build/ci/.pre-commit-config.yaml