摘要 |
A system for securely storing data in a memory includes a memory ( 1 ) and a CPU (Central Processing Unit) ( 2 ). The memory is divided into a plurality of fixed-size blocks ( 10 ) for storing data. Each block includes a plurality of data pages ( 101 ), and a parity check page ( 102 ) storing check codes for checking and recovering byte data. Each data page includes a plurality of byte addresses for storing byte data including a CRC (Cyclic Redundancy Check), and a complement of the CRC in the hexadecimal system expressed as CRC'. The CPU is for calculating a CRC for each data page according to byte data of the data page, calculating a CRC' based on the CRC of the data page, and for identifying and correcting any incorrect bit data. A related method is also disclosed.
|