CN105843807A - Data deleting method, device and platform - Google Patents
Data deleting method, device and platform Download PDFInfo
- Publication number
- CN105843807A CN105843807A CN201510015245.6A CN201510015245A CN105843807A CN 105843807 A CN105843807 A CN 105843807A CN 201510015245 A CN201510015245 A CN 201510015245A CN 105843807 A CN105843807 A CN 105843807A
- Authority
- CN
- China
- Prior art keywords
- binary
- deleted
- storage
- recording
- 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.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a data deleting method, device and platform. The data deleting method includes the following steps: successively deleting each binary record from the last binary record stored in a binary file to the first binary record till the binary records to be deleted and stored in the binary file are deleted; acquiring storage content and a storage sequence of all the binary records which have storage positions behind the binary records to be deleted, through a preset manner, before the last binary record is deleted; serving the storage positions in the binary file, of the binary records to be deleted as initial write-in positions before the binary records to be deleted are deleted, and successively writing all the binary records with the storage positions behind the binary records to be deleted in the binary file according to the storage sequence in the binary file, of all the binary records, from front to back. Analysis of the binary file can be ensured. The invention relates to the technical field of computers.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of data-erasure method, equipment and platform.
Background technology
In computer technology, a lot of application can use binary file, and this binary file storage has a plurality of two
System record, as a example by SIM is applied: SIM stores multiple binary file, this binary system literary composition
Part stores a plurality of binary recording characterizing and accessing rule, when the application program of terminal needs to access SIM
During card, access rule can be determined by the corresponding record in this binary file, determine whether to allow
Application program accesses SIM.
Typically require a plurality of read write command of use when binary recording is managed binary recording is carried out
Operation, the operation being generally managed binary recording may include that increase binary recording, deletes two
System record, amendment binary recording etc., wherein, increasing binary recording operation generally can be at binary system
The binary recording that end of file write is new, amendment binary recording operation generally can be modified binary system
The position of record writes new binary recording, deletes binary recording operation and is then relatively difficult to realize, existing
Have in technology and generally adopt with the following method:
Method one, deletion binary recording operation generally use in the position of binary recording to be deleted fills word
Symbol covers this binary recording to be deleted.
In method one, if the position of binary recording to be deleted is at the end of binary file, namely
This binary recording is the last item binary recording in binary file, then this directly with filling word
The mode that symbol covers can realize deleting binary recording, if the position of binary recording to be deleted is not
End in binary file, then, owing to the length of each binary recording is not fixing, arise that
After binary recording to be deleted is filled character covering, first, this binary recording to be deleted is corresponding
Fill character limited length, possibly cannot be fully utilized, can only for this binary recording to be deleted with long
Degree or the shorter binary recording of length use, secondly, and the filling word that this binary recording to be deleted is corresponding
All there is effective binary recording in the front and back of symbol, when resolving this binary file, analysis program is not
Can determine that the length filled character, therefore, it is impossible to determine that the next-door neighbour afterwards that fills character fills character accurately
The starting position of effectively record, cause binary file to resolve unsuccessfully;
Further, binary recording to be deleted is deleted signal for directly using to fill character by Fig. 1 a~Fig. 1 b
Figure, the characterizing part same binary recording of identical filling pattern in figure, it is to be deleted that Fig. 1 a characterizes deletion
Two-stage system file before binary recording 101, Fig. 1 b characterizes directly to use and fills character to be deleted two
Binary file after system record 101 filling, it is seen then that the original position of binary recording 102 is difficult to quilt
The analysis program resolving binary file accurately determines, causes binary file to resolve unsuccessfully.
Further, in order to ensure binary file delete after binary recording can successfully resolved, existing
There is in technology the method that also proposed two: by the binary recording after binary recording to be deleted totally to reach
Dynamic, the position of record to be deleted is covered.
In method two, during binary recording is totally moved forward, need a plurality of instruction ability
Completing, every instruction can complete the movement of partial binary record, if performing partial binary note
After record, binary file place equipment generation abnormal conditions make the movement of binary recording the completeest
Become, then be likely to cause binary file to resolve unsuccessfully.
Further, Fig. 2 a~Fig. 2 b is that the mode using mobile binary recording is by binary recording to be deleted
Deleting schematic diagram, Fig. 2 a characterizes the binary file deleted before binary recording 201 to be deleted, Fig. 2 b
Characterize the binary file after using the mode of mobile binary recording to be moved by partial binary record.As
Shown in Fig. 2 a, the binary recording after binary recording 201 to be deleted is followed successively by binary recording 202
With binary recording 203, as shown in Figure 2 b, it is assumed that after moving binary recording 202, exception occurs,
So binary file has reformed into the binary file as shown in 2b, say, that binary recording 202
It is moved to the position of binary recording 201 to be deleted, and binary recording 202 after movement and not moving
Create the ending of the binary recording 202 before moving between dynamic binary recording 203, become
Redundant data 204, after the most processed, analysis program cannot parse redundant data 204, causes
Binary recording 203 cannot normally be read, and namely binary file resolves unsuccessfully.
Summary of the invention
Embodiments provide a kind of data-erasure method and equipment, enter in order to solve the two of prior art
The problem that system record delet method causes binary file to resolve after deleting binary recording.
Based on the problems referred to above, embodiments provide one of a kind of data-erasure method, including:
From binary file from the beginning of the last item binary recording of storage, the most successively by bar two
System record is deleted, until being deleted by the binary recording to be deleted of storage in described binary file is
Only;
Being obtained by predetermined manner before being deleted by described the last item binary recording, storage position is described
The storage content of all binary recordings after binary recording to be deleted and storage order;
Before being deleted with described record to be deleted, the storage position in described binary file is write for initial
Enter position, by the storage position all binary recordings after described binary recording to be deleted, according to quilt
Before deletion in described binary file storage order from front to back, write described binary system literary composition successively
Part.
The two of a kind of data-erasure method that the embodiment of the present invention provides, including:
Send to SIM and delete instruction,
Wherein, described deletion indicates the last item being used for indicating described SIM to store from binary file
Binary recording starts, and deletes every binary recording the most successively, until entering described two
Till in file processed, the binary recording to be deleted of storage is deleted;
Send in described binary file before the deletion of the last item binary recording to described SIM, storage
The storage content of the position all binary recordings after described binary recording to be deleted and storage order;
Write instruction is sent to described SIM,
Wherein, before said write instruction is used for indicating described SIM to be deleted with described record to be deleted
Storage position in described binary file is initial writing position, is entered described to be deleted two storage position
System record after all binary recordings, according to be deleted before in described binary file from front to back
Storage order, write described binary file successively.
The three of a kind of data-erasure method that the embodiment of the present invention provides, including:
Determine in SIM the binary file of storage is entered to be deleted two from the last item binary recording
The binary recording bar number that system record is comprised;
The deletion instruction with the binary recording bar number same number determined is sent to described SIM,
Wherein, each described delete instruction for indicate described SIM by described binary file current
A rear binary recording is deleted;
Before being deleted by the last item binary recording in described binary file, storage position is deleted waiting
Except all binary recordings after binary recording, according to storage order from front to back, one by one by this two
The storage content of system record and the write instruction for this binary recording are sent to SIM.
A kind of data-removal apparatus that the embodiment of the present invention provides, including:
Removing module, from the beginning of the last item binary recording of storage from binary file, from backward
Before delete by bar binary recording successively, until will in described binary file storage to be deleted two
Till system record is deleted;
Writing module, before being obtained the deletion of described the last item binary recording by predetermined manner,
The storage content of the storage position all binary recordings after described binary recording to be deleted and storage
Sequentially;And before being deleted with described record to be deleted storage position in described binary file for
Beginning writing position, by the storage position all binary recordings after described binary recording to be deleted, presses
According to before being deleted in described binary file storage order from front to back, write described binary system successively
File.
One of a kind of SIM management platform that the embodiment of the present invention provides, including:
Deleting indicating module, delete instruction for sending to SIM, wherein, described deletion instruction is used for referring to
From the beginning of showing the last item binary recording that described SIM stores from binary file, the most successively
Every binary recording is deleted, until by the binary system to be deleted note of storage in described binary file
Till record is deleted;
Write content sending module, for sending the last item two in described binary file to described SIM
Before system record is deleted, the storage position all binary recordings after described binary recording to be deleted
Storage content and storage order;
Write indicating module, for sending write instruction to described SIM, wherein, said write instruction is used
Storage in described binary file before indicating described SIM to be deleted with described record to be deleted
Position is initial writing position, by the storage position all binary systems after described binary recording to be deleted
Record, according to before being deleted in described binary file storage order from front to back, write institute successively
State binary file.
The two of a kind of SIM management platform that the embodiment of the present invention provides, including:
Determine module, for determining in the binary file stored in SIM from the last item binary recording
The binary recording bar number comprised to binary recording to be deleted;
Delete indicating module, for sending and the binary recording bar number same number determined to described SIM
Deletion instruction, wherein, each described deletion instruction is used for indicating described SIM by described binary file
Current the last item binary recording delete;
Write indicating module, for deleting it in described binary file by the last item binary recording
Before, the storage position all binary recordings after binary recording to be deleted, according to depositing from front to back
Storage order, sends out the storage content of this binary recording and the write instruction for this binary recording one by one
Give SIM.
The beneficial effect of the embodiment of the present invention includes:
A kind of data-erasure method, equipment and the platform that the embodiment of the present invention provides, including: from binary system literary composition
In part, the last item binary recording of storage starts, and deletes by bar binary recording the most successively
Remove, until the binary recording to be deleted stored in binary file is deleted;Obtained by predetermined manner
Before the last item binary recording must being deleted, storage position owning after binary recording to be deleted
The storage content of binary recording and storage order;Before being deleted with record to be deleted in binary file
Storage position be initial writing position, by storage position all two entering after binary recording to be deleted
Record processed, according to before being deleted in binary file storage order from front to back, write two is entered successively
File processed.The data-erasure method that the embodiment of the present invention provides, the last item of storage from binary file
Binary recording starts, and deletes every binary recording the most successively, until by binary system literary composition
Till in part, the binary recording to be deleted of storage is deleted, the data-erasure method phase provided with prior art
Ratio, though delete occur during binary recording abnormal, owing to being from the last item binary recording
Start delete forward, present in binary file binary recording still can compact arrangement, do not have
The situation of redundant data is there is, it is ensured that binary file can solve between two effective binary recordings
Analysis.
Accompanying drawing explanation
The directly employing that Fig. 1 a~Fig. 1 b provides for background of invention is filled character binary system to be deleted
Schematic diagram deleted in record;
The mode using mobile binary recording that Fig. 2 a~Fig. 2 b provides for background of invention will be waited to delete
Except binary recording deletes schematic diagram;
The flow chart of a kind of data-erasure method that Fig. 3 provides for the embodiment of the present invention;
The flow chart of a kind of data-erasure method that Fig. 4 provides for the embodiment of the present invention 1;
Binary system to be deleted is remembered by the data-erasure method that Fig. 5 a~Fig. 5 h provides for using the embodiment of the present invention 1
Process schematic is deleted in record;
The flow chart of a kind of data-erasure method that Fig. 6 provides for the embodiment of the present invention 2;
Fig. 7 is applied to SIM pipe for corresponding with a kind of data-erasure method that the embodiment of the present invention 2 provides
The flow chart of platform side;
The flow chart of a kind of data-erasure method that Fig. 8 provides for the embodiment of the present invention 3;
Fig. 9 is applied to SIM pipe for corresponding with a kind of data-erasure method that the embodiment of the present invention 3 provides
The flow chart of platform side;
The structural representation of a kind of data-removal apparatus that Figure 10 provides for the embodiment of the present invention;
The structural representation of one of a kind of SIM management platform that Figure 11 provides for the embodiment of the present invention;
The structural representation of the two of a kind of SIM management platform that Figure 12 provides for the embodiment of the present invention.
Detailed description of the invention
Embodiments provide a kind of data-erasure method and equipment, below in conjunction with Figure of description to this
The preferred embodiment of invention illustrates, it will be appreciated that preferred embodiment described herein is merely to illustrate
With the explanation present invention, it is not intended to limit the present invention.And the reality in the case of not conflicting, in the application
Execute the feature in example and embodiment can be mutually combined.
The embodiment of the present invention provides a kind of data-erasure method, as it is shown on figure 3, include:
S301, from binary file storage the last item binary recording from the beginning of, the most successively by
Binary recording is deleted by bar, until being deleted by the binary recording to be deleted stored in binary file
Till.
S302, by predetermined manner obtain by the last item binary recording delete before, storage position treating
The storage content of all binary recordings after deletion binary recording and storage order.
S303, be deleted with record to be deleted before storage position in binary file write position for initial
Put, will be stored in all binary recordings after binary recording to be deleted, according to be deleted before two
Storage order from front to back in binary file, writes binary file successively.
Further, the data-erasure method that the embodiment of the present invention provides uses and first deletes the mode moved afterwards,
First binary recording to be deleted and binary recording behind are deleted one by one according to order from back to front,
Again the storage position all binary recordings after binary recording to be deleted are write, one by one even if deleting
Abnormal except occurring during binary recording, owing to being to start to delete forward from the last item binary recording
Remove, present in binary file binary recording still can compact arrangement, do not appear in two effectively
The situation of redundant data is there is, it is ensured that binary file can resolve between binary recording.
Below in conjunction with the accompanying drawings, the method and the relevant device that provide the present invention with specific embodiment are retouched in detail
State.
Embodiment 1:
In the embodiment of the present invention 1, it is provided that a kind of data-erasure method, as shown in Figure 4, specifically include as
Lower step:
S401, will in binary file store position after binary recording to be deleted all binary systems note
The storage content of record, and this all binary recordings storage order in binary file backs up.
Binary system to be deleted is remembered by the data-erasure method that Fig. 5 a~Fig. 5 h provides for using the embodiment of the present invention 1
Process schematic is deleted in record, and Fig. 5 a characterizes the binary file deleted before binary recording 501 to be deleted,
And the characterizing part same binary recording of identical filling pattern.
As shown in Figure 5 a, binary file is entered to the last item two from binary recording 501 to be deleted
Record 504 processed, in binary file storage order from front to back be binary recording 501 to be deleted,
Binary recording 502, binary recording 503 and binary recording 504.This step can will store position
Put all binary recordings after binary recording 501 to be deleted: binary recording 502, binary system
Record 503 and the storage content of binary recording 504, and storage order backs up.
Further, backup operation can arrange the position (example backed up by binary recording according to actual needs
As: caching, peripheral hardware storage device etc.), do not limit.
S402, from binary file storage the last item binary recording from the beginning of, the most successively by
Binary recording is deleted by bar, until being deleted by the binary recording to be deleted stored in binary file
Till.
Further, this step can be specifically embodied as: from binary file, the last item two of storage enters
Record processed starts, and use is filled character and covered binary recording one by one the most successively, until will
Till in binary file, the binary recording to be deleted of storage covers.
Further, as shown in Fig. 5 b~5e, for the last item binary recording stored from binary file
504 start, and use the most successively and fill character one by one to binary recording 503~502 and to be deleted two
System record 501 carries out the binary file schematic diagram covered, and Fig. 5 b is that use is filled character binary system
Record 504 cover after binary file, Fig. 5 c is that use is filled character binary recording 503
Binary file after covering, Fig. 5 d is that use is filled character and covered by binary recording 502
After binary file, Fig. 5 e is after use is filled character and covered by binary recording 501 to be deleted
Binary file.
S403, by predetermined manner obtain by the last item binary recording delete before, storage position treating
The storage content of all binary recordings after deletion binary recording and storage order.
Further, in the present embodiment, predetermined manner is for obtaining this enforcement of execution from backup binary recording
Binary file stores before example S401 the position all binary systems note after binary recording to be deleted
The storage content of record and storage order.
S404, be deleted with record to be deleted before storage position in binary file write position for initial
Put, will be stored in all binary recordings after binary recording to be deleted, according to be deleted before two
Storage order from front to back in binary file, writes binary file successively.
Further, step S403 the storage content of the binary recording of the backup obtained and storage order,
That is: binary recording 502, binary recording 503 and binary recording 504.In this step, to wait to delete
Except the storage position of binary recording 501 is initial writing position, by binary recording 502, binary system note
Record 503 and binary recording 504 write binary file successively.Fig. 5 f is for write binary recording 502
Entering schematic diagram after binary file, Fig. 5 g is that binary recording 503 writes schematic diagram after binary file,
Fig. 5 h for writing schematic diagram after binary file by binary recording 504.
Visible, after binary recording 504 is write binary file, interior after binary recording 504
Hold for filling character, and each binary recording compact arrangement in binary file, between binary recording
There is not redundant data so that binary file can be resolved.
Embodiment 2:
In the embodiment of the present invention 2, provide a kind of data deletion for the binary file of storage in SIM
Method, the SIM binary file to self storing carries out any operation and is required for according to SIM management flat
The instruction of platform, when not receiving the instruction of SIM management platform, SIM will not be to the two of self storage
Binary file carries out any operation, and in SIM, the binary file of storage manages platform at SIM
All there is backup.
A kind of data-erasure method that the embodiment of the present invention provides, as shown in Figure 6, specifically includes following steps:
The deletion instruction that S601, reception SIM management platform send.
Further, in this step, delete instruction for indicating SIM to store from binary file
A rear binary recording starts, and deletes every binary recording the most successively, until by two
Till in binary file, the binary recording to be deleted of storage is deleted.
S602, SIM are according to the deletion instruction received in S601, and from binary file, storage is last
Article one, binary recording starts, and deletes every binary recording the most successively, until entering two
Till in file processed, the binary recording to be deleted of storage is deleted.
Further, the deletion process in this step may refer to Fig. 5 a~Fig. 5 e, and here is omitted.
Before the last item binary recording that S603, reception SIM management platform send is deleted, storage
The storage content of the position all binary recordings after binary recording to be deleted and storage order.
Further, in the present embodiment, predetermined manner is the mode obtained from SIM management platform.By
All there is backup at SIM management platform in the binary file of storage in SIM, although step S602
SIM has been managed the binary recording indicated by platform and has deleted by middle SIM, flat in SIM management
Platform yet suffers from these storage content being deleted binary recording on the sim card and storage order.
The write instruction that S604, reception SIM management platform send.
Further, in this step, before write instruction is used for indicating SIM to be deleted with record to be deleted
Storage position in binary file is initial writing position, will store position at binary recording to be deleted
All binary recordings afterwards, according to before being deleted in binary file storage from front to back suitable
Sequence, writes binary file successively.
S605, SIM according in S604 receive write instruction, with record to be deleted be deleted before
Storage position in binary file is initial writing position, will storage position binary recording to be deleted it
After all binary recordings, according to before being deleted in binary file storage order from front to back,
Write binary file successively.
Further, the ablation process in this step may refer to Fig. 5 f~Fig. 5 h, and here is omitted.
Further, in the present embodiment, in the execution step of SIM management platform side as it is shown in fig. 7, can
To include:
S701, to SIM send delete instruction,
Wherein, instruction is deleted for the last item binary system note indicating SIM to store from binary file
Record starts, and deletes every binary recording the most successively, until will store in binary file
Binary recording to be deleted delete till.
Before S702, the middle the last item binary recording that sends binary file to SIM are deleted, storage
The storage content of the position all binary recordings after binary recording to be deleted and storage order.
S703, to SIM send write instruction,
Wherein, before write instruction is used for indicating SIM to be deleted with record to be deleted in binary file
Storage position be initial writing position, by storage position all two entering after binary recording to be deleted
Record processed, according to before being deleted in binary file storage order from front to back, write two is entered successively
File processed.
Embodiment 3:
In the embodiment of the present invention 3, provide another data for the binary file of storage in SIM and delete
Except method, in the present embodiment, deletion instruction and write that SIM management platform sends every time indicate equal pin
To a binary recording.
A kind of data-erasure method that the embodiment of the present invention provides, as shown in Figure 8, specifically includes following steps:
S801, whenever receive SIM management platform send by current the last item of binary file
Binary recording carries out the deletion instruction deleted, according to deleting instruction by current the last item of binary file
Binary recording is deleted;
Wherein, SIM management platform sends the deletion instruction of predetermined number, predetermined number and two to SIM
The binary recording comprised to binary recording to be deleted from the last item binary recording in binary file
Bar number is equal.
Further, in this step, SIM management platform is each deletes instruction all for a binary system note
Record, i.e. current the last item binary recording of binary file.
As shown in Fig. 5 a~Fig. 5 e, when receiving first and deleting instruction, binary recording 504 is deleted,
The binary file obtained as shown in Figure 5 b, when receive second delete instruction time, by binary recording
503 delete, the binary file obtained as shown in Figure 5 c, when receive the 3rd delete instruction time, by two
System record 502 is deleted, and the binary file obtained as fig 5d, refers to when receiving the 4th deletion
When showing, binary recording 501 to be deleted is deleted, the binary file obtained as depicted in fig. 5e, the most just
Being to say, SIM receives four and deletes instruction, and from the last item binary recording 504 to be deleted two
The bar number (four) of the binary recording that system record 501 is comprised is equal.
S802, whenever receiving binary recording that SIM management platform sends and two entering receive
When the write of system record write binary file indicates, according to write instruction, the binary recording received is write
Enter at the current end of binary file;
Wherein, the last item binary recording is deleted it in binary file by SIM management platform
Before, the storage position all binary recordings after binary recording to be deleted, according to depositing from front to back
Storage order, sends out the storage content of this binary recording and the write instruction for this binary recording one by one
Give SIM.
Further, in this step, each write instruction of SIM management platform is all for a binary system note
Record.Owing in SIM, the binary file of storage all exists backup at SIM management platform, although step
In rapid S801, correspondence binary recording is deleted by SIM according to the deletion instruction of SIM management platform
Remove, yet suffer from these at SIM management platform and be deleted on the sim card in the storage of binary recording
Hold and storage order.Therefore, SIM management platform can in binary file by the last item two
Before system record is deleted, the storage position all binary recordings after binary recording to be deleted, press
According to storage order from front to back, by the storage content of this binary recording and remember for this binary system one by one
The write instruction of record is sent to SIM.
As shown in Fig. 5 f~Fig. 5 h, first SIM management platform can send binary recording to SIM
502 and binary recording 502 is write binary file write instruction, SIM is by binary recording
502 write binary files current ends at after, the binary file obtained as shown in figure 5f, SIM
Card management platform sends binary recording 503 to SIM again and binary recording 503 is write binary system
The write instruction of file, after binary recording 503 is write at the current end of binary file by SIM,
The binary file obtained as shown in fig. 5g, SIM management platform can after send two to SIM and enter
System records 504 and binary recording 504 writes the write instruction of binary file, and SIM enters two
After at the current ends of system record 504 write binary files, the binary file obtained such as Fig. 5 h institute
Show.
Further, in the present embodiment, in the execution step of SIM management platform side, as it is shown in figure 9,
May include that
S901, determine in SIM in the binary file of storage and delete to waiting from the last item binary recording
The binary recording bar number comprised except binary recording.
S902, the deletion of the binary recording bar number same number sending to SIM and determining indicate,
Wherein, each deletion indicates for indicating SIM by current the last item binary system of binary file
Record is deleted.
S903, in binary file by the last item binary recording delete before, storage position treating
Delete all binary recordings after binary recording, according to storage order from front to back, one by one should
The storage content of binary recording and the write instruction for this binary recording are sent to SIM.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of data-removal apparatus and platform, by
Similar to aforementioned data delet method in the principle of the solved problem of these equipment and platform, therefore this equipment and
The enforcement of platform may refer to the enforcement of preceding method, repeats no more in place of repetition.
A kind of data-removal apparatus that the embodiment of the present invention provides, as shown in Figure 10, including:
Removing module 1001, from the beginning of the last item binary recording of storage from binary file, from
Delete by bar binary recording successively before backward, until by described binary file storage wait delete
Till deleting except binary recording;
Writing module 1002, deletes it for being obtained by predetermined manner by described the last item binary recording
Before, store the storage content of the position all binary recordings after described binary recording to be deleted and deposit
Storage order;And storage position in described binary file is before being deleted with described record to be deleted
Initial writing position, by the storage position all binary recordings after described binary recording to be deleted,
According to before being deleted in described binary file storage order from front to back, write described two successively and enter
File processed.
Further, described equipment also includes: backup module 1003;
Described backup module 1003, for storing from binary file at described removing module 1001
A rear binary recording starts, before deleting every binary recording the most successively, by institute
State and binary file stores the position all binary recordings after described binary recording to be deleted
Store content, and the storage order that described all binary recordings are in binary file backs up.
Further, above-mentioned data-removal apparatus can be the equipment that any storage has binary file,
Further, described removing module 1001, it is additionally operable at the last item of storage from binary file
Binary recording starts, and before deleting every binary recording the most successively, receives SIM
The deletion instruction that management platform sends;
Described removing module 1001, specifically for according to the described deletion instruction received, from binary file
The last item binary recording of storage starts, and deletes every binary recording the most successively,
Until the binary recording to be deleted of storage in described binary file is deleted;Wherein, described two enter
File processed is the binary file of storage in SIM;.
Further, described removing module 1001, specifically for whenever receive SIM management platform send out
The deletion instruction carrying out current the last item binary recording of described binary file deleting sent, according to
Described deletion indicates current the last item binary recording deletion of described binary file;
Wherein, described SIM management platform sends the described deletion instruction of predetermined number to described SIM,
Described predetermined number and described binary file are entered to described to be deleted two from the last item binary recording
The binary recording bar number that system record is comprised is equal;Described binary file is that two stored in SIM enter
File processed.
Further, said write module 1002, specifically for receiving the institute that SIM management platform sends
Before stating the deletion of the last item binary recording, store position institute after described binary recording to be deleted
There are storage content and the storage order of binary recording;And the write receiving SIM management platform transmission refers to
Show;And according to the said write instruction received, enter described two before being deleted with described record to be deleted
Storage position in file processed is initial writing position, will storage position described binary recording to be deleted it
After all binary recordings, according to before being deleted in described binary file storage from front to back suitable
Sequence, writes described binary file successively;Described binary file is the binary file of storage in SIM.
Further, said write module 1002, specifically for whenever receive SIM management platform send out
When the binary recording sent and the write instruction that the binary recording received is write described binary file,
According to said write instruction, the binary recording received is write at the current end of described binary file;
Wherein, described SIM management platform in described binary file by described the last item binary system
Before record is deleted, the storage position all binary recordings after described binary recording to be deleted, press
According to storage order from front to back, by the storage content of this binary recording and remember for this binary system one by one
The write instruction of record is sent to described SIM;Described binary file is the binary system of storage in SIM
File.
Further, the above-mentioned data-removal apparatus with SIM can be any can to place SIM
Equipment, such as: mobile phone terminal etc..
Further, for having the data-removal apparatus of SIM, the embodiment of the present invention may be provided for one
Plant one of SIM management platform, as shown in figure 11, including such as lower module:
Deleting indicating module 1101, be used for sending to SIM deleting instruction, wherein, described deletion indicates
From the beginning of indicating the last item binary recording that described SIM stores from binary file, from backward
Before successively every binary recording is deleted, until will in described binary file storage to be deleted two
Till system record is deleted;
Write content sending module 1102, for sending in described binary file last to described SIM
Article one, before binary recording is deleted, store position all two after described binary recording to be deleted and enter
The storage content of system record and storage order;
Write indicating module 1103, for sending write instruction, wherein, said write to described SIM
Instruction be used for indicating described SIM to be deleted with described record to be deleted before in described binary file
Storage position be initial writing position, will all after described binary recording to be deleted of storage position
Binary recording, according to before being deleted in described binary file storage order from front to back, successively
Write described binary file.
Further, for having the data-removal apparatus of SIM, the embodiment of the present invention may be provided for one
Plant the two of SIM management platform, as shown in figure 12, including such as lower module:
Determine module 1201, for determining in SIM the binary file of storage is entered from the last item two
The binary recording bar number that system record is comprised to binary recording to be deleted;
Delete indicating module 1202, for sending and the binary recording bar number phase determined to described SIM
Indicating with the deletion of number, wherein, each described deletion instruction is used for indicating described SIM to enter described two
Current the last item binary recording of file processed is deleted;
Write indicating module 1203, for deleting the last item binary recording in described binary file
Except before, the storage position all binary recordings after binary recording to be deleted, according to from front to back
Storage order, one by one the storage content of this binary recording and the write for this binary recording are referred to
Show and be sent to SIM.
The function of above-mentioned each unit may correspond to the corresponding position in flow process shown in Fig. 3 to Fig. 4, Fig. 6 to Fig. 9
Reason step, does not repeats them here.
A kind of data-erasure method, equipment and the platform that the embodiment of the present invention provides, including: from binary system literary composition
In part, the last item binary recording of storage starts, and deletes by bar binary recording the most successively
Remove, until the binary recording to be deleted stored in binary file is deleted;Obtained by predetermined manner
Before the last item binary recording must being deleted, storage position owning after binary recording to be deleted
The storage content of binary recording and storage order;Before being deleted with record to be deleted in binary file
Storage position be initial writing position, by storage position all two entering after binary recording to be deleted
Record processed, according to before being deleted in binary file storage order from front to back, write two is entered successively
File processed.The data-erasure method that the embodiment of the present invention provides, the last item of storage from binary file
Binary recording starts, and deletes every binary recording the most successively, until by binary system literary composition
Till in part, the binary recording to be deleted of storage is deleted, the data-erasure method phase provided with prior art
Ratio, though delete occur during binary recording abnormal, owing to being from the last item binary recording
Start delete forward, present in binary file binary recording still can compact arrangement, do not have
The situation of redundant data is there is, it is ensured that binary file can solve between two effective binary recordings
Analysis.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive the present invention
Embodiment can be realized by hardware, it is also possible to the mode of the general hardware platform adding necessity by software is come real
Existing.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product
Come, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk,
Portable hard drive etc.) in, including some instructions with so that computer equipment (can be personal computer,
Server, or the network equipment etc.) perform the method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the mould in accompanying drawing
Block or flow process are not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in the device in embodiment can describe according to embodiment
Carry out being distributed in the device of embodiment, it is also possible to carry out respective change and be disposed other than one of the present embodiment
Or in multiple device.The module of above-described embodiment can merge into a module, it is also possible to is further split into
Multiple submodules.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention
Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and
Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.
Claims (16)
1. a data-erasure method, it is characterised in that including:
From binary file from the beginning of the last item binary recording of storage, the most successively by bar two
System record is deleted, until being deleted by the binary recording to be deleted of storage in described binary file is
Only;
Being obtained by predetermined manner before being deleted by described the last item binary recording, storage position is described
The storage content of all binary recordings after binary recording to be deleted and storage order;
Before being deleted with described record to be deleted, the storage position in described binary file is write for initial
Enter position, by the storage position all binary recordings after described binary recording to be deleted, according to quilt
Before deletion in described binary file storage order from front to back, write described binary system literary composition successively
Part.
2. the method for claim 1, it is characterised in that storing from binary file
A rear binary recording starts, and before deleting every binary recording the most successively, also wraps
Include:
Enter described binary file stores position all two after described binary recording to be deleted
Make the storage content of record, and the storage order that described all binary recordings are in binary file is carried out
Backup.
3. the method for claim 1, it is characterised in that described binary file is in SIM
The binary file of storage;
From the beginning of the last item binary recording of storage from binary file, the most successively to every
Before binary recording is deleted, also include:
Receive the deletion instruction that SIM management platform sends;
From binary file from the beginning of the last item binary recording of storage, the most successively to every two
System record is deleted, until being deleted by the binary recording to be deleted of storage in described binary file is
Only, specifically include:
Described SIM is according to the described deletion instruction received, the last item two of storage from binary file
System record starts, and deletes every binary recording the most successively, until by described binary system
Till in file, the binary recording to be deleted of storage is deleted.
4. the method for claim 1, it is characterised in that described binary file is in SIM
The binary file of storage;
From binary file from the beginning of the last item binary recording of storage, the most successively to every two
System record is deleted, until being deleted by the binary recording to be deleted of storage in described binary file is
Only, specifically include:
Whenever receive SIM management platform send by current the last item two of described binary file
The deletion instruction that system record carries out deleting, according to described delete instruction by described binary file current
A rear binary recording is deleted;
Wherein, described SIM management platform sends the described deletion instruction of predetermined number to described SIM,
Described predetermined number and described binary file are entered to described to be deleted two from the last item binary recording
The binary recording bar number that system record is comprised is equal.
5. the method for claim 1, it is characterised in that described binary file is in SIM
The binary file of storage;
Being obtained by predetermined manner before being deleted by described the last item binary recording, storage position is described
The storage content of all binary recordings after binary recording to be deleted and storage order, specifically include:
Before receiving described the last item binary recording deletion that SIM management platform sends, store position
The storage content of all binary recordings after described binary recording to be deleted and storage order;
Before being deleted with described record to be deleted, the storage position in described binary file is initial
Writing position, will store the position all binary recordings after described binary recording to be deleted, according to
Before Bei Shanchuing in described binary file storage order from front to back, write described binary system literary composition successively
Before part, also include:
Receive the write instruction that SIM management platform sends;
Before being deleted with described record to be deleted, the storage position in described binary file is write for initial
Enter position, by the storage position all binary recordings after described binary recording to be deleted, according to quilt
Before deletion in described binary file storage order from front to back, write described binary system literary composition successively
Part, specifically includes:
Described SIM is according to the said write instruction received, in institute before being deleted with described record to be deleted
The storage position stated in binary file is initial writing position, will store position at described binary system to be deleted
All binary recordings after record, according to before being deleted in described binary file from front to back
Storage order, writes described binary file successively.
6. the method for claim 1, it is characterised in that described binary file is in SIM
The binary file of storage;
Being obtained by predetermined manner before being deleted by described the last item binary recording, storage position is described
The storage content of all binary recordings after binary recording to be deleted and storage order;Delete with described waiting
Before being deleted except record, the storage position in described binary file is initial writing position, will store position
Put all binary recordings after described binary recording to be deleted, according to be deleted before described two
Storage order from front to back in binary file, writes described binary file successively, specifically includes:
Whenever receiving the binary recording that SIM management platform sends and the binary recording that will receive
When writing the write instruction of described binary file, indicate the binary recording that will receive according to said write
Write at the current end of described binary file;
Wherein, described SIM management platform in described binary file by described the last item binary system
Before record is deleted, the storage position all binary recordings after described binary recording to be deleted, press
According to storage order from front to back, by the storage content of this binary recording and remember for this binary system one by one
The write instruction of record is sent to described SIM.
7. a data-erasure method, it is characterised in that including:
Send to SIM and delete instruction,
Wherein, described deletion indicates the last item being used for indicating described SIM to store from binary file
Binary recording starts, and deletes every binary recording the most successively, until entering described two
Till in file processed, the binary recording to be deleted of storage is deleted;
Send in described binary file before the deletion of the last item binary recording to described SIM, storage
The storage content of the position all binary recordings after described binary recording to be deleted and storage order;
Write instruction is sent to described SIM,
Wherein, before said write instruction is used for indicating described SIM to be deleted with described record to be deleted
Storage position in described binary file is initial writing position, is entered described to be deleted two storage position
System record after all binary recordings, according to be deleted before in described binary file from front to back
Storage order, write described binary file successively.
8. a data-erasure method, it is characterised in that including:
Determine in SIM the binary file of storage is entered to be deleted two from the last item binary recording
The binary recording bar number that system record is comprised;
The deletion instruction with the binary recording bar number same number determined is sent to described SIM,
Wherein, each described delete instruction for indicate described SIM by described binary file current
A rear binary recording is deleted;
Before being deleted by the last item binary recording in described binary file, storage position is deleted waiting
Except all binary recordings after binary recording, according to storage order from front to back, one by one by this two
The storage content of system record and the write instruction for this binary recording are sent to SIM.
9. a data-removal apparatus, it is characterised in that including:
Removing module, from the beginning of the last item binary recording of storage from binary file, from backward
Before delete by bar binary recording successively, until will in described binary file storage to be deleted two
Till system record is deleted;
Writing module, before being obtained the deletion of described the last item binary recording by predetermined manner,
The storage content of the storage position all binary recordings after described binary recording to be deleted and storage
Sequentially;And before being deleted with described record to be deleted storage position in described binary file for
Beginning writing position, by the storage position all binary recordings after described binary recording to be deleted, presses
According to before being deleted in described binary file storage order from front to back, write described binary system successively
File.
10. equipment as claimed in claim 9, it is characterised in that also include: backup module;
Described backup module, enters for the last item two stored from binary file at described removing module
Record processed starts, before deleting every binary recording the most successively, by described binary system literary composition
Part stores the storage content of the position all binary recordings after described binary recording to be deleted, with
And the storage order that described all binary recordings are in binary file backs up.
11. equipment as claimed in claim 9, it is characterised in that described removing module, be additionally operable to from
In binary file, the last item binary recording of storage starts, the most successively to every binary system note
Before record is deleted, receive the deletion instruction that SIM management platform sends;
Described removing module, specifically for according to the described deletion instruction received, storing from binary file
The last item binary recording start, the most every binary recording is deleted, until
Till in described binary file, the binary recording to be deleted of storage is deleted;Wherein, described binary system literary composition
Part is the binary file of storage in SIM.
12. equipment as claimed in claim 9, it is characterised in that described removing module, specifically for often
When receiving being remembered by current the last item binary system of described binary file of SIM management platform transmission
Record carries out the deletion instruction deleted, and deletes instruction by current the last item of described binary file according to described
Binary recording is deleted;
Wherein, described SIM management platform sends the described deletion instruction of predetermined number to described SIM,
Described predetermined number and described binary file are entered to described to be deleted two from the last item binary recording
The binary recording bar number that system record is comprised is equal;Described binary file is that two stored in SIM enter
File processed.
13. equipment as claimed in claim 9, it is characterised in that said write module, specifically for connecing
Before receiving described the last item binary recording deletion that SIM management platform sends, storage position is described
The storage content of all binary recordings after binary recording to be deleted and storage order;And receive
The write instruction that SIM management platform sends;And according to the said write instruction received, delete with described waiting
Before being deleted except record, the storage position in described binary file is initial writing position, will store position
Put all binary recordings after described binary recording to be deleted, according to be deleted before described two
Storage order from front to back in binary file, writes described binary file successively;Described binary file
For the binary file of storage in SIM.
14. equipment as claimed in claim 9, it is characterised in that said write module, specifically for often
When receiving the binary recording of SIM management platform transmission and the binary recording received being write institute
When stating the write instruction of binary file, according to said write instruction, the binary recording received is write institute
State at the current end of binary file;
Wherein, described SIM management platform in described binary file by described the last item binary system
Before record is deleted, the storage position all binary recordings after described binary recording to be deleted, press
According to storage order from front to back, by the storage content of this binary recording and remember for this binary system one by one
The write instruction of record is sent to described SIM;Described binary file is the binary system of storage in SIM
File.
15. 1 kinds of SIM management platforms, it is characterised in that including:
Deleting indicating module, delete instruction for sending to SIM, wherein, described deletion instruction is used for referring to
From the beginning of showing the last item binary recording that described SIM stores from binary file, the most successively
Every binary recording is deleted, until by the binary system to be deleted note of storage in described binary file
Till record is deleted;
Write content sending module, for sending the last item two in described binary file to described SIM
Before system record is deleted, the storage position all binary recordings after described binary recording to be deleted
Storage content and storage order;
Write indicating module, for sending write instruction to described SIM, wherein, said write instruction is used
Storage in described binary file before indicating described SIM to be deleted with described record to be deleted
Position is initial writing position, by the storage position all binary systems after described binary recording to be deleted
Record, according to before being deleted in described binary file storage order from front to back, write institute successively
State binary file.
16. 1 kinds of SIM management platforms, it is characterised in that including:
Determine module, for determining in the binary file stored in SIM from the last item binary recording
The binary recording bar number comprised to binary recording to be deleted;
Delete indicating module, for sending and the binary recording bar number same number determined to described SIM
Deletion instruction, wherein, each described deletion instruction is used for indicating described SIM by described binary file
Current the last item binary recording delete;
Write indicating module, for deleting it in described binary file by the last item binary recording
Before, the storage position all binary recordings after binary recording to be deleted, according to depositing from front to back
Storage order, sends out the storage content of this binary recording and the write instruction for this binary recording one by one
Give SIM.
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 true CN105843807A (en) | 2016-08-10 |
CN105843807B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109643239A (en) * | 2016-09-02 | 2019-04-16 | 格马尔托股份有限公司 | The optimization of JAVA card application memory occupied space |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030158863A1 (en) * | 2002-02-15 | 2003-08-21 | International Business Machines Corporation | File system snapshot with ditto address feature |
US20040030727A1 (en) * | 2002-08-06 | 2004-02-12 | Philippe Armangau | Organization of multiple snapshot copies in a data storage system |
CN101206656A (en) * | 2006-12-22 | 2008-06-25 | 英业达股份有限公司 | File safety deletion system and method |
-
2015
- 2015-01-12 CN CN201510015245.6A patent/CN105843807B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030158863A1 (en) * | 2002-02-15 | 2003-08-21 | International Business Machines Corporation | File system snapshot with ditto address feature |
US20040030727A1 (en) * | 2002-08-06 | 2004-02-12 | Philippe Armangau | Organization of multiple snapshot copies in a data storage system |
CN101206656A (en) * | 2006-12-22 | 2008-06-25 | 英业达股份有限公司 | File safety deletion system and method |
Non-Patent Citations (1)
Title |
---|
王红亮等编著: "《Visual Basic 6.0程序设计》", 31 March 2011, 国防工业出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109643239A (en) * | 2016-09-02 | 2019-04-16 | 格马尔托股份有限公司 | The optimization of JAVA card application memory occupied space |
CN109643239B (en) * | 2016-09-02 | 2023-09-05 | 泰雷兹数字安全法国简易股份公司 | JAVA card application memory footprint optimization |
Also Published As
Publication number | Publication date |
---|---|
CN105843807B (en) | 2019-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107391544B (en) | Processing method, device and equipment of column type storage data and computer storage medium | |
CN107203331B (en) | Method and device for writing data | |
CN104243590A (en) | Resource object recommendation method and device | |
CN110413413A (en) | A kind of method for writing data, device, equipment and storage medium | |
CN103984644A (en) | Data management method and device | |
US11157456B2 (en) | Replication of data in a distributed file system using an arbiter | |
CN109783462B (en) | Data access method and device based on distributed file system | |
CN113190241B (en) | Method and device for expanding capacity of data partition, electronic equipment and storage medium | |
CN109144403B (en) | Method and equipment for switching cloud disk modes | |
CN111309799A (en) | Method, device and system for realizing data merging and storage medium | |
CN110019527B (en) | Slave library reading method, related device and equipment | |
CN105302501A (en) | Control method and device for disk sectors | |
CN108228611B (en) | Document information copying method and device | |
CN113407356A (en) | Data processing method and device, electronic equipment and storage medium | |
CN105843807A (en) | Data deleting method, device and platform | |
CN110658993A (en) | Snapshot rollback method, device, equipment and storage medium | |
US10168948B2 (en) | Replicating data in a data storage system | |
CN110866380A (en) | Method and terminal for filling in information field content | |
US10803109B2 (en) | Method and device for reading and writing video data in NAS device | |
CN105447043B (en) | Database and its data access method | |
CN103164526A (en) | Generation method and generation device of test report | |
CN111190549A (en) | Method, device, equipment and medium for acquiring available capacity of shared volume | |
CN111984598A (en) | High-performance metadata log file management method, system, medium and terminal | |
KR102372732B1 (en) | Electronic device performing emulation-based forensic analysis and method of performing forensic analysis using the same | |
CN111177091B (en) | Video pre-distribution storage method, system and storage medium based on XFS 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 |