Method for safely writing sensitive data into flash memory

The invention relates to a method for safely writing sensitive data into a flash memory. The method comprises the following steps: S1) encrypting data; s2) carrying out structure definition on the encrypted data; s3) dividing a write-in page and a waiting page; s4) selecting a write-in page, and jud...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHANG ZHONGGUO, QIN FALIN, JIANG XIANGYANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to a method for safely writing sensitive data into a flash memory. The method comprises the following steps: S1) encrypting data; s2) carrying out structure definition on the encrypted data; s3) dividing a write-in page and a waiting page; s4) selecting a write-in page, and judging whether a subunit of the write-in page is writable or not; s6) writing data into the first writable subunit; s7) writing data into other writable subunits; (S8) after writing of the writing page is completed, the current writing page is switched to a new waiting page, the current waiting page is switched to a new writing page, and after data are completely written into subunits of the new writing page, if writing needs to be continued, the step is repeated; according to the method, the problems of data confusion caused by power failure of the flash memory and abrasion unbalance caused by frequent reading and writing are solved, and the safety and reliability of data input can be remarkably improved. 本申请涉及一种向闪存