ECC memory uses parity bits to store an encrypted code when writing data to memory, and the ECC code is stored at the same time. ... As data is processed, ECC memory is constantly scanning code with a special algorithm to detect and correct single-bit memory errors.