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. Thanks in advance.