The content of the invention
In consideration of it, the present invention provides a kind of encryption and decryption method of electronic image, device and equipment, existing electronics is solved
Equipment lacks the technical problem effectively protected to the privacy and security of electronic image.
According to an embodiment of the invention, there is provided a kind of encryption method of electronic image, including:Obtain electronic image;To institute
State electronic image and carry out Fuzzy Processing, obtain the difference of blurs image data and the blurs image data and the electronic image
View data;Obtain the fingerprint characteristic of user's finger;And the difference image data is added by the fingerprint characteristic
It is close.
Preferably, further include the difference image data is encrypted after step by fingerprint characteristic:By described in
Electronic image is shown as the blurred picture of blurs image data.
According to still another embodiment of the invention, there is provided a kind of decryption method of electronic image, the electronic image include original
Blurs image data of the beginning image through Fuzzy Processing and the blurs image data of encrypting fingerprint and the electronic image
Difference image data, the decryption method include:Obtain the fingerprint characteristic of user's finger and carry out fingerprint authentication;Work as fingerprint authentication
The difference image data of encrypting fingerprint is decrypted during success;And by the difference image data of decryption and institute
State blurs image data and carry out synthesis processing to reduce the electronic image.
Preferably, further included after the reduction electronic image step:The fingerprint characteristic of detection user's finger is adopted
Collection state;And when failing to detect the fingerprint characteristic of user's finger, remove the difference image data and the reduction of decryption
The electronic image.
Another embodiment according to the present invention, there is provided a kind of guard method of electronic image, including above-mentioned electronic image
Encryption method and/or above-mentioned electronic image decryption method.
According to another embodiment of the present invention, there is provided a kind of encryption device of electronic image, including:Acquiring unit, is used for
Obtain electronic image;Fuzzy Processing unit, the electronic image for being obtained to the acquiring unit carry out Fuzzy Processing, obtain mould
Paste the difference image data of view data and the blurs image data and the electronic image;Fingerprint acquiring unit, for obtaining
Take the fingerprint characteristic of user's finger;And encryption unit, for the fingerprint characteristic that is obtained by the fingerprint acquiring unit to institute
Difference image data is stated to be encrypted.
Preferably, the encryption device of the electronic image further includes display unit, for the electronic image to be shown as
The blurred picture of blurs image data.
According to still another embodiment of the invention, there is provided a kind of decryption device of electronic image, the electronic image include original
Blurs image data of the beginning image through Fuzzy Processing and the blurs image data of encrypting fingerprint and the electronic image
Difference image data, the decryption device of the electronic image include:Fingerprint acquiring unit, the fingerprint for obtaining user's finger are special
Sign;Fingerprint authentication unit, the fingerprint characteristic for being obtained to the fingerprint acquiring unit carry out fingerprint authentication;Decryption unit, is used
The difference image data of encrypting fingerprint is decrypted when when fingerprint authentication unit fingerprint authentication success;And synthesis
Reduction unit, the difference image data and the blurs image data for the decryption unit to be decrypted are carried out at synthesis
Manage to reduce the electronic image.
Preferably, the decryption device of the electronic image further includes:Detection unit, the fingerprint for detecting user's finger are special
Levy acquisition state;And unit is removed, for when the detection unit fails to detect the fingerprint characteristic of user's finger, removing
The difference image data of decryption and the electronic image of reduction.
Another embodiment according to the present invention, there is provided a kind of protection system of electronic image, including above-mentioned electronic image
Encryption device and/or above-mentioned electronic image decryption device.
Encryption and decryption method, device and the equipment of electronic image provided by the invention, pass through Fuzzy Processing by electronic image
Blurs image data and difference image data are obtained, and the fingerprint characteristic for obtaining user adds the difference image data
It is close, electronic image is shown as to the blurred picture of blurs image data, avoids other people from being directly viewable and obtain the clearly electricity
Subgraph, only could decrypt the difference image data by finger print identification verification and synthesize original electronic image, realize
Safeguard protection to electronic image information and privacy, improves the security and privacy of electronic image.
Embodiment
Make further more detailed description to technical scheme with reference to the accompanying drawings and detailed description.It is aobvious
So, described embodiment is only the part of the embodiment of the present invention, instead of all the embodiments.Based in the present invention
Embodiment, those of ordinary skill in the art's all other embodiments obtained on the premise of creative work is not made,
The scope of protection of the invention should all be belonged to.
In the description of the present invention, it is to be understood that term " first ", " second " etc. are only used for description purpose, without
It is understood that to indicate or implying relative importance.In the description of the present invention, it is necessary to which explanation, provides unless otherwise clear and definite
And restriction, term " connected ", " connection " should be interpreted broadly, for example, it may be fixedly connected or be detachably connected,
Or it is integrally connected;Can mechanically connect or be electrically connected;It can be directly connected, intermediary can also be passed through
It is indirectly connected.For the ordinary skill in the art, concrete condition can be combined and understands above-mentioned term in the present invention
Concrete meaning.In addition, in the description of the present invention, unless otherwise indicated, " multiple " are meant that two or more.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include
Module, fragment or the portion of the code of the executable instruction of one or more the step of being used for realization specific logical function or process
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic at the same time in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Fig. 1 is the flow diagram of the encryption method of electronic image in one embodiment of the invention, as shown in the figure, the electricity
The encryption method of subgraph, including:
Step S101:Obtain electronic image.
Wherein, the acquisition of the electronic image can be taken pictures by the photographing unit of electronic equipment obtains or leads to
Cross data cable, cable network or wireless network and obtained from other electronic equipments with transmission or downloading mode.Obtaining the electricity
After subgraph, can temporarily it store it in the internal storage, external memory storage or flash memory of electronic equipment, the electricity
Subgraph can be the picture of electronic equipment check, the picture format that software for editing or application can be checked and edited.
Step S102:Fuzzy Processing is carried out to the electronic image, obtains blurs image data and the blurred picture number
According to the difference image data with the electronic image.
Specifically, carrying out Fuzzy Processing to the electronic image by image fuzzy algorithmic approach obtains blurs image data, institute
It can be Gaussian Blur algorithm or other fuzzy algorithmic approaches to state image fuzzy algorithmic approach.After Fuzzy Processing, by the electronic image
Carry out subtraction algorithm computing with the blurs image data and obtain difference image data, and by the header file of the electronic image,
The blurs image data and the difference image data are stored together.
The difference image data of the electronic image and the blurs image data are closed by composition algorithm
Into that can reduce the electronic image, the subtraction rule of the subtraction algorithm and the composition rule of composition algorithm are corresponding.
Step S103:Obtain the fingerprint characteristic of user's finger.
Specifically, the finger fingertip that user is directly gathered by the fingerprint sensor of electronic equipment obtains fingerprint image, so
The fingerprint image is pre-processed by fingerprint algorithm afterwards, image enhancement, the processing extraction such as refinement and binaryzation can be unique
Property represents the fingerprint characteristic of user biological feature.
Step S104:The difference image data is encrypted by the fingerprint characteristic.
Specifically, logic or arithmetic operator one key of generation are carried out by the fingerprint characteristic, then using described close
Key is encrypted the difference image data by Encryption Algorithm, and the Encryption Algorithm can be that DES algorithms, MD5 or RSA are calculated
Method.After being encrypted, the image viewing or software for editing of electronic equipment can not directly read or adjust the difference image data
With the difference image data, so the electronic image is shown as the blurred picture of blurs image data, avoid other people direct
Clearly electronic image is checked and obtained, the encipherment protection to electronic image information and privacy is realized, improves electronic image
Security and privacy.
In the present embodiment, electronic image is obtained into blurs image data and difference image data by Fuzzy Processing, and
The difference image data is encrypted in the fingerprint characteristic for obtaining user, and electronic image is shown as to the mould of blurs image data
Image is pasted, avoids other people from being directly viewable and obtain the clearly electronic image, is realized to electronic image information and privacy
Encipherment protection, improves the security and privacy of electronic image.
It is understood that when needing to view or edit clearly electronic image, again may be by decipherment algorithm makes
The encrypted difference image data is decrypted with the fingerprint characteristic of user, then by the difference image data of decryption
Clearly electronic image is reduced into by composition algorithm synthesis with the blurs image data.
Fig. 2 is the flow diagram of the decryption method of electronic image in another embodiment of the invention.The electronic image
Including blurs image data of the original image through Fuzzy Processing and the blurs image data of encrypting fingerprint and the electronics
The difference image data of image.As shown in the figure, the decryption method of the electronic image provided in an embodiment of the present invention, including:
Step S201:Obtain the fingerprint characteristic of user's finger and carry out fingerprint authentication.
Wherein, the acquisition of the fingerprint characteristic of the user's finger is obtained by the fingerprint sensor of electronic equipment.Tool
Body, when needing to view or edit clearly electronic image, the finger fingertip that user uses when can be by preceding encryption presses
On the fingerprint collecting window of the fingerprint sensor, the fingerprint sensor obtains the fingerprint image of user's finger, Ran Houtong
The fingerprint characteristic that fingerprint algorithm extraction represents user biological feature is crossed, and itself and default fingerprint template are subjected to fingerprint similarity
Matching.When the similarity of the fingerprint characteristic and fingerprint template of extraction exceedes predetermined threshold value, then the fingerprint matching is judged
Success, user fingerprints authentication success;When the not up to default threshold of the similarity of the fingerprint characteristic and fingerprint template of extraction
During value, then the fingerprint matching failure is judged, user fails to pass through finger print identification verification.The fingerprint template can be that electronics is set
The standby fingerprint characteristic generation or user obtained in encrypting fingerprint is repeatedly adopted by the fingerprint sensor of electronic equipment
Collection fingerprint characteristic previously generates.
Step S202:The difference image data of encrypting fingerprint is decrypted when fingerprint authentication success.
Specifically, when user finger print identification verification by after, take the fingerprint encryption when the key that generates, then using institute
State key the difference image data of encrypting fingerprint is decrypted by decipherment algorithm, obtain the differential chart of decryption
As data.The decipherment algorithm is corresponding with Encryption Algorithm.
Subscriber authentication failure is judged when the fingerprint authentication fails, will not continue to the encrypted difference
Operation is decrypted in view data, so the electronic image is shown as the blurred picture of the blurs image data, it is illegal to use
Clearly electronic image can not be checked and obtained in family, improve the security and privacy of electronic image.
Step S203:The difference image data of decryption and the blurs image data are subjected to synthesis processing to reduce
The electronic image.
Specifically, after the difference image data of decryption is obtained, it is passed through into figure with the blurs image data
As composition algorithm carries out synthesis processing, to reduce the electronic image, the electronic image of the reduction can pass through electronic equipment
Image viewing or editor element clearly display.
In the present embodiment, electronic image is obtained into blurs image data and difference image data by Fuzzy Processing, and
The difference image data is encrypted in the fingerprint characteristic for obtaining user, and electronic image is shown as to the mould of blurs image data
Image is pasted, avoids other people from being directly viewable and obtain the clearly electronic image, could only be decrypted by finger print identification verification
The difference image data and synthesize go back original electronic image, realize the safeguard protection to electronic image information and privacy, improve
The security and privacy of electronic image.
Fig. 3 is the flow diagram of the decryption method of electronic image in further embodiment of the present invention.The present embodiment provides
Electronic image decryption method, further comprise on the basis of the reduction electronic image step of above-described embodiment:
Step S301:Detect the fingerprint characteristic acquisition state of user's finger.
Specifically, after the electronic image is reduced, continue to detect user's finger pressing fingerprint by fingerprint sensor
The fingerprint characteristic acquisition state of acquisition window.
Step S302:When failing to detect the fingerprint characteristic of user's finger, the difference image data of decryption is removed
With the electronic image of reduction.
Detect that user's finger finger tip leaves fingerprint collecting window and fails to detect the fingerprint of user's finger specifically, working as
During feature, the difference image data of decryption and the electronic image of reduction are removed;When detect user's finger finger tip by
When pressing fingerprint collecting window and can detect the fingerprint characteristic of user's finger, retain the difference image data and the reduction of decryption
The electronic image.
In the present embodiment, only continue to press fingerprint collecting window, ability by the real user of finger print identification verification
Check and obtain the electronic image clearly reduced, it is ensured that be that user checks electronic image and edit operation;And
When finger fingertip is left fingerprint collecting window by user, the difference image data of decryption and the electronic image of reduction will
It is removed, so can effectively avoid user and checked and obtained easily reduction by other people after fingerprint is decrypted and goes back original electronic image
Electronic image, realize the protection to electronic image information and personal secrets, improve the security and privacy of electronic image
Property.
Fig. 4 is the structure diagram of the encryption device 10 of electronic image in another embodiment of the present invention.As shown in the figure, this reality
The encryption device 10 of the electronic image of example offer, including acquiring unit 101, Fuzzy Processing unit 102, fingerprint acquiring unit are provided
103 and encryption unit 104.
The acquiring unit 101, for obtaining electronic image.The acquiring unit 101, can be taking pictures for electronic equipment
Unit or by data cable, cable network or wireless network from other electronic equipments to transmit or downloading mode obtains
Take the application program of electronic image.After the acquiring unit 101 obtains electronic image, electronic equipment can be temporarily stored it in
In internal storage, external memory storage or flash memory, the electronic image can be that the picture of electronic equipment is checked, edited
The picture format that software or application can be checked and edited.
The Fuzzy Processing unit 102, the electronic image for being obtained to the acquiring unit 101 carry out Fuzzy Processing,
Obtain the difference image data of blurs image data and the blurs image data and the electronic image.Specifically, the mould
Paste processing unit 102 and carry out Fuzzy Processing acquisition blurs image data to the electronic image by image fuzzy algorithmic approach, it is described
Image fuzzy algorithmic approach can be Gaussian Blur algorithm or other fuzzy algorithmic approaches.The Fuzzy Processing unit 102 Fuzzy Processing it
Afterwards, the electronic image and the blurs image data are subjected to subtraction algorithm computing and obtain difference image data, and by described in
The header file of electronic image, the blurs image data and the difference image data are stored together.By the electronic image
The difference image data and the blurs image data synthesis is carried out by composition algorithm and can reduce the electronic image,
The subtraction rule of the subtraction algorithm and the composition rule of composition algorithm are corresponding.
Fingerprint acquiring unit 103, for obtaining the fingerprint characteristic of user's finger.Specifically, the fingerprint acquiring unit 103
For the fingerprint sensor of electronic equipment, the finger fingertip that can directly gather user obtains fingerprint image, then passes through fingerprint algorithm
The fingerprint image is pre-processed, image enhancement, the processing extraction such as refinement and binaryzation can uniqueness represent user biological
The fingerprint characteristic of feature.
Encryption unit 104, for the fingerprint characteristic that is obtained by the fingerprint acquiring unit 103 to the error image number
According to being encrypted.Specifically, the encryption unit 104 carries out logic by the fingerprint characteristic or arithmetic operator generation one is close
Key, is then encrypted the difference image data by Encryption Algorithm using the key, the Encryption Algorithm can be
DES algorithms, MD5 or RSA Algorithm.The difference image data by the encryption unit 104 after being encrypted, the image of electronic equipment
The difference image data can not be directly read or call by viewing or editing software, so the electronic image is shown as fuzzy
The blurred picture of view data, avoids other people from being directly viewable and obtain clearly electronic image, realizes to electronic image information
And the protection of personal secrets, improve the security and privacy of electronic image.
Preferably, the encryption device 10 of the electronic image may also include display unit, for the electronic image to be shown
It is shown as the blurred picture of blurs image data.
In the encryption device 10 of the electronic image of the present embodiment, the Fuzzy Processing unit 102 is by electronic image
Blurs image data and difference image data are obtained by Fuzzy Processing, the fingerprint acquiring unit 103 obtains the fingerprint of user
Feature, the encryption unit 104 are encrypted the difference image data by the fingerprint characteristic, electronic image are shown
For the blurred picture of blurs image data, avoid other people from being directly viewable and obtain the clearly electronic image, realize to electricity
The safeguard protection of subgraph information and privacy, improves the security and privacy of electronic image.
Fig. 5 is the structure diagram of the decryption device of electronic image in further embodiment of this invention.The electronic image bag
Include blurs image data of the original image through Fuzzy Processing and the blurs image data of encrypting fingerprint and the electronic chart
The difference image data of picture.As shown in the figure, the decryption device 20 of the electronic image includes fingerprint acquiring unit 201, fingerprint inspection
Demonstrate,prove unit 202, decryption unit 203 and synthesis reduction unit 204.
The fingerprint acquiring unit 201, for obtaining the fingerprint characteristic of user's finger.Specifically, the fingerprint obtains list
Member 201 is the fingerprint sensor of electronic equipment, and the finger fingertip that can directly gather user obtains fingerprint image, then passes through fingerprint
The processing such as algorithm pre-processes the fingerprint image, image enhancement, refinement and binaryzation extraction can uniqueness represent user
The fingerprint characteristic of biological characteristic.
The fingerprint authentication unit 202, the fingerprint characteristic for being obtained to the fingerprint acquiring unit 201 carry out fingerprint inspection
Card.Specifically, when needing to view or edit clearly electronic image, the fingerprint acquiring unit 201 can obtain the finger of user
Print image and the fingerprint characteristic that user biological feature is represented by fingerprint algorithm extraction.The fingerprint authentication unit 202, will extract
Fingerprint characteristic and default fingerprint template carry out fingerprint similarity mode.When the fingerprint characteristic and fingerprint template of extraction
When similarity exceedes predetermined threshold value, the fingerprint authentication unit 202 judges the fingerprint matching success, user fingerprints authentication
Success;When the similarity of the fingerprint characteristic and fingerprint template of extraction is not up to predetermined threshold value, the fingerprint authentication unit
202 judge the fingerprint matching failure, and user fails to pass through finger print identification verification.The fingerprint template can be by the finger
The fingerprint characteristic generation or user for the user's finger that line acquiring unit 201 obtains is passed by the fingerprint of electronic equipment
Sensor multi collect fingerprint characteristic previously generates.
The decryption unit 203, for when 202 fingerprint authentication of fingerprint authentication unit success when, to encrypting fingerprint
The difference image data be decrypted.When the fingerprint authentication unit 202 verification user Fingerprint Identity by after, it is described
Decryption unit 203 take the fingerprint encryption when the key that generates, then using the key by decipherment algorithm to encrypting fingerprint
The difference image data be decrypted, obtain the difference image data of decryption.The solution of the decryption unit 203
Close algorithm is corresponding with Encryption Algorithm.
When 202 fingerprint authentication of fingerprint authentication unit fails, judge subscriber authentication failure, will not continue to pair
Operation is decrypted in the encrypted difference image data, so the electronic image is shown as the blurs image data
Blurred picture, disabled user can not check and obtain clearly electronic image, improve the security and privacy of electronic image.
The synthesis reduction unit 204, for the difference image data of decrypting the decryption unit 203 and described
Blurs image data carries out synthesis processing to reduce the electronic image.Specifically, decrypted from the decryption unit 203
The difference image data after, the synthesis reduction unit 204 synthesizes itself and the blurs image data by image
Algorithm carries out synthesis processing, and to reduce the electronic image, the electronic image of the reduction can pass through the image of electronic equipment
Element is viewed or edited to clearly display.
Preferably, the decryption device 20 of the electronic image further includes display unit, for when the fingerprint authentication unit
The electronic image is shown as the blurred picture of the blurs image data by 202 fingerprint authentications when failing.
In the decryption device 20 of the electronic image of the present embodiment, the fingerprint authentication unit 202 is in Fingerprint Identity
The decryption unit 203 could decrypt the difference image data of encrypting fingerprint when being verified, and pass through the synthesis
Original electronic image is gone back in the synthesis of reduction unit 204, is realized the safeguard protection to electronic image information and privacy, is improved electronic chart
The security and privacy of picture.
Fig. 6 is the structure diagram of the decryption device of electronic image in yet another embodiment of the invention.As shown in the figure, above-mentioned
On the basis of embodiment, the decryption device 20 of electronic image provided in an embodiment of the present invention further comprises 205 He of detection unit
Remove unit 206.
The detection unit 205, for detecting the fingerprint characteristic acquisition state of user's finger.Specifically, in the synthesis
After reduction unit 204 reduces the electronic image, the detection unit 205 continues to detect user's finger by fingerprint sensor
Press the fingerprint characteristic acquisition state of fingerprint collecting window.
The removal unit 206, for when the detection unit 205 fails to detect the fingerprint characteristic of user's finger,
Remove the difference image data of decryption and the electronic image of reduction.Specifically, when detect user's finger finger tip from
When opening fingerprint collecting window and failing to detect the fingerprint characteristic of user's finger, the unit 206 that removes removes the described of decryption
Difference image data and the electronic image of reduction;It can be detected when detecting user's finger fingertip depression fingerprint collecting window
To user's finger fingerprint characteristic when, it is described remove unit 206 retain decryption the difference image data and reduction it is described
Electronic image.
In the present embodiment, by detection unit and remove unit, only by the real user of finger print identification verification after
Continuous pressing fingerprint collecting window, just can check and obtain the electronic image clearly reduced, it is ensured that be user to electronic chart
Picture is checked and edit operation;And when finger fingertip is left fingerprint collecting window by user, the differential chart of decryption
As data and the electronic image of reduction will be removed, it so can effectively avoid user and decrypt and go back quilt after original electronic image in fingerprint
Other people check and obtain easily the electronic image of reduction, realize the safeguard protection to electronic image information and privacy, improve
The security and privacy of electronic image.
Further embodiment of this invention also provides a kind of guard method of electronic image, the guard method bag of the electronic image
Include the encryption method of above-mentioned electronic image and/or the decryption method of electronic chart, the encryption method of the electronic image and decryption
Method can be used alone information and the personal secrets protection realized to electronic image, can also be used in combination with lifting electronics
The security and privacy of image.
Correspondingly, further embodiment of this invention also provides a kind of electronic equipment, and the electronic equipment includes above-mentioned electronics
The encryption device of image and/or the decryption device of electronic chart, the encryption device and decryption device of the electronic image can be independent
The information and personal secrets of electronic image are protected using realization, the security of lifting electronic image can also be used in combination with
And privacy.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage
Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description such as example " or " some examples " means to combine the embodiment or example particular features, structures, materials, or characteristics described
It is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms differs
Surely identical embodiment or example are referred to.Moreover, particular features, structures, materials, or characteristics described can be any
Combined in an appropriate manner in one or more embodiments or example.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not
In the case of departing from the principle of the present invention and objective a variety of change, modification, replacement and modification can be carried out to these embodiments, this
The scope of invention is limited by claim and its equivalent.