CN105843807B - A kind of data-erasure method, equipment and platform - Google Patents

A kind of data-erasure method, equipment and platform Download PDF

Info

Publication number
CN105843807B
CN105843807B CN201510015245.6A CN201510015245A CN105843807B CN 105843807 B CN105843807 B CN 105843807B CN 201510015245 A CN201510015245 A CN 201510015245A CN 105843807 B CN105843807 B CN 105843807B
Authority
CN
China
Prior art keywords
binary
deleted
recording
file
sim card
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.)
Active
Application number
CN201510015245.6A
Other languages
Chinese (zh)
Other versions
CN105843807A (en
Inventor
任晓明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510015245.6A priority Critical patent/CN105843807B/en
Publication of CN105843807A publication Critical patent/CN105843807A/en
Application granted granted Critical
Publication of CN105843807B publication Critical patent/CN105843807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a kind of data-erasure method, equipment and platforms, including: the last item binary recording stored since binary file, it is successively deleted from back to front by a binary recording, until deleting the binary recording to be deleted stored in binary file;It is obtained by predetermined manner before deleting the last item binary recording, the storage content and storage order of all binary recordings of the storage location after binary recording to be deleted;Storage location before being deleted with record to be deleted in binary file is starting writing position, by all binary recordings of the storage location after binary recording to be deleted, according to the storage order before being deleted in binary file from front to back, it is sequentially written in binary file.It ensure that binary file can parse.The present invention relates to field of computer technology.

Description

A kind of data-erasure method, equipment and platform
Technical field
The present invention relates to field of computer technology more particularly to a kind of data-erasure methods, equipment and platform.
Background technique
In computer technology, many applications will use binary file, which is stored with a plurality of binary system note Record, by taking SIM card is applied as an example: store multiple binary files in SIM card, a plurality of characterization is store in the binary file and is visited Ask that the binary recording of rule can pass through pair in the binary file when the application program of terminal needs to access SIM card Determining access rule should be recorded, determines whether that application program is allowed to access SIM card.
It usually requires to operate binary recording using a plurality of read write command when binary recording is managed, lead to It often may include: to increase binary recording, deletion binary recording, modification binary system to the operation that binary recording is managed Record etc., wherein new binary recording can be usually written at binary file end by increasing binary recording operation, be modified Binary recording operation usually new binary recording can be written by the position of modification binary recording, and delete binary system Record operation, which is then compared, to be difficult to realize, generallys use following method in the prior art:
Method one deletes binary recording operation and usually fills character covering in the position use of binary recording to be deleted The binary recording to be deleted.
In method one, if the position of binary recording to be deleted at the end of binary file, that is, this two into Make the last item binary recording for being recorded as in binary file, then it is this be directly with the mode for covering of filling character can Delete binary recording to realize, if the position of binary recording to be deleted not at the end of binary file, by Be not in the length of each binary recording it is fixed, just appear in binary recording to be deleted be filled character covering after, Firstly, the corresponding limited length of filling character of the binary recording to be deleted, possibly can not be fully utilized, it can only be for being waited for this It deletes binary recording to use with the shorter binary recording of length or length, secondly, the binary recording to be deleted is corresponding The front and back filled character there is effective binary recording, when parsing the binary file, analysis program can not The length filled character is determined, therefore, it is impossible to accurately determine after filling character close to effectively recording of filling character Starting position leads to binary file parsing failure;
Further, Fig. 1 a~Fig. 1 b is to directly adopt to fill character that binary recording to be deleted is deleted schematic diagram, figure In identical filling pattern characterizing part same binary recording, Fig. 1 a characterization deletes before binary recording 101 to be deleted Two-stage system file, Fig. 1 b characterization directlys adopt and fills character the filled binary file of binary recording 101 to be deleted, As it can be seen that the analysis program that the initial position of binary recording 101 is difficult resolved binary file accurately determines, lead to binary system Document analysis failure.
Further, in order to guarantee binary file after deleting binary recording can successfully resolved, the prior art In also proposed method two: the subsequent binary recording of binary recording to be deleted is totally moved forward, by record to be deleted Position covering.
In method two, during totally moving forward to binary recording, need a plurality of instruction that could complete, often Item instruction can complete the movement of partial binary record, if in the binary file later for performing partial binary record Place equipment is abnormal situation and the movement of binary recording is not fully completed, then may also lead to binary file solution Analysis failure.
Further, Fig. 2 a~Fig. 2 b is to be shown binary recording to be deleted deletion by the way of mobile binary recording It is intended to, Fig. 2 a characterization deletes the binary file before binary recording 201 to be deleted, and Fig. 2 b characterization is using mobile binary system note Binary file of the mode of record by partial binary record after mobile.As shown in Figure 2 a, binary recording 201 to be deleted it Binary recording afterwards is followed successively by binary recording 202 and binary recording 203, as shown in Figure 2 b, it is assumed that when move two into It is abnormal after system record 202, then binary file has reformed into the binary file as shown in 2b, that is to say, that two The positions that system record 202 is moved to binary recording 201 to be deleted, and binary recording 202 after movement and do not move The ending of binary recording 202 before producing movement between dynamic binary recording 203, becomes redundant data 204, After abnormal processed, analysis program can not parse redundant data 204, and binary recording 203 is caused not read normally It takes, that is, binary file parsing failure.
Summary of the invention
The embodiment of the invention provides a kind of data-erasure method and equipment, to solve the binary recording of the prior art Delet method deletes the problem of binary recording causes binary file that can not parse later.
Based on the above issues, the embodiment of the invention provides a kind of one of data-erasure methods, comprising:
The last item binary recording stored since binary file, successively remember from back to front by binary system Record is deleted, until the binary recording to be deleted that will be stored in the binary file is deleted;
It is obtained by predetermined manner before deleting the last item binary recording, storage location is described to be deleted The storage content and storage order of all binary recordings after binary recording;
Storage location before being deleted with the record to be deleted in the binary file is starting writing position, By all binary recordings of the storage location after the binary recording to be deleted, according to before being deleted described two into Storage order in file processed from front to back is sequentially written in the binary file.
The two of a kind of data-erasure method provided in an embodiment of the present invention, comprising:
It is sent to SIM card and deletes instruction,
Wherein, the deletion instruction is used to indicate the last item binary system that the SIM card is stored from binary file Record starts, successively delete from back to front every binary recording, until will be stored in the binary file to Until deleting binary recording deletion;
It is sent in the binary file before the deletion of the last item binary recording to the SIM card, storage location exists The storage content and storage order of all binary recordings after the binary recording to be deleted;
Write instructions are sent to the SIM card,
Wherein, said write instruction is used to indicate before the SIM card is deleted with the record to be deleted described two Storage location in binary file is starting writing position, and storage location is all after the binary recording to be deleted Binary recording is sequentially written in described two according to the storage order before being deleted in the binary file from front to back Binary file.
The three of a kind of data-erasure method provided in an embodiment of the present invention, comprising:
It determines in the binary file stored in SIM card from the last item binary recording to binary recording institute to be deleted The binary recording item number for including;
It sends to the SIM card and is indicated with the deletion of the binary recording item number same number determined,
Wherein, each deletion instruction is used to indicate the current the last item of the SIM card by the binary file Binary recording is deleted;
For in the binary file by the last item binary recording delete before, storage location to be deleted two into All binary recordings after system record one by one will be in the storage of the binary recording according to storage order from front to back Hold and is sent to SIM card for the write instructions of the binary recording.
A kind of data-removal apparatus provided in an embodiment of the present invention, comprising:
Removing module, the last item binary recording for being stored since binary file, from back to front successively It is deleted by a binary recording, until being by the binary recording to be deleted stored in the binary file deletion Only;
Writing module stores position for obtaining by predetermined manner by before the last item binary recording deletion Set the storage content and storage order of all binary recordings after the binary recording to be deleted;And with it is described to Storage location before deletion record is deleted in the binary file is starting writing position, by storage location described All binary recordings after binary recording to be deleted, according to be deleted before in the binary file from front to back Storage order, be sequentially written in the binary file.
A kind of one of SIM card management platform provided in an embodiment of the present invention, comprising:
Indicating module is deleted, deletes instruction for sending to SIM card, wherein the deletion instruction is used to indicate the SIM Blocking the last item binary recording stored since binary file, successively every binary recording is carried out from back to front It deletes, until the binary recording to be deleted that will be stored in the binary file is deleted;
Content sending module is written, for sending the last item binary system note in the binary file to the SIM card Before record is deleted, the storage content and storage of all binary recordings of the storage location after the binary recording to be deleted Sequentially;
Write instructions module, for sending write instructions to the SIM card, wherein said write instruction is used to indicate institute Stating the storage location before SIM card is deleted with the record to be deleted in the binary file is starting writing position, By all binary recordings of the storage location after the binary recording to be deleted, according to before being deleted described two into Storage order in file processed from front to back is sequentially written in the binary file.
The two of a kind of SIM card management platform provided in an embodiment of the present invention, comprising:
Determining module, for determining in the binary file stored in SIM card from the last item binary recording to wait delete The binary recording item number for being included except binary recording;
Indicating module is deleted, for sending the deletion with the binary recording item number same number determined to the SIM card Instruction, wherein each deletions indicate to be used to indicate the SIM card by current the last item two of the binary file into System record is deleted;
Write instructions module, for depositing for before deleting the last item binary recording in the binary file Storage space sets all binary recordings after binary recording to be deleted and one by one should according to storage order from front to back The storage content of binary recording and SIM card is sent to for the write instructions of the binary recording.
The beneficial effect of the embodiment of the present invention includes:
A kind of data-erasure method, equipment and platform provided in an embodiment of the present invention, comprising: stored from binary file The last item binary recording start, successively deleted from back to front by a binary recording, until by binary system text Until the binary recording to be deleted stored in part is deleted;It is obtained by predetermined manner and the last item binary recording is deleted it Before, the storage content and storage order of all binary recordings of the storage location after binary recording to be deleted;Wait delete Storage location in binary file is starting writing position before being deleted except record, by storage location to be deleted two into All binary recordings after system record, according to storage order in binary file from front to back before being deleted, according to Secondary write-in binary file.Data-erasure method provided in an embodiment of the present invention, the last item stored from binary file Binary recording starts, successively delete from back to front every binary recording, until will store in binary file Until binary recording to be deleted is deleted, compared with the data-erasure method that the prior art provides, even if deleting binary system note It is abnormal during record, due to being deleted forward since the last item binary recording, present in binary file Binary recording still can compact arrangement, do not appear between two effective binary recordings that there are the feelings of redundant data Condition ensure that binary file can parse.
Detailed description of the invention
Fig. 1 a~Fig. 1 b be background of invention provide directly adopt to fill character and delete binary recording to be deleted Except schematic diagram;
Fig. 2 a~Fig. 2 b be background of invention provide using move binary recording by the way of by be deleted two into Record deletion schematic diagram processed;
Fig. 3 is a kind of flow chart of data-erasure method provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart for data-erasure method that the embodiment of the present invention 1 provides;
Fig. 5 a~Fig. 5 h is that the data-erasure method provided using the embodiment of the present invention 1 is deleted binary recording to be deleted Process schematic;
Fig. 6 is a kind of flow chart for data-erasure method that the embodiment of the present invention 2 provides;
Fig. 7 is that the SIM card that is applied to corresponding with a kind of data-erasure method that the embodiment of the present invention 2 provides manages platform side Flow chart;
Fig. 8 is a kind of flow chart for data-erasure method that the embodiment of the present invention 3 provides;
Fig. 9 is that the SIM card that is applied to corresponding with a kind of data-erasure method that the embodiment of the present invention 3 provides manages platform side Flow chart;
Figure 10 is a kind of structural schematic diagram of data-removal apparatus provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram that a kind of SIM card provided in an embodiment of the present invention manages one of platform;
Figure 12 is two structural schematic diagram that a kind of SIM card provided in an embodiment of the present invention manages platform.
Specific embodiment
The embodiment of the invention provides a kind of data-erasure method and equipment, below in conjunction with Figure of description to of the invention Preferred embodiment is illustrated, it should be understood that preferred embodiments described herein are only used to illustrate and explain the present invention, not For limiting the present invention.And in the absence of conflict, the features in the embodiments and the embodiments of the present application can be mutual Combination.
The embodiment of the present invention provides a kind of data-erasure method, as shown in Figure 3, comprising:
S301, the last item binary recording stored since binary file, from back to front successively one by one to two System record is deleted, until deleting the binary recording to be deleted stored in binary file.
S302, it is obtained by predetermined manner by before the deletion of the last item binary recording, storage location is to be deleted two The storage content and storage order of all binary recordings after system record.
S303, be deleted with record to be deleted before storage location in binary file be starting writing position, will All binary recordings being stored in after binary recording to be deleted, according to be deleted before in binary file in the past extremely Storage order afterwards, is sequentially written in binary file.
Further, data-erasure method provided in an embodiment of the present invention is by the way of first deleting and moving afterwards, first will be to Binary recording and its subsequent binary recording is deleted to delete one by one according to sequence from back to front, then by storage location to All binary recordings after deletion binary recording are written one by one, even if occurring during deleting binary recording different Often, due to being deleted forward since the last item binary recording, binary recording present in binary file still can Enough compact arrangements, do not appear in the case where there are redundant datas between two effective binary recordings, ensure that binary system text Part can parse.
With reference to the accompanying drawing, method provided by the invention and relevant device are described in detail with specific embodiment.
Embodiment 1:
In the embodiment of the present invention 1, a kind of data-erasure method is provided, as shown in figure 4, specifically comprising the following steps:
S401, all binary recordings by storage location in binary file after binary recording to be deleted are deposited Storage content and the storage order of all binary recordings in binary file are backed up.
Fig. 5 a~Fig. 5 h is that the data-erasure method provided using the embodiment of the present invention 1 is deleted binary recording to be deleted Process schematic, Fig. 5 a characterization delete the binary file before binary recording 501 to be deleted, and the portion of identical filling pattern Divide characterization same binary recording.
As shown in Figure 5 a, in binary file from binary recording 501 to be deleted to the last item binary recording 504, storage order in binary file from front to back be binary recording 501 to be deleted, binary recording 502, two into System record 503 and binary recording 504.It can be by institute of the storage location after binary recording 501 to be deleted in this step Have binary recording: the storage content of binary recording 502, binary recording 503 and binary recording 504, and storage are suitable Sequence is backed up.
Further, backup operation can be set according to actual needs by the position of binary recording backup (such as: it is slow Deposit, peripheral hardware stores equipment etc.), here without limitation.
S402, the last item binary recording stored since binary file, from back to front successively one by one to two System record is deleted, until deleting the binary recording to be deleted stored in binary file.
Further, this step can be specifically embodied as: the last item binary recording stored from binary file Starting, successively binary recording being covered one by one using filling character from back to front, until will be stored in binary file Binary recording to be deleted covering until.
Further, as shown in Fig. 5 b~5e, the last item binary recording 504 to store from binary file is opened Begin, successively binary recording 503~502 and binary recording to be deleted 501 are carried out one by one using filling character from back to front The binary file schematic diagram of covering, Fig. 5 b are using the text of the binary system after being covered binary recording 504 of filling character Part, Fig. 5 c are using the binary file after being covered binary recording 503 of filling character, and Fig. 5 d is that use is filled character Binary file after binary recording 502 is covered, Fig. 5 e are that use is filled character binary recording 501 to be deleted Binary file after being covered.
S403, it is obtained by predetermined manner by before the deletion of the last item binary recording, storage location is to be deleted two The storage content and storage order of all binary recordings after system record.
Further, in this embodiment predetermined manner is to obtain to execute the present embodiment S401 from backup binary recording It the storage content of all binary recordings of the storage location after binary recording to be deleted and is deposited in binary file before Storage sequence.
S404, be deleted with record to be deleted before storage location in binary file be starting writing position, will All binary recordings being stored in after binary recording to be deleted, according to be deleted before in binary file in the past extremely Storage order afterwards, is sequentially written in binary file.
Further, by the storage content and storage order of the binary recording of the step S403 backup obtained, it may be assumed that two into System record 502, binary recording 503 and binary recording 504.In this step, with the storage of binary recording 501 to be deleted Position be starting writing position, by binary recording 502, binary recording 503 and binary recording 504 be sequentially written in two into File processed.Fig. 5 f is that binary recording 502 is written to schematic diagram after binary file, and Fig. 5 g is that binary recording 503 is written Schematic diagram after binary file, Fig. 5 h are that binary recording 504 is written to schematic diagram after binary file.
As it can be seen that the content after binary recording 504 is filling after binary file is written in binary recording 504 Redundant data is not present between binary recording for character, and each binary recording compact arrangement in binary file, so that Binary file can be resolved.
Embodiment 2:
In the embodiment of the present invention 2, a kind of data-erasure method, SIM are provided for the binary file stored in SIM card Block and any instruction for operating and requiring to manage platform according to SIM card is carried out to the binary file of itself storage, is not receiving When SIM card manages the instruction of platform, SIM card will not carry out any operation to the binary file of itself storage, and in SIM card There is backup in SIM card management platform in the binary file of storage.
A kind of data-erasure method provided in an embodiment of the present invention, as shown in fig. 6, specifically comprising the following steps:
S601, the deletion instruction that SIM card management platform is sent is received.
Further, it in this step, deletes instruction and is used to indicate the last item two that SIM card is stored from binary file System record starts, and from back to front successively deletes every binary recording, until will be stored in binary file to Until deleting binary recording deletion.
S602, SIM card indicate according to deletion received in S601, the last item binary system stored from binary file Record starts, and successively deletes from back to front every binary recording, until to be deleted by what is stored in binary file Until binary recording is deleted.
Further, the deletion process in this step may refer to Fig. 5 a~Fig. 5 e, and details are not described herein again.
Before S603, the last item binary recording for receiving SIM card management platform transmission are deleted, storage location is wait delete Except the storage content and storage order of all binary recordings after binary recording.
Further, in this embodiment predetermined manner is the mode obtained from SIM card management platform.Due in SIM card There is backup in SIM card management platform in the binary file of storage, although SIM card manages SIM card in step S602 Binary recording indicated by platform is deleted, and is still had these in SIM card management platform and is deleted binary system note on the sim card The storage content and storage order of record.
S604, the write instructions that SIM card management platform is sent are received.
Further, in this step, write instructions are used to indicate before SIM card is deleted with record to be deleted in binary system Storage location in file is starting writing position, and all binary systems of the storage location after binary recording to be deleted are remembered Record is sequentially written in binary file according to the storage order before being deleted in binary file from front to back.
S605, SIM card are according to write instructions received in S604, in binary file before being deleted with record to be deleted In storage location be starting writing position, by all binary recordings of the storage location after binary recording to be deleted, According to the storage order before being deleted in binary file from front to back, it is sequentially written in binary file.
Further, the writing process in this step may refer to Fig. 5 f~Fig. 5 h, and details are not described herein again.
Further, in this embodiment managing the execution step of platform side as shown in fig. 7, may include: in SIM card
S701, it is sent to SIM card and deletes instruction,
Wherein, it deletes indicating to be used to indicate the last item binary recording that SIM card is stored since binary file, Successively every binary recording is deleted from back to front, until the binary recording to be deleted that will be stored in binary file Until deletion.
Before S702, the middle the last item binary recording that sends binary file to SIM card are deleted, storage location is wait delete Except the storage content and storage order of all binary recordings after binary recording.
S703, write instructions are sent to SIM card,
Wherein, write instructions are used to indicate the storage before SIM card is deleted with record to be deleted in binary file Position is starting writing position, by all binary recordings of the storage location after binary recording to be deleted, according to being deleted Except the storage order before in binary file from front to back, it is sequentially written in binary file.
Embodiment 3:
In the embodiment of the present invention 3, another data-erasure method is provided for the binary file stored in SIM card, In the present embodiment, the deletion instruction and write instructions that SIM card management platform is sent every time are directed to a binary recording.
A kind of data-erasure method provided in an embodiment of the present invention, as shown in figure 8, specifically comprising the following steps:
S801, current the last item binary system of binary file is remembered whenever receive that SIM card management platform sends The deletion instruction deleted is recorded, deletes current the last item binary recording of binary file according to instruction is deleted;
Wherein, SIM card manages the deletion instruction that platform sends predetermined number to SIM card, predetermined number and binary file In included from the last item binary recording to binary recording to be deleted binary recording item number it is equal.
Further, in this step, SIM card manages each deletion of platform and indicates to be directed to a binary recording, i.e., and two Current the last item binary recording of binary file.
As shown in Fig. 5 a~Fig. 5 e, when receiving first deletion instruction, binary recording 504 is deleted, is obtained Binary file is as shown in Figure 5 b, and when receiving second deletion instruction, binary recording 503 is deleted, two obtained into File processed is as shown in Figure 5 c, and when receiving third deletion instruction, binary recording 502 is deleted, obtained binary system text Part as fig 5d, when receiving the 4th deletion instruction, binary recording 501 to be deleted is deleted, obtained binary system File is as depicted in fig. 5e, that is to say, that SIM card receives four deletions instruction, with from the last item binary recording 504 to The item number (four) for deleting the binary recording that binary recording 501 is included is equal.
S802, it is write whenever the binary recording for receiving SIM card management platform transmission and by received binary recording When entering the write instructions of binary file, the current of binary file is written into the binary recording received according to write instructions At end;
Wherein, SIM card management platform stores position for before deleting the last item binary recording in binary file Set all binary recordings after binary recording to be deleted, according to storage order from front to back, one by one by this two into It makes the storage content of record and is sent to SIM card for the write instructions of the binary recording.
Further, in this step, the SIM card management each write instructions of platform are directed to a binary recording.Due to The binary file stored in SIM card SIM card management platform exist backup, although in step S801 SIM card according to Corresponding binary recording is deleted in the deletion instruction that SIM card manages platform, still has these in SIM in SIM card management platform The storage content and storage order of binary recording are deleted on card.Therefore, SIM card management platform can be for binary system text Before the last item binary recording is deleted in part, all binary systems note of the storage location after binary recording to be deleted Record, according to storage order from front to back, one by one by the storage content of the binary recording and for the binary recording Write instructions are sent to SIM card.
As shown in Fig. 5 f~Fig. 5 h, SIM card management platform can send binary recording 502 to SIM card first and will The write instructions of binary file are written in binary recording 502, and working as binary file is written in binary recording 502 by SIM card After at preceding end, as shown in figure 5f, SIM card manages platform and sends binary recording to SIM card again obtained binary file 503 and by binary recording 503 be written binary file write instructions, SIM card by binary recording 503 be written binary system After at the current end of file, as shown in fig. 5g, SIM card manages platform can be finally to SIM card for obtained binary file It sends binary recording 504 and binary recording 504 is written to the write instructions of binary file, SIM card remembers binary system After at the current end of 504 write-in binary file of record, obtained binary file is as shown in figure 5h.
Further, in this embodiment in the execution step of SIM card management platform side, as shown in figure 9, may include:
S901, it determines in the binary file stored in SIM card from the last item binary recording to binary system to be deleted Record included binary recording item number.
The deletion instruction of S902, the binary recording item number same number for sending and determining to SIM card,
Wherein, each deletion instruction be used to indicate SIM card by current the last item binary recording of binary file into Row is deleted.
S903, it is directed to before the deletion of the last item binary recording in binary file, storage location is to be deleted two All binary recordings after system record, according to storage order from front to back, one by one by the storage of the binary recording Content and SIM card is sent to for the write instructions of the binary recording.
Based on the same inventive concept, the embodiment of the invention also provides a kind of data-removal apparatus and platforms, due to these The principle of equipment and the solved problem of platform is similar to aforementioned data delet method, therefore the implementation of the equipment and platform can be joined See the implementation of preceding method, overlaps will not be repeated.
A kind of data-removal apparatus provided in an embodiment of the present invention, as shown in Figure 10, comprising:
Removing module 1001, the last item binary recording for being stored since binary file, from back to front It is successively deleted by a binary recording, until the binary recording to be deleted that will be stored in the binary file is deleted Until;
Writing module 1002 is deposited for being obtained by predetermined manner by before the last item binary recording deletion Storage space sets the storage content and storage order of all binary recordings after the binary recording to be deleted;And with institute The storage location before record to be deleted is deleted in the binary file is stated as starting writing position, storage location is existed All binary recordings after the binary recording to be deleted, according to be deleted before in the binary file in the past Storage order after is sequentially written in the binary file.
Further, the equipment further include: backup module 1003;
The backup module 1003, the last item two for being stored from binary file in the removing module 1001 System record starts, and before successively deleting from back to front every binary recording, will store in the binary file The storage content of all binary recordings of the position after the binary recording to be deleted and all binary system notes The storage order recorded in binary file is backed up.
Further, above-mentioned data-removal apparatus can be any equipment for being stored with binary file,
Further, the removing module 1001 is also used in the last item binary system stored from binary file Record starts, and before successively deleting from back to front every binary recording, receives the deletion that SIM card management platform is sent Instruction;
The removing module 1001 is specifically used for the deletion instruction based on the received, stores from binary file The last item binary recording starts, and successively deletes from back to front every binary recording, until by the binary system Until the binary recording to be deleted stored in file is deleted;Wherein, the binary file is the binary system stored in SIM card File;.
Further, the removing module 1001, specifically for will be described whenever receive that SIM card management platform sends The deletion instruction that current the last item binary recording of binary file is deleted, indicates according to the deletion by described two Current the last item binary recording of binary file is deleted;
Wherein, the SIM card manages the deletion instruction that platform sends predetermined number to the SIM card, described default Included from the last item binary recording to the binary recording to be deleted in number and the binary file two into Record strip number processed is equal;The binary file is the binary file stored in SIM card.
Further, the write module 1002, the described the last item sent specifically for receiving SIM card management platform Before binary recording is deleted, storage location is in the storage of all binary recordings after the binary recording to be deleted Appearance and storage order;And receive the write instructions that SIM card management platform is sent;And said write indicates based on the received, Storage location before being deleted with the record to be deleted in the binary file is starting writing position, will store position Set all binary recordings after the binary recording to be deleted, according to be deleted before in the binary file Storage order from front to back is sequentially written in the binary file;The binary file is the binary system stored in SIM card File.
Further, the write module 1002, specifically for whenever the binary system for receiving SIM card management platform transmission When recording and the write instructions of the binary file are written in received binary recording, it will be connect according to said write instruction The binary recording received is written at the current end of the binary file;
Wherein, the SIM card management platform, which is directed in the binary file, deletes the last item binary recording Except before, all binary recordings of the storage location after the binary recording to be deleted, according to storage from front to back Sequentially, the SIM is sent to by the storage content of the binary recording and for the write instructions of the binary recording one by one Card;The binary file is the binary file stored in SIM card.
Further, the above-mentioned data-removal apparatus with SIM card can be any equipment that can place SIM card, example Such as: mobile phone terminal.
Further, for the data-removal apparatus with SIM card, the embodiment of the present invention can also provide a kind of SIM card One of platform is managed, as shown in figure 11, including following module:
Indicating module 1101 is deleted, deletes instruction for sending to SIM card, wherein the deletion instruction is used to indicate institute Stating the last item binary recording that SIM card is stored since binary file, successively every binary system is remembered from back to front Record is deleted, until the binary recording to be deleted that will be stored in the binary file is deleted;
Content sending module 1102 is written, for the SIM card send in the binary file the last item two into Before record deletion processed, the storage content of all binary recordings of the storage location after the binary recording to be deleted and Storage order;
Write instructions module 1103, for sending write instructions to the SIM card, wherein said write is indicated for referring to Show the storage location before the SIM card is deleted with the record to be deleted in the binary file for starting write-in position Set, by all binary recordings of the storage location after the binary recording to be deleted, according to before being deleted described Storage order in binary file from front to back is sequentially written in the binary file.
Further, for the data-removal apparatus with SIM card, the embodiment of the present invention can also provide a kind of SIM card The two of platform are managed, as shown in figure 12, including following module:
Determining module 1201, for determine in the binary file stored in SIM card from the last item binary recording to The binary recording item number that binary recording to be deleted is included;
Indicating module 1202 is deleted, for sending and determining binary recording item number same number to the SIM card Delete instruction, wherein each deletion instruction is used to indicate the current the last item of the SIM card by the binary file Binary recording is deleted;
Write instructions module 1203, for the last item binary recording to be deleted it in the binary file Before, all binary recordings of the storage location after binary recording to be deleted, according to storage order from front to back, one by one SIM card is sent to by the storage content of the binary recording and for the write instructions of the binary recording.
The function of above-mentioned each unit can correspond to the respective handling step in process shown in Fig. 3 to Fig. 4, Fig. 6 to Fig. 9, This is repeated no more.
A kind of data-erasure method, equipment and platform provided in an embodiment of the present invention, comprising: stored from binary file The last item binary recording start, successively deleted from back to front by a binary recording, until by binary system text Until the binary recording to be deleted stored in part is deleted;It is obtained by predetermined manner and the last item binary recording is deleted it Before, the storage content and storage order of all binary recordings of the storage location after binary recording to be deleted;Wait delete Storage location in binary file is starting writing position before being deleted except record, by storage location to be deleted two into All binary recordings after system record, according to storage order in binary file from front to back before being deleted, according to Secondary write-in binary file.Data-erasure method provided in an embodiment of the present invention, the last item stored from binary file Binary recording starts, successively delete from back to front every binary recording, until will store in binary file Until binary recording to be deleted is deleted, compared with the data-erasure method that the prior art provides, even if deleting binary system note It is abnormal during record, due to being deleted forward since the last item binary recording, present in binary file Binary recording still can compact arrangement, do not appear between two effective binary recordings that there are the feelings of redundant data Condition ensure that binary file can parse.
Through the above description of the embodiments, those skilled in the art can be understood that the embodiment of the present invention The mode of necessary general hardware platform can also be added to realize by software by hardware realization.Based on such reason Solution, the technical solution of the embodiment of the present invention can be embodied in the form of software products, which can store one In a non-volatile memory medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a meter It calculates machine equipment (can be personal computer, server or the network equipment etc.) and executes side described in each embodiment of the present invention Method.
It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, module or stream in attached drawing Journey is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment It is distributed in the device of embodiment, corresponding change can also be carried out and be located in one or more devices different from the present embodiment.On The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (16)

1. a kind of data-erasure method characterized by comprising
The last item binary recording stored since binary file, from back to front successively one by one to binary recording It is deleted, until the binary recording to be deleted that will be stored in the binary file is deleted;
By predetermined manner obtain by the last item binary recording delete before, storage location described to be deleted two into The storage content and storage order of all binary recordings after system record;
Storage location before being deleted with the record to be deleted in the binary file is starting writing position, will be deposited Storage space sets all binary recordings after the binary recording to be deleted, according to literary in the binary system before being deleted Storage order in part from front to back is sequentially written in the binary file.
2. the method as described in claim 1, which is characterized in that in the last item binary system note stored from binary file Record starts, before successively deleting from back to front every binary recording, further includes:
By depositing for all binary recordings of the storage location in the binary file after the binary recording to be deleted The storage order of content and all binary recordings in binary file is stored up to be backed up.
3. the method as described in claim 1, which is characterized in that the binary file is the binary system text stored in SIM card Part;
The last item binary recording stored since binary file, from back to front successively to every binary recording Before being deleted, further includes:
Receive the deletion instruction that SIM card management platform is sent;
The last item binary recording stored since binary file, from back to front successively to every binary recording into Row is deleted, and until the binary recording to be deleted that will be stored in the binary file is deleted, is specifically included:
The SIM card based on the received open by the deletion instruction, the last item binary recording stored from binary file Begin, successively every binary recording is deleted from back to front, until will be stored in the binary file to be deleted two Until system record deletion.
4. the method as described in claim 1, which is characterized in that the binary file is the binary system text stored in SIM card Part;
The last item binary recording stored since binary file, from back to front successively to every binary recording into Row is deleted, and until the binary recording to be deleted that will be stored in the binary file is deleted, is specifically included:
It is carried out whenever receiving current the last item binary recording by the binary file that SIM card management platform is sent The deletion of deletion indicates, deletes current the last item binary recording deletion of the instruction by the binary file according to described;
Wherein, the SIM card manages the deletion instruction that platform sends predetermined number to the SIM card, the predetermined number Remember with the binary system for being included from the last item binary recording to the binary recording to be deleted in the binary file It is equal to record item number.
5. the method as described in claim 1, which is characterized in that the binary file is the binary system text stored in SIM card Part;
By predetermined manner obtain by the last item binary recording delete before, storage location described to be deleted two into The storage content and storage order of all binary recordings after system record, specifically include:
Before receiving the last item binary recording deletion that SIM card management platform is sent, storage location is described wait delete Except the storage content and storage order of all binary recordings after binary recording;
Storage location before being deleted with the record to be deleted in the binary file is starting writing position, will All binary recordings of the storage location after the binary recording to be deleted, according to be deleted before in the binary system Storage order in file from front to back is sequentially written in front of the binary file, further includes:
Receive the write instructions that SIM card management platform is sent;
Storage location before being deleted with the record to be deleted in the binary file is starting writing position, will be deposited Storage space sets all binary recordings after the binary recording to be deleted, according to literary in the binary system before being deleted Storage order in part from front to back is sequentially written in the binary file, specifically includes:
Said write indicates the SIM card based on the received, in the binary system text before being deleted with the record to be deleted Storage location in part is starting writing position, by all binary systems of the storage location after the binary recording to be deleted Record is sequentially written in the binary system text according to the storage order before being deleted in the binary file from front to back Part.
6. the method as described in claim 1, which is characterized in that the binary file is the binary system text stored in SIM card Part;
By predetermined manner obtain by the last item binary recording delete before, storage location described to be deleted two into The storage content and storage order of all binary recordings after system record;In institute before being deleted with the record to be deleted The storage location in binary file is stated for starting writing position, by storage location after the binary recording to be deleted All binary recordings are sequentially written in institute according to the storage order before being deleted in the binary file from front to back Binary file is stated, is specifically included:
Whenever receive SIM card management platform send binary recording and by received binary recording write-in described two into When the write instructions of file processed, indicated the binary recording received working as the binary file is written according to said write At preceding end;
Wherein, the last item binary recording is deleted it in the binary file by the SIM card management platform Before, all binary recordings of the storage location after the binary recording to be deleted, according to storage order from front to back, The SIM card is sent to by the storage content of the binary recording and for the write instructions of the binary recording one by one.
7. a kind of data-erasure method characterized by comprising
It is sent to SIM card and deletes instruction,
Wherein, the deletion instruction is used to indicate the last item binary recording that the SIM card is stored from binary file Start, successively every binary recording is deleted from back to front, until to be deleted by what is stored in the binary file Until binary recording is deleted;
It is sent in the binary file before the deletion of the last item binary recording to the SIM card, storage location is described The storage content and storage order of all binary recordings after binary recording to be deleted;
Write instructions are sent to the SIM card,
Wherein, said write instruction is used to indicate before the SIM card is deleted with the record to be deleted in the binary system Storage location in file is starting writing position, by storage location after the binary recording to be deleted all two into System record is sequentially written in the binary system according to the storage order before being deleted in the binary file from front to back File.
8. a kind of data-erasure method characterized by comprising
It determines in the binary file stored in SIM card and is included from the last item binary recording to binary recording to be deleted Binary recording item number;
It sends to the SIM card and is indicated with the deletion of the binary recording item number same number determined,
Wherein, each deletion instruction be used to indicate the SIM card by current the last item two of the binary file into System record is deleted;
For before deleting the last item binary recording in the binary file, storage location is remembered in binary system to be deleted All binary recordings after record, according to storage order from front to back, one by one by the storage content of the binary recording with And SIM card is sent to for the write instructions of the binary recording.
9. a kind of data-removal apparatus characterized by comprising
Removing module, the last item binary recording for being stored since binary file, from back to front successively one by one Binary recording is deleted, until the binary recording to be deleted that will be stored in the binary file is deleted;
Writing module, for being obtained by predetermined manner by before the last item binary recording deletion, storage location exists The storage content and storage order of all binary recordings after the binary recording to be deleted;And with described to be deleted Storage location before record is deleted in the binary file is starting writing position, by storage location described wait delete Except all binary recordings after binary recording, according to before being deleted in the binary file depositing from front to back Storage sequence, is sequentially written in the binary file.
10. equipment as claimed in claim 9, which is characterized in that further include: backup module;
The backup module, the last item binary recording for storing from binary file in the removing module are opened Begin, before successively deleting from back to front every binary recording, by storage location in the binary file described The storage content of all binary recordings after binary recording to be deleted and all binary recordings are in binary system Storage order in file is backed up.
11. equipment as claimed in claim 9, which is characterized in that the removing module is also used to depositing from binary file The last item binary recording of storage starts, and before successively deleting from back to front every binary recording, receives SIM card Manage the deletion instruction that platform is sent;
The removing module is specifically used for the deletion instruction based on the received, the last item stored from binary file Binary recording starts, and successively deletes from back to front every binary recording, until will deposit in the binary file Until the binary recording to be deleted of storage is deleted;Wherein, the binary file is the binary file stored in SIM card.
12. equipment as claimed in claim 9, which is characterized in that the removing module, specifically for whenever receiving SIM card The deletion instruction for deleting current the last item binary recording of the binary file of management platform transmission, according to It is described to delete current the last item binary recording deletion of the instruction by the binary file;
Wherein, the SIM card manages the deletion instruction that platform sends predetermined number to the SIM card, the predetermined number Remember with the binary system for being included from the last item binary recording to the binary recording to be deleted in the binary file It is equal to record item number;The binary file is the binary file stored in SIM card.
13. equipment as claimed in claim 9, which is characterized in that it is flat to be specifically used for reception SIM card management for the write module Before the last item binary recording that platform is sent is deleted, institute of the storage location after the binary recording to be deleted There are the storage content and storage order of binary recording;And receive the write instructions that SIM card management platform is sent;And according to Received said write instruction, the storage location before being deleted with the record to be deleted in the binary file are Beginning writing position, by all binary recordings of the storage location after the binary recording to be deleted, according to being deleted it The preceding storage order in the binary file from front to back, is sequentially written in the binary file;The binary file For the binary file stored in SIM card.
14. equipment as claimed in claim 9, which is characterized in that the write module, specifically for whenever receiving SIM card When managing the binary recording of platform transmission and the write instructions of the binary file be written in received binary recording, It indicates the binary recording received to be written at the current end of the binary file according to said write;
Wherein, the last item binary recording is deleted it in the binary file by the SIM card management platform Before, all binary recordings of the storage location after the binary recording to be deleted, according to storage order from front to back, The SIM card is sent to by the storage content of the binary recording and for the write instructions of the binary recording one by one;Institute Stating binary file is the binary file stored in SIM card.
15. a kind of SIM card manages platform characterized by comprising
Delete indicating module, delete instruction for sending to SIM card, wherein deletions indicate to be used to indicate the SIM card from The last item binary recording stored in binary file starts, and successively deletes from back to front to every binary recording It removes, until the binary recording to be deleted that will be stored in the binary file is deleted;
Content sending module is written, is deleted for sending the last item binary recording in the binary file to the SIM card Except before, the storage content of all binary recordings of the storage location after the binary recording to be deleted and storage are suitable Sequence;
Write instructions module, for sending write instructions to the SIM card, wherein said write instruction is used to indicate the SIM Card is starting writing position with storage location of the record to be deleted before deleted in the binary file, will be stored All binary recordings of the position after the binary recording to be deleted, according to be deleted before in the binary file In storage order from front to back, be sequentially written in the binary file.
16. a kind of SIM card manages platform characterized by comprising
Determining module, for determining in the binary file stored in SIM card from the last item binary recording to be deleted two System records included binary recording item number;
Indicating module is deleted, is indicated for being sent to the SIM card with the deletion of the binary recording item number same number determined, Wherein, each current the last item binary system note deleted instruction and be used to indicate the SIM card for the binary file Record is deleted;
Write instructions module, for storing position for before deleting the last item binary recording in the binary file Set all binary recordings after binary recording to be deleted, according to storage order from front to back, one by one by this two into It makes the storage content of record and is sent to SIM card for the write instructions of the binary recording.
CN201510015245.6A 2015-01-12 2015-01-12 A kind of data-erasure method, equipment and platform Active CN105843807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510015245.6A CN105843807B (en) 2015-01-12 2015-01-12 A kind of data-erasure method, equipment and platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510015245.6A CN105843807B (en) 2015-01-12 2015-01-12 A kind of data-erasure method, equipment and platform

Publications (2)

Publication Number Publication Date
CN105843807A CN105843807A (en) 2016-08-10
CN105843807B true CN105843807B (en) 2019-07-05

Family

ID=57177905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510015245.6A Active CN105843807B (en) 2015-01-12 2015-01-12 A kind of data-erasure method, equipment and platform

Country Status (1)

Country Link
CN (1) CN105843807B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3291088A1 (en) * 2016-09-02 2018-03-07 Gemalto Sa Java card application memory footprint optimization

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206656A (en) * 2006-12-22 2008-06-25 英业达股份有限公司 File safety deletion system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7043503B2 (en) * 2002-02-15 2006-05-09 International Business Machines Corporation Ditto address indicating true disk address for actual data blocks stored in one of an inode of the file system and subsequent snapshot
US6934822B2 (en) * 2002-08-06 2005-08-23 Emc Corporation Organization of multiple snapshot copies in a data storage system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206656A (en) * 2006-12-22 2008-06-25 英业达股份有限公司 File safety deletion system and method

Also Published As

Publication number Publication date
CN105843807A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
US10860539B2 (en) De-duplication-based remote replication method, and apparatus
US10606806B2 (en) Method and apparatus for storing time series data
CN104281533B (en) A kind of method and device of data storage
US11188560B2 (en) Synchronizing object in local object storage node
CN104246767A (en) Telemetry system for a cloud synchronization system
CN107643880A (en) The method and device of file data migration based on distributed file system
CN107656939A (en) File wiring method and device
CN106909595B (en) Data migration method and device
CN102882928A (en) Hierarchical storage management method of cloud storing system
CN110413413A (en) A kind of method for writing data, device, equipment and storage medium
CN102821111A (en) Real-time synchronizing method for file cloud storage
CN108427728A (en) Management method, equipment and the computer-readable medium of metadata
CN103605657A (en) Method and device for reconstructing index online
CN104657435A (en) Storage management method for application data and network management system
CN107203327A (en) A kind of method and apparatus for storage system
CN103914474A (en) Data migration method and data migration system
CN107391544A (en) Processing method, device, equipment and the computer storage media of column data storage
US10423580B2 (en) Storage and compression of an aggregation file
US11157456B2 (en) Replication of data in a distributed file system using an arbiter
CN110019527B (en) Slave library reading method, related device and equipment
CN111309799A (en) Method, device and system for realizing data merging and storage medium
CN105808451B (en) Data caching method and related device
CN106383667A (en) Method and apparatus for LUN migration in business operation
CN105843807B (en) A kind of data-erasure method, equipment and platform
CN107992763A (en) The power-off protection method and device of a kind of file 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
GR01 Patent grant
GR01 Patent grant