CN109407974A - Electronic device, image deletion method and storage medium based on mixed meat and fish dishes binary code - Google Patents
Electronic device, image deletion method and storage medium based on mixed meat and fish dishes binary code Download PDFInfo
- Publication number
- CN109407974A CN109407974A CN201811095381.0A CN201811095381A CN109407974A CN 109407974 A CN109407974 A CN 109407974A CN 201811095381 A CN201811095381 A CN 201811095381A CN 109407974 A CN109407974 A CN 109407974A
- Authority
- CN
- China
- Prior art keywords
- file
- binary code
- picture
- fish dishes
- binary
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
- G06F3/0623—Securing storage systems in relation to content
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Storage Device Security (AREA)
Abstract
The invention proposes a kind of image deletion methods based on mixed meat and fish dishes binary code, this method comprises: coded treatment is carried out to the picture file for needing to delete in picture library, to generate corresponding binary system picture file;Meat and fish dishes compiling rule is mixed according to predetermined binary code, mixed meat and fish dishes compiling is carried out to the binary code of the binary system picture file, to obtain object binary code;The file under the object binary code to predetermined store path is loaded, the object binary code in the file is deleted under the store path.Can make delete picture file be not easy to restore, improve because disk leakage due to existing for security risk.In addition, the present invention also proposes a kind of electronic device and storage medium.
Description
Technical field
The present invention relates to picture safety deleting field more particularly to a kind of electronic devices, the figure based on mixed meat and fish dishes binary code
Piece delet method and storage medium.
Background technique
With the continuous development of network technology, people's lives are brought with very big convenience, but simultaneously also along with
The security risk of information leakage.Such as large-scale synthesis financial company, user is handling the various gold such as security, insurance, bank
When melting business, it usually needs submit such as: identity card picture, bank's flowing water inventory photo, medical case etc. are sensitive comprising user
The picture of information is used as OCR identification into predetermined disk.It is identified in OCR and then deletes picture.But disk
The picture of upper deletion can be resumed, once falling into undesirable's hand, then will lead to a large amount of sensitive data quilt of user
Leakage, causes unnecessary security risk to user.Therefore, how safety deleting user's sensitive data so that delete data
It can not restore to be a technical problem to be solved urgently.
Summary of the invention
In view of this, the present invention proposes a kind of electronic device, image deletion method and storage based on mixed meat and fish dishes binary code
Medium, can make delete picture file be not easy to restore, improve because disk leakage due to existing for security risk.
Firstly, to achieve the above object, the present invention proposes a kind of electronic device, the electronic device include memory and
The processor being connect with the memory, the processor be used for execute stored on the memory based on mixed meat and fish dishes binary code
Picture delete program, the picture based on mixed meat and fish dishes binary code, which is deleted, to be realized when program is executed by the processor and walks as follows
It is rapid:
A1, coded treatment is carried out to the picture file for needing to delete in picture library, to generate corresponding binary system picture text
Part;
A2, meat and fish dishes compiling rule is mixed according to predetermined binary code, to the binary code of the binary system picture file
Mixed meat and fish dishes compiling is carried out, to obtain object binary code;
File under A3, the load object binary code to predetermined store path, under the store path
Delete the object binary code in the file.
Preferably, the step A2 includes:
Determine the first character string of customized preset length, the first character string of the preset length is by multiple binary systems
Byte forms at random;
The binary code of the binary system picture file is subjected to deconsolidation process by byte, obtains multiple preset lengths
The second character string;
First character string is subjected to step-by-step and operation with each second character string respectively, to obtain object binary
Code.
Preferably, the step of the first character string of the determination customized preset length, comprising:
Obtain current system time;
The system time that will acquire carries out Greenwich conversion, to obtain the time corresponding Greenwich Mean Time;
A random number X is taken between 0 and current Greenwich Mean Time at random, with random number X divided by predefined
32 16 system character strings, to obtain remainder Y, remainder Y is the first character string of the preset length.
Preferably, the generating process of the default file folder under the predetermined store path includes:
The uplink time of the CRC32 value of picture file, the length of file and the file deleted needs splices;
Base62 calculating is done to spliced result;
MD5 code is carried out to calculated result, MD5 code is calculated;
MD5 code is converted to 32 16 system character strings;
The character that predetermined position is chosen from described 32 16 system character strings presss from both sides title as default file, described
This document folder is generated under predetermined store path.
Preferably, the CRC32 value of the picture file is 32 value of cyclic redundancy check of file, the figure deleted as needed
The currently stored path of piece file, CRC32 value, file size and the file uplink time of available picture file file.
In addition, to achieve the goals above, the present invention also proposes a kind of image deletion method based on mixed meat and fish dishes binary code,
Described method includes following steps:
S1, coded treatment is carried out to the picture file for needing to delete in picture library, to generate corresponding binary system picture text
Part;
S2, meat and fish dishes compiling rule is mixed according to predetermined binary code, to the binary code of the binary system picture file
Mixed meat and fish dishes compiling is carried out, to obtain object binary code;
File under S3, the load object binary code to predetermined store path, under the store path
Delete the object binary code in the file.
Preferably, the step S2 includes:
Determine the first character string of customized preset length, the first character string of the preset length is by multiple binary systems
Byte forms at random;
The binary code of the binary system picture file is subjected to deconsolidation process by byte, obtains multiple preset lengths
The second character string;
First character string is subjected to step-by-step and operation with each second character string respectively, to obtain object binary
Code.
Preferably, the step of the first character string of the determination customized preset length, comprising:
Obtain current system time;
The system time that will acquire carries out Greenwich conversion, to obtain the time corresponding Greenwich Mean Time;
A random number X is taken between 0 and current Greenwich Mean Time at random, with random number X divided by predefined
32 16 system character strings, and Y is taken the remainder, remainder Y is the first character string of the preset length.
Preferably, the generating process of the default file folder under the predetermined store path includes:
The uplink time of the CRC32 value of picture file, the length of file and the file deleted needs splices;
Base62 calculating is done to spliced result;
MD5 code is carried out to calculated result, MD5 code is calculated;
MD5 code is converted to 32 16 system character strings;
The character that predetermined position is chosen from described 32 16 system character strings presss from both sides title as default file, described
This document folder is generated under predetermined store path.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, described computer-readable
Storage medium is stored with the picture based on mixed meat and fish dishes binary code and deletes program, and the picture based on mixed meat and fish dishes binary code deletes journey
Sequence can be executed by least one processor, so that at least one described processor executes as described above based on mixed meat and fish dishes binary code
Image deletion method the step of.
Electronic device proposed by the invention, image deletion method and storage medium based on mixed meat and fish dishes binary code, pass through
Coded treatment is carried out to the picture file for needing to delete in picture library, to generate corresponding binary system picture file;According to preparatory
Determining binary code mixes meat and fish dishes compiling rule, mixed meat and fish dishes compiling is carried out to the binary code of the binary system picture file, to obtain
Object binary code;The file under the object binary code to predetermined store path is loaded, in the store path
The lower object binary code deleted in the file.The picture file deleted can be made to be not easy to restore, improved because disk is let out
Reveal and existing security risk.
Detailed description of the invention
Fig. 1 is the schematic diagram of the optional hardware structure of electronic device one proposed by the present invention;
Fig. 2 is the program module of the picture deletion program in one embodiment of electronic device of the present invention based on mixed meat and fish dishes binary code
Schematic diagram;
Fig. 3 is that the present invention is based on the implementation flow charts of the image deletion method preferred embodiment of mixed meat and fish dishes binary code.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection scope within.
As shown in fig.1, being the optional hardware structure schematic diagram of electronic device one proposed by the present invention.In the present embodiment,
Electronic device 10 may include, but be not limited only to, and connection memory 11, processor 12, net can be in communication with each other by communication bus 14
Network interface 13.It should be pointed out that Fig. 1 illustrates only the electronic device 10 with component 11-14, it should be understood that simultaneously
All components shown realistic are not applied, the implementation that can be substituted is more or less component.
Wherein, memory 11 includes at least a type of computer readable storage medium, computer readable storage medium
Including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), quiet
State random access storage device (SRAM), electrically erasable programmable read-only memory (EEPROM), can be compiled read-only memory (ROM)
Journey read-only memory (PROM), magnetic storage, disk, CD etc..In some embodiments, memory 11 can be electronics dress
Set 10 internal storage unit, such as the hard disk or memory of electronic device 10.In further embodiments, memory 11 can also be with
It is the outer packet storage device of electronic device 10, such as the plug-in type hard disk being equipped on electronic device 10, intelligent memory card (Smart
Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, it stores
Device 11 can also both including electronic device 10 internal storage unit and also including its outer packet storage device.In the present embodiment, storage
Device 11 is installed on the operating system and types of applications software of electronic device 10 commonly used in storage, such as based on mixed meat and fish dishes binary code
Picture delete program etc..It has exported or will export all kinds of in addition, memory 11 can be also used for temporarily storing
Data.
Processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.Processor 12 is commonly used in control electronic device 10
Overall operation.In the present embodiment, program code or processing data of the processor 12 for being stored in run memory 11, such as
The picture based on mixed meat and fish dishes binary code of operation deletes program etc..
Network interface 13 may include radio network interface or wired network interface, and network interface 13 is commonly used in filling in electronics
It sets and establishes communication connection between 10 and other electronic equipments.
Communication bus 14 is for realizing the communication connection between component 11-13.
Fig. 1 illustrates only the electronic device that the picture with component 11-14 and based on mixed meat and fish dishes binary code deletes program
10, it should be understood that it is not required for implementing all components shown, more or less groups of the implementation that can be substituted
Part.
Optionally, electronic device 10 can also include user interface (not shown in figure 1), and user interface may include display
Device, input unit such as keyboard, wherein user interface can also be including standard wireline interface and wireless interface etc..
Optionally, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch control type LCD and show
Device and OLED touch device etc..Further, display is alternatively referred to as display screen or display unit, for being shown in electronic device
Information is handled in 10 and for showing visual user interface.
Optionally, in some embodiments, electronic device 10 can also include that audio unit (does not show in audio unit Fig. 1
Out), audio unit can be in call signal reception pattern, call mode, logging mode, speech recognition mould in electronic device 10
When under the isotypes such as formula, broadcast reception mode, received or storage audio data is converted into audio signal;Further
Ground, electronic device 10 can also include audio output unit, and the audio signal that audio output unit converts audio unit exports,
And audio output unit can also provide the relevant audio output of specific function that executes to electronic device 10 (such as calling is believed
Number receive sound, message sink sound etc.), audio output unit may include loudspeaker, buzzer etc..
Optionally, in some embodiments, electronic device 10 can also include alarm unit (not shown), alarm list
Member can provide output and the generation of event is notified electron device 10.Typical event may include calling reception, message
Reception, key signals input, touch input etc..Other than audio or video export, alarm unit can be with different sides
Formula provides output with the generation of notification event.For example, alarm unit can provide output in the form of vibration, exhaled when receiving
Cry, message or it is some other can make electronic device 10 enter communication pattern when, alarm unit can provide tactile output (that is,
Vibration) to notify to user.
In one embodiment, the picture based on mixed meat and fish dishes binary code stored in memory 11 deletes program by processor 12
When execution, following operation is realized:
A1 carries out coded treatment to the picture file for needing to delete in picture library, to generate corresponding binary system picture text
Part;
Specifically, binary system processing is carried out to picture file, obtains the process of the corresponding binary code of picture file, at this
Field is the technology having been well known, and is not described in detail herein.It should be noted that in one embodiment of the invention, institute
It states and needs to consider following three factors to the scheme that the picture file for needing to delete in picture library carries out coded treatment:
1, versatility is good.For being applicable in the picture of specified scheme, the scheme of coding is required to cover all picture categories
Type meets the needs of different.The aspect that demand may include has: the need of coverage height, color value and transparency in different aspect
It asks down, encoding scheme can have good encoding efficiency.
2, compression ratio is high.In view of the time of processing and the data traffic of small consumption, encoding scheme be must be able to picture
Redundancy is compressed, to guarantee higher compression ratio.
3, coding is convenient.Due to usually requiring to execute a large amount of business in server end, it is contemplated that the calculating of server end
Ability, the coding that encoding scheme must can provide efficient stable are realized.In summary demand can choose shifting in the present embodiment
Network PNG is planted as encoding scheme, and on the one hand PNG solves the problems, such as that jpeg decompression algorithm is complicated, it is transparent not support, another
Aspect solves the problems, such as that GIF color value is few, it is translucent not support again, while the problem too small without the schemes such as BMP compression ratio.
In addition, there is mature existing algorithm to the coding of PNG.
A2 mixes meat and fish dishes compiling rule according to predetermined binary code, to the binary code of the binary system picture file
Mixed meat and fish dishes compiling is carried out, to obtain object binary code;
Specifically, in the present embodiment, the predetermined binary code compiling rule includes:
Determine the first character string of customized preset length, the first character string of the preset length is by multiple binary systems
Byte forms at random;
Specifically, in the present embodiment, the customized character string can be, the character string generated by UUID,
UUID is that the abbreviation UUID of Universally Unique Identifier (Universally Unique Identifier) is by one group of 32 digit
16 binary digits are constituted, and 32 16 binary digits of standard type packet of UUID are divided into five sections with hyphen, form 8-4-4-
32 characters of 4-12.Illustratively, in the present embodiment, customized first character string are as follows: 550e8400-e29b-
41d4-a716-446655440000。
The UUID needed it is possible to further output through the following two-step:
1, a UUID is got using the UUID algorithm of Java language standard
2, remove the middle scribing line "-" in UUID.Such as CD6A1906 or 918C135B etc..
The binary code of the binary system picture file is subjected to deconsolidation process by byte, obtains multiple preset lengths
The second character string;
First character string is subjected to step-by-step and operation with each second character string respectively, to obtain object binary
Code.
Further, the step of the first character string of the determination customized preset length, comprising:
Obtain current system time;
The system time that will acquire carries out Greenwich conversion, to obtain the time corresponding Greenwich Mean Time;
Specifically, the Greenwich Mean Time refers to the standard of the imperial Greenwich Observatory positioned at London suburb
Time.In the present embodiment, using 0 time zone where the interface of programming language and Greenwich, current system is calculated
Time corresponding Greenwich Mean Time can then calculate for example, current system time is " 2018/8/21 13:37:1 "
Current Greenwich Mean Time is " 1534829821;
A random number X is taken between 0 and current Greenwich Mean Time at random, with random number X divided by predefined
32 16 system character strings, and Y is taken the remainder, the remainder Y is the first character string of the preset length;It is understood that
It is that the range of Y is 00000000 to 11111111;
A3 is loaded in the default file folder under the object binary code to predetermined store path, in the storage
The object binary code in the default file folder is deleted under path.
Specifically, the generating process of the predetermined store path includes the following steps:
The uplink time of the CRC32 value of picture file, the length of file and the file deleted needs splices;
Base62 calculating is done to spliced result;
MD5 is carried out to calculated result, MD5 value is calculated;
MD5 value is converted to 32 16 system character strings;
The character that predetermined position is chosen from described 32 16 system character strings presss from both sides title as default file, described
This document folder is generated under predetermined store path.Specifically, the CRC32 value of the picture file is the cyclic redundancy of file
Verify (Cyclic Redundancy Check, abbreviation CRC) 32 values, the currently stored road for the picture file deleted as needed
These three values, are then stitched together by diameter, CRC32 value, file size and the file uplink time of available picture file
Base64 calculating is done, algorithm is as follows: Base64 (RC32+ file size+file uplink time).Then, by obtain it is several into
Row MD5 is calculated, and algorithm is as follows: MD5 (Base64 (RC32+ file size+file uplink time)).Finally by obtained file
MD5 value is converted to 16 systems, finally obtains the character string of 32 16 systems.
By above-mentioned thing embodiment it is found that electronic device proposed by the present invention, by the picture for needing to delete in picture library
File carries out coded treatment, to generate corresponding binary system picture file;Meat and fish dishes compiling rule are mixed according to predetermined binary code
Then, mixed meat and fish dishes compiling is carried out to the binary code of the binary system picture file, to obtain object binary code;Load the target
File under binary code to predetermined store path deletes the target two in the file under the store path
Ary codes.Can make delete picture file be not easy to restore, improve because disk leakage due to existing for security risk.
In addition, picture of the invention based on mixed meat and fish dishes binary code deletes function that program is realized according to its each section not
Together, it can be described with program module with the same function.It please refers to shown in Fig. 2, is one embodiment of electronic device of the present invention
In picture based on mixed meat and fish dishes binary code delete the program module schematic diagram of program.In the present embodiment, based on mixed meat and fish dishes binary code
Picture delete the difference of function that program is realized according to its each section, coding module 201, collector can be divided into
202 and removing module 203.By above description it is found that the so-called program module of the present invention is to refer to complete specific function
Series of computation machine program instruction section, delete program in electricity more suitable for describing picture based on mixed meat and fish dishes binary code than program
Implementation procedure in sub-device 10.The functions or operations step that the module 201-203 is realized is similar as above, herein not
It is described in detail again, illustratively, such as wherein:
Coding module 201 is used to carry out coded treatment to the picture file for needing to delete in picture library, corresponding to generate
Binary system picture file;
Collector 202 is used to mix meat and fish dishes compiling rule according to predetermined binary code, to the binary system picture text
The binary code of part carries out mixed meat and fish dishes compiling, to obtain object binary code;
Removing module 203 is used to load the file under the object binary code to predetermined store path,
The object binary code in the file is deleted under the store path.
In addition, the present invention also proposes a kind of image deletion method based on mixed meat and fish dishes binary code, please refer to shown in Fig. 3, institute
The image deletion method based on mixed meat and fish dishes binary code is stated to include the following steps:
S301 carries out coded treatment to the picture file for needing to delete in picture library, to generate corresponding binary system picture
File;
Specifically, binary system processing is carried out to picture file, obtains the process of the corresponding binary code of picture file, at this
Field is the technology having been well known, and is not described in detail herein.It should be noted that in one embodiment of the invention, institute
It states and needs to consider following three factors to the scheme that the picture file for needing to delete in picture library carries out coded treatment:
1, versatility is good.For being applicable in the picture of specified scheme, the scheme of coding is required to cover all picture categories
Type meets the needs of different.The aspect that demand may include has: the need of coverage height, color value and transparency in different aspect
It asks down, encoding scheme can have good encoding efficiency.
2, compression ratio is high.In view of the time of processing and the data traffic of small consumption, encoding scheme be must be able to picture
Redundancy is compressed, to guarantee higher compression ratio.
3, coding is convenient.Due to usually requiring to execute a large amount of business in server end, it is contemplated that the calculating of server end
Ability, the coding that encoding scheme must can provide efficient stable are realized.In summary demand can choose shifting in the present embodiment
Network PNG is planted as encoding scheme, and on the one hand PNG solves the problems, such as that jpeg decompression algorithm is complicated, it is transparent not support, another
Aspect solves the problems, such as that GIF color value is few, it is translucent not support again, while the problem too small without the schemes such as BMP compression ratio.
In addition, there is mature existing algorithm to the coding of PNG.
S302 mixes meat and fish dishes compiling rule according to predetermined binary code, to the binary system of the binary system picture file
Code carries out mixed meat and fish dishes compiling, to obtain object binary code;
Specifically, in the present embodiment, the predetermined binary code compiling rule includes:
Determine the first character string of customized preset length, the first character string of the preset length is by multiple binary systems
Byte forms at random;
Specifically, in the present embodiment, the customized character string can be, the character string generated by UUID,
UUID is that the abbreviation UUID of Universally Unique Identifier (Universally Unique Identifier) is by one group of 32 digit
16 binary digits are constituted, and 32 16 binary digits of standard type packet of UUID are divided into five sections with hyphen, form 8-4-4-
32 characters of 4-12.Illustratively, in the present embodiment, customized first character string are as follows: 550e8400-e29b-
41d4-a716-446655440000。
The UUID needed it is possible to further output through the following two-step:
1, a UUID is got using the UUID algorithm of Java language standard
2, remove the middle scribing line "-" in UUID.Such as CD6A1906 or 918C135B etc..
The binary code of the binary system picture file is subjected to deconsolidation process by byte, obtains multiple preset lengths
The second character string;
First character string is subjected to step-by-step and operation with each second character string respectively, to obtain object binary
Code.
Further, the step of the first character string of the determination customized preset length, comprising:
Obtain current system time;
The system time that will acquire carries out Greenwich conversion, to obtain the time corresponding Greenwich Mean Time;
Specifically, the Greenwich Mean Time refers to the standard of the imperial Greenwich Observatory positioned at London suburb
Time.In the present embodiment, using 0 time zone where the interface of programming language and Greenwich, current system is calculated
Time corresponding Greenwich Mean Time can then calculate for example, current system time is " 2018/8/21 13:37:1 "
Current Greenwich Mean Time is " 1534829821;
A random number X is taken between 0 and current Greenwich Mean Time at random, with random number X divided by predefined
32 16 system character strings, and Y is taken the remainder, the remainder Y is the first character string of the preset length;It is understood that
It is that the range of Y is 00000000 to 11111111;
S303 is loaded in the default file folder under the object binary code to predetermined store path, is deposited at this
The object binary code in the default file folder is deleted under storage path.
Specifically, the generating process of the predetermined store path includes the following steps:
The uplink time of the CRC32 value of picture file, the length of file and the file deleted needs splices;
Base62 calculating is done to spliced result;
MD5 is carried out to calculated result, MD5 value is calculated;
MD5 value is converted to 32 16 system character strings;
The character that predetermined position is chosen from described 32 16 system character strings presss from both sides title as default file, described
This document folder is generated under predetermined store path.Specifically, the CRC32 value of the picture file is the cyclic redundancy of file
Verify (Cyclic Redundancy Check, abbreviation CRC) 32 values, the currently stored road for the picture file deleted as needed
These three values, are then stitched together by diameter, CRC32 value, file size and the file uplink time of available picture file
Base64 calculating is done, algorithm is as follows: Base64 (RC32+ file size+file uplink time).Then, by obtain it is several into
Row MD5 is calculated, and algorithm is as follows: MD5 (Base64 (RC32+ file size+file uplink time)).Finally by obtained file
MD5 value is converted to 16 systems, finally obtains the character string of 32 16 systems.
By above-mentioned thing embodiment it is found that the picture proposed by the present invention based on mixed meat and fish dishes binary code is deleted, by picture
The picture file for needing to delete in library carries out coded treatment, to generate corresponding binary system picture file;According to predetermined
Binary code mixes meat and fish dishes compiling rule, mixed meat and fish dishes compiling is carried out to the binary code of the binary system picture file, to obtain target two
Ary codes;The file under the object binary code to predetermined store path is loaded, is deleted under the store path
Object binary code in the file.The picture file deleted can be made to be not easy to restore, improve and deposited because of disk leakage
Security risk.
In addition, the present invention also proposes a kind of computer readable storage medium, stored on the computer readable storage medium
There is the picture based on mixed meat and fish dishes binary code to delete program, the picture based on mixed meat and fish dishes binary code is deleted program and held by processor
Following operation is realized when row:
Coded treatment is carried out to the picture file for needing to delete in picture library, to generate corresponding binary system picture file;
Meat and fish dishes compiling rule is mixed according to predetermined binary code, the binary code of the binary system picture file is carried out
Mixed meat and fish dishes compiling, to obtain object binary code;
The file under the object binary code to predetermined store path is loaded, is deleted under the store path
Object binary code in the file.
The specific implementation process of computer readable storage medium of the present invention, with above-mentioned electronic device and based on mixed meat and fish dishes two into
The specific implementation process of the image deletion method of code processed is similar, and details are not described herein.
By above-mentioned analysis it is found that computer readable storage medium proposed by the present invention, by needing to delete in picture library
The picture file removed carries out coded treatment, to generate corresponding binary system picture file;It is mixed according to predetermined binary code
Meat and fish dishes compiling rule carries out mixed meat and fish dishes compiling to the binary code of the binary system picture file, to obtain object binary code;Load
File under the object binary code to predetermined store path, is deleted under the store path in the file
Object binary code.Can make delete picture file be not easy to restore, improve because disk leakage due to existing for security risk.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.The above is only of the invention excellent
Embodiment is selected, is not intended to limit the scope of the invention, it is all using made by description of the invention and accompanying drawing content etc.
Structure or equivalent process transformation are imitated, is applied directly or indirectly in other relevant technical fields, and is similarly included in the present invention
Scope of patent protection in.
Claims (10)
1. a kind of electronic device, which is characterized in that the electronic device includes memory and the processing that connect with the memory
Device, the processor are used to execute the picture based on mixed meat and fish dishes binary code stored on the memory and delete program, the base
It is deleted when program is executed by the processor in the picture of mixed meat and fish dishes binary code and realizes following steps:
A1, coded treatment is carried out to the picture file for needing to delete in picture library, to generate corresponding binary system picture file;
A2, meat and fish dishes compiling rule is mixed according to predetermined binary code, the binary code of the binary system picture file is carried out
Mixed meat and fish dishes compiling, to obtain object binary code;
File under A3, the load object binary code to predetermined store path, is deleted under the store path
Object binary code in the file.
2. electronic device as described in claim 1, which is characterized in that the step A2 includes:
Determine the first character string of customized preset length, the first character string of the preset length is by multiple binary system bytes
Random composition;
The binary code of the binary system picture file is subjected to deconsolidation process by byte, obtains the of multiple preset lengths
Two character strings;
First character string is subjected to step-by-step and operation with each second character string respectively, to obtain object binary code.
3. electronic device as claimed in claim 2, which is characterized in that the first character of the customized preset length of determination
The step of string, comprising:
Obtain current system time;
The system time that will acquire carries out Greenwich conversion, to obtain the time corresponding Greenwich Mean Time;
A random number X is taken between 0 and current Greenwich Mean Time at random, with random number X divided by predefined 32
16 system character strings, to obtain remainder Y, remainder Y be the preset length the first character string.
4. electronic device as described in claim 1, which is characterized in that the default file under the predetermined store path
The generating process of folder includes:
The uplink time of the CRC32 value of picture file, the length of file and the file deleted needs splices;
Base62 calculating is done to spliced result;
MD5 code is carried out to calculated result, MD5 code is calculated;
MD5 code is converted to 32 16 system character strings;
The character that predetermined position is chosen from described 32 16 system character strings presss from both sides title as default file, described preparatory
This document folder is generated under determining store path.
5. electronic device as claimed in claim 4, which is characterized in that the CRC32 value of the picture file is the circulation of file
32 value of redundancy check, the currently stored path for the picture file deleted as needed, the CRC32 of available picture file file
Value, file size and file uplink time.
6. a kind of image deletion method based on mixed meat and fish dishes binary code, which is characterized in that described method includes following steps:
S1, coded treatment is carried out to the picture file for needing to delete in picture library, to generate corresponding binary system picture file;
S2, meat and fish dishes compiling rule is mixed according to predetermined binary code, the binary code of the binary system picture file is carried out
Mixed meat and fish dishes compiling, to obtain object binary code;
File under S3, the load object binary code to predetermined store path, is deleted under the store path
Object binary code in the file.
7. the image deletion method as claimed in claim 6 based on mixed meat and fish dishes binary code, which is characterized in that the step S2 packet
It includes:
Determine the first character string of customized preset length, the first character string of the preset length is by multiple binary system bytes
Random composition;
The binary code of the binary system picture file is subjected to deconsolidation process by byte, obtains the of multiple preset lengths
Two character strings;
First character string is subjected to step-by-step and operation with each second character string respectively, to obtain object binary code.
8. the image deletion method as claimed in claim 7 based on mixed meat and fish dishes binary code, which is characterized in that the determination is made by oneself
The step of first character string of the preset length of justice, comprising:
Obtain current system time;
The system time that will acquire carries out Greenwich conversion, to obtain the time corresponding Greenwich Mean Time;
A random number X is taken between 0 and current Greenwich Mean Time at random, with random number X divided by predefined 32
16 system character strings, to obtain remainder Y, remainder Y be the preset length the first character string.
9. the image deletion method as claimed in claim 6 based on mixed meat and fish dishes binary code, which is characterized in that described to predefine
Store path under default file folder generating process include:
The uplink time of the CRC32 value of picture file, the length of file and the file deleted needs splices;
Base62 calculating is done to spliced result;
MD5 code is carried out to calculated result, MD5 code is calculated;
MD5 code is converted to 32 16 system character strings;
The character that predetermined position is chosen from described 32 16 system character strings presss from both sides title as default file, described preparatory
This document folder is generated under determining store path.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has based on mixed meat and fish dishes binary code
Picture deletes program, and the picture based on mixed meat and fish dishes binary code is deleted program and can be executed by least one processor, so that institute
State image deletion method based on mixed meat and fish dishes binary code of at least one processor execution as described in any one of claim 6-9
The step of.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811095381.0A CN109407974B (en) | 2018-09-19 | 2018-09-19 | Electronic device, picture deleting method based on mixed binary code and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811095381.0A CN109407974B (en) | 2018-09-19 | 2018-09-19 | Electronic device, picture deleting method based on mixed binary code and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109407974A true CN109407974A (en) | 2019-03-01 |
| CN109407974B CN109407974B (en) | 2022-05-20 |
Family
ID=65465033
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811095381.0A Active CN109407974B (en) | 2018-09-19 | 2018-09-19 | Electronic device, picture deleting method based on mixed binary code and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109407974B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112016900A (en) * | 2020-09-02 | 2020-12-01 | 中国平安财产保险股份有限公司 | Electronic policy information security management and control method and system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6507911B1 (en) * | 1998-07-22 | 2003-01-14 | Entrust Technologies Limited | System and method for securely deleting plaintext data |
| CN101587452A (en) * | 2008-05-22 | 2009-11-25 | 北京飞天诚信科技有限公司 | Method for recovering deleted data in computer by utilizing intelligent key equipment |
| CN103258167A (en) * | 2013-05-10 | 2013-08-21 | 广州杰赛科技股份有限公司 | Method for protecting png picture in handheld device |
| CN107239522A (en) * | 2017-05-26 | 2017-10-10 | 努比亚技术有限公司 | Picture storage method, equipment and computer-readable storage medium |
-
2018
- 2018-09-19 CN CN201811095381.0A patent/CN109407974B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6507911B1 (en) * | 1998-07-22 | 2003-01-14 | Entrust Technologies Limited | System and method for securely deleting plaintext data |
| CN101587452A (en) * | 2008-05-22 | 2009-11-25 | 北京飞天诚信科技有限公司 | Method for recovering deleted data in computer by utilizing intelligent key equipment |
| CN103258167A (en) * | 2013-05-10 | 2013-08-21 | 广州杰赛科技股份有限公司 | Method for protecting png picture in handheld device |
| CN107239522A (en) * | 2017-05-26 | 2017-10-10 | 努比亚技术有限公司 | Picture storage method, equipment and computer-readable storage medium |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112016900A (en) * | 2020-09-02 | 2020-12-01 | 中国平安财产保险股份有限公司 | Electronic policy information security management and control method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109407974B (en) | 2022-05-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103051733B (en) | Data downloading method, terminal and system | |
| CN112631924A (en) | Automatic testing method and device, computer equipment and storage medium | |
| CN108762956B (en) | Method for acquiring Native local data, server, mobile terminal and storage medium | |
| CN112860662A (en) | Data blood relationship establishing method and device, computer equipment and storage medium | |
| WO2018113725A1 (en) | Method and device for loading picture resource, and program and medium | |
| CN105045676B (en) | A kind of restoration methods of the loss data based on SQLite databases | |
| CN113296987B (en) | Interface calling method and device for calling module, computer equipment and storage medium | |
| CN112965721B (en) | Project compiling method and device based on Android, computer equipment and storage medium | |
| CN115809241A (en) | Data storage method, device, computer equipment and storage medium | |
| CN113873450B (en) | Short message configuration method, device, computer equipment and storage medium | |
| JP4062519B2 (en) | Tag grouping system, tag grouping method | |
| CN109359260B (en) | Network page change monitoring method, device, equipment and medium | |
| CN109407974A (en) | Electronic device, image deletion method and storage medium based on mixed meat and fish dishes binary code | |
| CN112817782B (en) | Data acquisition reporting method and device, electronic equipment and storage medium | |
| CN110365806A (en) | Network address conversion method and device | |
| CN110471896A (en) | A kind of data processing method, system and server | |
| CN110533133A (en) | Handle the method, apparatus and terminal of two dimensional code | |
| CN116737399A (en) | Distributed lock implementation method, device, computer equipment and storage medium | |
| CN108228708B (en) | Big data ETL system and scheduling method thereof | |
| CN112118307B (en) | Method for downloading equipment data | |
| CN111240679B (en) | Page development method and system | |
| CN116070600A (en) | Rich text editing method and device, storage medium and computer equipment | |
| CN114996617A (en) | H5 data uploading method, device, computer equipment and medium based on originality | |
| CN115567685B (en) | Image transmission method, device, image processing chip, main control chip and equipment | |
| CN113836335A (en) | Thumbnail display method and device, electronic equipment and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |