I am looking for a simple error-correction library in Java.

It needs to be able to correct some errors in variable-length messages. However, the error-correcting codes together with the message must have a fixed-length (for transmission).

Mathematical complexity or time to decode isn't a concern.

Edit: I am transmitting data over sound. The errors that usually occur are single bit-errors but sometimes also larger bursts. Shifting of the entire message and Erasure of bits are not an issue.

  • What kind of errors? Could you expand on your exact requirements?
    – Alejandro
    Mar 5, 2018 at 10:40
  • Okay, I expanded the question.
    – Darman
    Mar 6, 2018 at 9:22

1 Answer 1


This one is excellent. Fast and extremely flexible in that you can use pretty much any combination of data/parity blocks you want.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.