CN105893280A - Memory card data encryption method and system - Google Patents
Memory card data encryption method and system Download PDFInfo
- Publication number
- CN105893280A CN105893280A CN201510037723.3A CN201510037723A CN105893280A CN 105893280 A CN105893280 A CN 105893280A CN 201510037723 A CN201510037723 A CN 201510037723A CN 105893280 A CN105893280 A CN 105893280A
- Authority
- CN
- China
- Prior art keywords
- read
- module
- reading
- variable
- data file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Storage Device Security (AREA)
Abstract
The invention discloses a memory card data encryption method. The method comprises the following steps: a write signal reception step: receiving a write signal; a data write-in step: writing a data file in a flash; a setting step: setting a read threshold value M and a read variable X to the data file, and initializing the value of the read variable X; a data reading step: reading the data file in the flash; a read variable X updating step: adding 1 to the value of the read variable X corresponding to the data file; a judging step: judging whether the updated value of the read variable X achieves the read threshold value M or not; and a deletion step: deleting the data file when the updated value of the read variable X achieves the reading threshold value M. The invention furthermore discloses a memory card data encryption system.
Description
Technical field
The present invention relates to a kind of storing card data encryption method and system.
Background technology
EMMC(Embedded
Multi Media Card, embedded multi-media card) case chip includes MMC(multimedia card) interface, flash memory device (flash) and controller.This controller and device (Host) communication connection on circuit board.Host is write data in flash by described controller, or by the digital independent in flash out.Generally, the data in write flash can arbitrarily be consulted.
But, in life and work, the safety of information is particularly important.More some information, such as, important video, audio frequency etc., is to only want to be consulted once or limited number of time, after consulting, it is desirable to file auto-destruct, thus reaches to protect the purpose of information security.
Summary of the invention
In view of the foregoing, it is necessary to a kind of storing card data encryption method that can protect information security and system are provided.
A kind of storing card data encryption method, including: write signal receiving step: receive a write signal;Data write step a: data file is write in a flash;Setting steps: a read threshold M and is set and reads variable X to described data file, and initialize the value of described reading variable X;Data reading step: read the data file in flash;Update and read variable X step: the value of reading variable X corresponding for data file is added one;Judge step: judge whether the value of the reading variable X after updating reaches described read threshold M;And delete step: delete described data file when the value of the reading variable X after updating reaches described read threshold M.
A kind of storing card data encryption system, in order to read the data file in a storage card, include module for reading and writing, module is set, counting module, judge module and data record module, described module for reading and writing is in order to write in storage card when receiving a write signal by data file, the described module that arranges is in order to arrange a read threshold M and reading variable X to described data file, and initialize the value of described reading variable X, described counting module is in order to add one when module for reading and writing reads described data file by the value of corresponding reading variable X, whether described judge module reaches described read threshold M in order to the value judging the reading variable X after updating, described data record module deletes described data file when reaching described read threshold M in order to the value of reading variable X in the updated.
Compared to prior art; in said memory card data ciphering method and system; data file in each write is implanted a read threshold M and and is read variable X; often read a data file; corresponding reading variable X adds one; when reading times reaches read threshold M, this data file will be automatically left out, and protects the safety of data message.
Accompanying drawing explanation
Fig. 1 is the composition diagram of storing card data encryption system one embodiment of the present invention.
A connection block diagram of storing card data encryption system in Fig. 2 Fig. 1.
Fig. 3 is the flow chart of storing card data encryption method one embodiment of the present invention.
Main element symbol description
Storage card | 10 |
Controller | 11 |
Memory module | 112 |
flash | 13 |
Module for reading and writing | 21 |
Detecting module | 22 |
Judge module | 23 |
Module is set | 24 |
Counting module | 25 |
Data record module | 26 |
Main control chip | 30 |
Following detailed description of the invention will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Detailed description of the invention
Referring to Fig. 1, a kind of storing card data encryption system is in order to be encrypted management to the data in a storage card 10.Described storage card 10 includes a controller 11 and a flash 13.One memory element 112 is set in described controller 11.Described controller 11 communicates to connect with a host chip 30.Described host chip 30 can be write data in described flash 13 by described controller 11 or by the digital independent in described flash 13 out.
Referring to Fig. 2, described controller 11 also includes module for reading and writing 21, detecting module 22, judge module 23, and arranges module 24, counting module 25 and a data record module 26.
Described module for reading and writing 21 is in order to receive the read write command from described main control chip 30.
Described detecting module 22 is in order to detect whether described module for reading and writing 21 receives the read write command from described main control chip 30.
Described judge module 23 is read signal or write signal in order to judge that described module for reading and writing 21 receives, and write data in described flash13 in order to order about described module for reading and writing 21 when receiving write signal, and order about described module for reading and writing 21 by described flash when receiving read signal
Digital independent in 13 is out.
The described module 24 that arranges is in order to arrange a read threshold M preset for each data file during performing write operation at described module for reading and writing 21 and to read variable X.In one embodiment, the initial value of described reading variable X is all zero.In other embodiments, the initial value of described reading variable X can be other numerical value, as long as meeting formula: read threshold M-reads the number of times that the initial value=data file of variable X at most can read.Each data file is stored in described memory module 112 as a log with each self-corresponding read threshold M and reading variable X.
Described counting module 25 is in order to add one by the value currently reading variable X during performing read operation at described module for reading and writing 21, and updates the value reading variable X in described log.
Whether described judge module 23 also completes in order to the read operation of described module for reading and writing 21, and determines whether in the case of completing whether the value of the reading variable X after updating reaches described read threshold M.
Described data record module 26 deletes corresponding data file when reaching described read threshold M in order to the value of the reading variable X after updating.Described data record module 26 can also be used to perform the action such as data backup, data renewal.
Referring to Fig. 3, a kind of storing card data encryption method comprises the following steps:
S1: whether detecting receives a read/write signal, if it is, perform step S2, if it does not, continue monitoring.Described detecting module 22 detects whether described module for reading and writing 21 receives the read write command from described main control chip 30.
S2: judge that described read/write signal is read signal or write signal, if write signal, performs step S3, if it does not, perform step S5.What described judge module 23 judged that described module for reading and writing 21 receives is read signal or write signal.
S3: by a data file write flash.The data of main control chip 30 are write in described flash13 by described module for reading and writing 21.
S4: a read threshold M and is set and reads variable X to described data file, and initialize the value of described reading variable X.The described module 24 that arranges is provided with respective read threshold M for each data file and reads variable X, and the initial value reading variable X is all zero.Each data file is stored in described memory element 112 as a log with each self-corresponding read threshold M and reading variable X.
S5: read the data file in flash.
S6: the current value reading variable X of corresponding data file is added one.The value currently reading variable X is added one by described counting module 25, and updates the value reading variable X in described log.
S7: judge whether read operation completes, if it is, perform step S8, if it does not, continue to judge.
S8: judge whether the value of the reading variable X after updating reaches described read threshold M, if it is, perform step S9, if it does not, perform step S1.
S9: delete described data file.Described data file is deleted by described data record module 26.
Perform after step S4 is step S1, and i.e. after each data file is provided with each self-corresponding read threshold M and reads variable X, the secrecy step of write operation is over, and returns to S1 continuation detecting.
When the data file in described flash13 is empty, it is necessary to the secrecy step (step S1-S4) first carrying out write operation arrives the secrecy step (step S5-S9) of read operation again.When the data file in described flash13 is not empty, can directly perform the secrecy step (step S1, S2, S5-S9) of read operation.
Claims (10)
1. a storing card data encryption method, comprises the following steps:
Write signal receiving step: receive a write signal;
Data write step a: data file is write in a flash;
Setting steps: a read threshold M and is set and reads variable X to described data file, and initialize the value of described reading variable X;
Data reading step: read the data file in flash;
Update and read variable X step: the value of reading variable X corresponding for data file is added one;
Judge step: judge whether the value of the reading variable X after updating reaches described read threshold M;And
Delete step: delete described data file when the value of the reading variable X after updating reaches described read threshold M.
2. storing card data encryption method as claimed in claim 1, is provided with step and also includes:
Data file is stored in a memory module as a log with corresponding read threshold M and reading variable X.
3. storing card data encryption method as claimed in claim 2, wherein said renewal reading variable X step also includes:
The value of the reading variable X after will adding replaces the former reading variable X in log.
4. storing card data encryption method as claimed in claim 1, wherein said write signal receiving step comprises the following steps:
Detecting step: whether detecting receives a read/write signal;
Read/write signal judges step: judge that after detecting described read/write signal described read/write signal is read signal or write signal;And
Judged result step: determining described read/write signal is write signal.
5. storing card data encryption method as claimed in claim 4, wherein down performs data write step after described read/write signal judges to determine as write signal in step, after determining as read signal, down performs data reading step.
null6. a storing card data encryption system,In order to read the data file in a storage card,Include module for reading and writing,Described module for reading and writing is in order to write data file in storage card when receiving a write signal,It is characterized in that: described data encryption system also includes and arranges module、Counting module、Judge module and data record module,The described module that arranges is in order to arrange a read threshold M and reading variable X to described data file,And initialize the value of described reading variable X,Described counting module is in order to add one when module for reading and writing reads described data file by the value of corresponding reading variable X,Whether described judge module reaches described read threshold M in order to the value judging the reading variable X after updating,Described data record module deletes described data file when reaching described read threshold M in order to the value of reading variable X in the updated.
7. storing card data encryption system as claimed in claim 6, wherein said arranges module also in order to data file to be stored in a memory module of described storage card as a log with corresponding read threshold M and reading variable X.
8. storing card data encryption system as claimed in claim 7, wherein said counting module also replaces the former reading variable X in log in order to the value of the reading variable X after will adding.
9. storing card data encryption system as claimed in claim 6, wherein said storing card data encryption system also includes detecting module, described detecting module is in order to detect whether described module for reading and writing receives a read/write signal, and described judge module is also in order to judge that described read/write signal is write signal or read signal.
10. storing card data encryption system as claimed in claim 9, wherein said module for reading and writing is also in order to write in storage card by data file after judge module determines as write signal, and described read threshold M is set by the described module that arranges and is read variable X, described module for reading and writing is also in order to read described data file after judge module determines as read signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510037723.3A CN105893280A (en) | 2015-01-26 | 2015-01-26 | Memory card data encryption method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510037723.3A CN105893280A (en) | 2015-01-26 | 2015-01-26 | Memory card data encryption method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105893280A true CN105893280A (en) | 2016-08-24 |
Family
ID=56999556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510037723.3A Pending CN105893280A (en) | 2015-01-26 | 2015-01-26 | Memory card data encryption method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105893280A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1612079A (en) * | 2003-10-30 | 2005-05-04 | 富士通株式会社 | Information record medium and information writing/reading apparatus |
CN1658210A (en) * | 2004-02-17 | 2005-08-24 | 日本电气株式会社 | Mobile communication terminal and mobile communication system |
CN101198020A (en) * | 2006-12-07 | 2008-06-11 | 厦门华侨电子股份有限公司 | Video data file transmission and playing method and device with hard disk as storage medium |
CN101790136A (en) * | 2009-01-23 | 2010-07-28 | 中兴通讯股份有限公司 | Integration IP message security reinforcement method and system |
CN102375958A (en) * | 2010-08-23 | 2012-03-14 | 宇瞻科技股份有限公司 | Method for restricting accessing of files |
CN104156673A (en) * | 2014-08-06 | 2014-11-19 | 深圳市中兴移动通信有限公司 | File processing method and device |
-
2015
- 2015-01-26 CN CN201510037723.3A patent/CN105893280A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1612079A (en) * | 2003-10-30 | 2005-05-04 | 富士通株式会社 | Information record medium and information writing/reading apparatus |
CN1658210A (en) * | 2004-02-17 | 2005-08-24 | 日本电气株式会社 | Mobile communication terminal and mobile communication system |
CN101198020A (en) * | 2006-12-07 | 2008-06-11 | 厦门华侨电子股份有限公司 | Video data file transmission and playing method and device with hard disk as storage medium |
CN101790136A (en) * | 2009-01-23 | 2010-07-28 | 中兴通讯股份有限公司 | Integration IP message security reinforcement method and system |
CN102375958A (en) * | 2010-08-23 | 2012-03-14 | 宇瞻科技股份有限公司 | Method for restricting accessing of files |
CN104156673A (en) * | 2014-08-06 | 2014-11-19 | 深圳市中兴移动通信有限公司 | File processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10007468B2 (en) | Method and apparatus for erasing data in data section in flash memory | |
US8006030B2 (en) | Memory controller for identifying the last valid page/segment in a physical block of a flash memory | |
CN103577342B (en) | Method for managing data stored in flash memory and related memory device and controller | |
US9058296B2 (en) | Data processing method, memory storage device and memory control circuit unit | |
CN103942126B (en) | Electronic equipment and its data back up method | |
TWI436369B (en) | Methods for measuring usable lifespan and replacing an in-system programming code of a memory device, and data storage system using the same | |
JP4866107B2 (en) | Nonvolatile memory device and write determination method thereof | |
US20110055430A1 (en) | Method for establishing a communication channel between a host device and a memory device, associated memory device and controller thereof, and associated host device and host device application | |
CN105320621A (en) | Memory system and information processing device | |
CN104765631B (en) | A kind of application recovery method and device of mobile terminal | |
US9483195B2 (en) | Response reading method and data transmission system | |
CN104573537A (en) | Data processing method, memory storage device and memory control circuit unit | |
CN105893280A (en) | Memory card data encryption method and system | |
US9817573B2 (en) | Smart card management method, memory storage device and memory control circuit unit | |
US20220011949A1 (en) | Safekeeping device, safekeeping system, control method, and non-transitory computer-readable recording medium | |
US20140052893A1 (en) | File deletion for non-volatile memory | |
CN103116470B (en) | Memorizer memory devices, Memory Controller and serial data transmission and recognition methods | |
KR20080076331A (en) | Data storage device and method of operating the same | |
US8487777B2 (en) | Semiconductor storage apparatus and early-warning systems and methods for the same | |
CN107632774B (en) | Method and device for repairing disk mount | |
JP2016139305A (en) | Electronic control unit and software rewriting system | |
CN105868643A (en) | Data protection method, memory control circuit unit, and memory storage device | |
CN110795275A (en) | Abnormal block identification method and device based on abnormal power failure process | |
CN114115755B (en) | Method and device for data writing and storage medium | |
CN106033321B (en) | Respond read method and data transmission system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160824 |