Encoding Hamming Code. Computers represent data digitally as 1s and 0s, called 'bits'. Sometimes these bits are mistakenly swapped, for example: a scratched CD or a message garbled in transit between computers. Invented in 1950 by Richard Wesley Hamming. Hamming Code can correct 1-bit errors and detect 2-bit errors, making data transfer and saving more robust.