CN101639928A - Image data encryption and decryption method and system thereof - Google Patents

Image data encryption and decryption method and system thereof Download PDF

Info

Publication number
CN101639928A
CN101639928A CN200910023657A CN200910023657A CN101639928A CN 101639928 A CN101639928 A CN 101639928A CN 200910023657 A CN200910023657 A CN 200910023657A CN 200910023657 A CN200910023657 A CN 200910023657A CN 101639928 A CN101639928 A CN 101639928A
Authority
CN
China
Prior art keywords
image data
image
hyaline layer
password
decryption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910023657A
Other languages
Chinese (zh)
Inventor
陈淮琰
张国颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Besta Xian Co Ltd
Original Assignee
Inventec Besta Xian Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Besta Xian Co Ltd filed Critical Inventec Besta Xian Co Ltd
Priority to CN200910023657A priority Critical patent/CN101639928A/en
Publication of CN101639928A publication Critical patent/CN101639928A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an image data encryption and decryption method and a system thereof. When the method carries out encryption, an afa channel layer of image data is set to be opaque and is matched with a password input by a user, in the condition of non decryption, only single-color images are displayed when a portable electronic device displays encrypted image data, thereby achieving the effect of encryption. When in decryption, the password input by a user is firstly determined to be right or not, if right, the image transparent layer of encrypted image data is set to be transparent, therefore the image data can be displayed normally.

Description

Image data encryption and decryption method and system thereof
Technical field
The present invention relates to a kind of image data encryption and decryption method and system thereof, especially a kind of transparent attribute that changes picture reaches the image data encryption and decryption method and the system thereof of cipher round results.
Background technology
At present, the data security in the portable electronic devices comes into one's own gradually, and more and more users need encrypt image file, in order to avoid portable electronic devices is when losing, the image of storage is watched easily by the people.Traditional image file encryption method is that image file compresses and encrypts, or the loose-leaf binder integral body of stored image file is compressed and encrypted.Yet the inconvenient user of the method for background technology has little significance to the image file encipherment protection to the management of image file, and the processing of compression and encryption is a great computational burden to portable electronic devices.Therefore, how taking into account the security and the operation practicality that improve the image file encryption on portable electronic devices is a problem extremely to be solved.
Summary of the invention
The above-mentioned technical matters of the present invention for existing in the solution background technology, and a kind of image data encryption and decryption method and system thereof are proposed.
Technical solution of the present invention is: the present invention is a kind of image data encryption and decryption method, and its special character is: this method comprises the following step:
1) when image data is encrypted, the image hyaline layer of image data is set at opaque, produce and encrypted image data, and input the corresponding password of having encrypted image data by the user;
2) when encrypting image data and be decrypted, receive the input password, and judge whether the input password meets with the corresponding password of having encrypted image data, if the image hyaline layer that then will encrypt image data is set at transparent or removes the image hyaline layer.
Ah method's channel that above-mentioned image hyaline layer is an image data.
Above-mentioned steps 1) in, during as if image data askiatic hyaline layer, then in image data, add the image hyaline layer, and the setting of image hyaline layer is opaque.
A kind of image data encryption and decryption system, its special character is: this system comprises: the password input block; Ciphering unit, setting of image hyaline layer are opaque; Decryption unit, it is transparent establishing described fixing hyaline layer; Password comparing unit and the storage element that stores image data; The password input block is connected with the password comparing unit, and password comparing unit, ciphering unit and decryption unit are connected with storage element respectively;
Wherein, when image data was encrypted, ciphering unit was set at the image hyaline layer of image data opaque, had encrypted image data to produce, and the corresponding password of having encrypted image data of password input block input;
Wherein, when encrypting image data and be decrypted, receive the input password by the password input block earlier, and the comparing unit that accesses to your password judges whether the input password meets with the corresponding password of having encrypted image data, if the image hyaline layer that then uses decryption unit will encrypt image data is set at transparent or removes the image hyaline layer.
Ah method's channel that above-mentioned image hyaline layer is an image data.
During above-mentioned image data askiatic hyaline layer, ciphering unit adds the image hyaline layer in image data, and the setting of image hyaline layer is opaque.
Said apparatus also comprises operation-interface, is presented at the display of portable electronic devices, selects to desire the image data of encryption and decryption for the user.
Image data encryption and decryption method provided by the invention and system thereof are the opaque or transparent encryption and decryption that realizes image data by the image hyaline layer of setting image data, have improved security and operation practicality that image file is encrypted.
Description of drawings
Fig. 1 is an image data encryption and decryption system block diagrams of the present invention;
The synoptic diagram that Fig. 2 encrypts for image data encryption and decryption of the present invention system;
The synoptic diagram that Fig. 3 is decrypted for image data encryption and decryption of the present invention system;
Fig. 4 is the flow chart of steps of image data encryption method embodiment of the present invention;
Fig. 5 is the flow chart of steps of image data decryption method embodiment of the present invention.
Wherein, 1-image data encryption and decryption system, 11-password input block, 111,112-password, the 12-ciphering unit, 13-decryption unit, 14-password comparing unit, 15,18-image data, 151,181-has encrypted image data, and 161,162-image hyaline layer, the 17-color layer, the 19-storage element, the 21-operation-interface;
Embodiment
Referring to Fig. 1, image data encryption and decryption of the present invention system 1 is applicable to portable electronic devices, for example e-dictionary, mobile phone or PDA (Personal Digital Assistant), image data encryption and decryption system 1 comprises password input block 11, ciphering unit 12, decryption unit 13 and password comparing unit 14.It is opaque that ciphering unit 12 is used for the setting of image hyaline layer.It is transparent that decryption unit 13 is used for the setting of image hyaline layer.Image data 15 comprises color layer 17 and image hyaline layer 161, and is stored in the storage element 19.
When image data 15 was encrypted, ciphering unit 12 was set at the image hyaline layer 161 of image data 15 opaque, becomes image hyaline layer 162, and then produced and encrypted image data 151.For example, if image hyaline layer 161 is Ah method's passage (alpha channel), then the scope of Ah method's value from 0 to 255.The Ruo Afa value is set at 0, represents transparently fully, promptly is image hyaline layer 161, can express color layer 17 when then image data 15 shows; The Ruo Afa value is set at 255, represents opaquely fully, promptly is image hyaline layer 162, only can demonstrate the monochromatic picture data when then image data 15 shows.Therefore, it is 255 that ciphering unit 12 can have setting value with the lock of Ah method's channel of image data 15, produces and encrypts image data 151.Then, the corresponding password 111 of having encrypted image data 151 of password input block 11 inputs.So, operate portable electronic devices if other people does not have password 111 actually and show when having encrypted image data 151, only can demonstrate the monochromatic picture data, reach secret effect thus.In addition, if desire is encrypted the image data of askiatic hyaline layer, as image data 18, then ciphering unit 12 can add image hyaline layer 161 in image data 18, and carry out above-mentioned encipheror, produce the image data of encryption 181 that comprises color layer 17 and image hyaline layer 162.
When encrypting image data 151 and be decrypted, receive password 112 by password input block 11, and the comparing unit 14 that accesses to your password judges whether password 112 and the password 111 of encrypting image data 151 meet, if, then the decryption unit 13 image hyaline layer 16 that will encrypt image data 151 is set at transparently, for example, is 0 with all setting values of Ah method's passage, can demonstrate color layer 17 when so, portable electronic devices Shows Picture data 15 watches for the user.In addition, when decryption unit 13 is decrypted, also can reach the effect that allows image data 15 demonstrate color layer 17 with image hyaline layer 16 from encrypting image data 151 deletions.
In addition, image data encryption and decryption system 1 optionally can comprise operation-interface, and this operation-interface is shown in the display of portable electronic devices, sets for image data and encryption and decryption that the user selects to desire encryption and decryption.
Referring to Fig. 2, graphic (a) is presented at the operation-interface 21 on the screen of portable electronic devices, and it shows that a plurality of image datas select for users.For example the user selects MyPhoto001.jpg, and its show image is shown in graphic (b).When the user sets at operation-interface 21 MyPhoto001.jpg is encrypted, shown in graphic (c), then the image hyaline layer of MyPhoto001.jpg is set to opaquely, and then the user is required to input password, shown in graphic (d).And the MyPhoto001.jpg that encrypted demonstration under the situation of not deciphering presents the monochromatic picture data, shown in graphic (e).
Referring to Fig. 3,, then be required to import clear crytpographic key when the user opens the MyPhoto001.jpg that encrypted, shown in icon (a), if password is correct, then the image hyaline layer of MyPhoto001.jpg is set to transparent, MyPhoto001.jpg just can normally be shown, shown in icon (b).
Referring to Fig. 4, image data encryption method of the present invention comprises the following step.In step 41, the image data of on operation-interface, selecting desire to encrypt.In step 42, whether in selected image data have Ah method channel layer (alpha channel), if then carry out step 43 if judging; If do not have, then carry out 44 and in selected image data, add Ah method's channel layer, then carry out step 43.
Is 255 in step 43 with all setting values of Ah method's channel layer of selected image data, and Ah method's channel layer of making becomes opaque layer, only can demonstrate the monochromatic picture data when this image data shows fully, and selected thus image data becomes encrypts image data.Then receive password and encrypted the password of image data, so, just finish the image data encipheror as this in step 45.
Referring to Fig. 5, the image data decryption method comprises the following step.Step 51, the image data of on operation-interface, selecting desire to decipher.Step 52, receive the input password, step 53, whether the password that judgement input password has been encrypted image data therewith meets, if, be 0 with these all setting values of having encrypted Ah method's channel layer of image data then in step 54, Ah method's channel layer of making becomes hyaline layer, can demonstrate its color layer when this image data is shown, thus selected image data deciphering can be shown to the user and watch.In addition, in step 54, another embodiment is the Ah method's channel layer deletion that directly will encrypt image data, so, can allow image data demonstrate its color layer.

Claims (7)

1, a kind of image data encryption and decryption method is characterized in that: this method comprises the following step:
1) when image data is encrypted, the image hyaline layer of image data is set at opaque, produce and encrypted image data, and input the corresponding password of having encrypted image data by the user;
2) when encrypting image data and be decrypted, receive the input password, and judge whether the input password meets with the corresponding password of having encrypted image data, if the image hyaline layer that then will encrypt image data is set at transparent or removes the image hyaline layer.
2, image data encryption and decryption method according to claim 1 is characterized in that: Ah method's channel that described image hyaline layer is an image data.
3, image data encryption and decryption method according to claim 1 and 2 is characterized in that: in the described step 1), during as if image data askiatic hyaline layer, then add the image hyaline layer in image data, and the setting of image hyaline layer is opaque.
4, a kind of image data encryption and decryption system, it is characterized in that: this system comprises: the password input block; Ciphering unit, setting of image hyaline layer are opaque; Decryption unit, it is transparent establishing described fixing hyaline layer; Password comparing unit and the storage element that stores image data; Described password input block is connected with the password comparing unit, and described password comparing unit, ciphering unit and decryption unit are connected with storage element respectively;
Wherein, when image data was encrypted, ciphering unit was set at the image hyaline layer of image data opaque, had encrypted image data to produce, and the corresponding password of having encrypted image data of password input block input;
Wherein, when encrypting image data and be decrypted, receive the input password by the password input block earlier, and the comparing unit that accesses to your password judges whether the input password meets with the corresponding password of having encrypted image data, if the image hyaline layer that then uses decryption unit will encrypt image data is set at transparent or removes the image hyaline layer.
5, image data encryption and decryption according to claim 4 system is characterized in that: Ah method's channel that described image hyaline layer is an image data.
6, according to claim 4 or 5 described image data encryption and decryption systems, it is characterized in that: during described image data askiatic hyaline layer, ciphering unit adds the image hyaline layer in image data, and the setting of image hyaline layer is opaque.
7, image data encryption and decryption according to claim 4 system, it is characterized in that: described device also comprises operation-interface, is presented at the display of portable electronic devices, selects to desire the image data of encryption and decryption for the user.
CN200910023657A 2009-08-20 2009-08-20 Image data encryption and decryption method and system thereof Pending CN101639928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910023657A CN101639928A (en) 2009-08-20 2009-08-20 Image data encryption and decryption method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910023657A CN101639928A (en) 2009-08-20 2009-08-20 Image data encryption and decryption method and system thereof

Publications (1)

Publication Number Publication Date
CN101639928A true CN101639928A (en) 2010-02-03

Family

ID=41614898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910023657A Pending CN101639928A (en) 2009-08-20 2009-08-20 Image data encryption and decryption method and system thereof

Country Status (1)

Country Link
CN (1) CN101639928A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915610A (en) * 2015-06-15 2015-09-16 广州市久邦数码科技有限公司 Privacy picture implementation method and privacy picture implementation system
CN108154542A (en) * 2017-12-22 2018-06-12 北京小鱼在家科技有限公司 A kind of method for increasing translucent attribute to JPG files
CN110298184A (en) * 2019-06-28 2019-10-01 维沃移动通信有限公司 Information processing method and terminal device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915610A (en) * 2015-06-15 2015-09-16 广州市久邦数码科技有限公司 Privacy picture implementation method and privacy picture implementation system
CN108154542A (en) * 2017-12-22 2018-06-12 北京小鱼在家科技有限公司 A kind of method for increasing translucent attribute to JPG files
CN108154542B (en) * 2017-12-22 2021-11-02 上海小度技术有限公司 Method for adding semitransparent property to JPG file
CN110298184A (en) * 2019-06-28 2019-10-01 维沃移动通信有限公司 Information processing method and terminal device

Similar Documents

Publication Publication Date Title
US8457308B2 (en) Communication system and method for protecting messages between two mobile phones
CN108769027B (en) Secure communication method, device, mobile terminal and storage medium
EP2187330A1 (en) Method and apparatus for encrypting user data
WO2016045469A1 (en) Information encryption method and mobile terminal
CN105260669B (en) The transmission method and Transmission system of photo
WO2016115889A1 (en) Method and system for controlling encryption of information and analyzing information as well as terminal
JP5889436B2 (en) Prevention of pattern recognition in electronic codebook encryption
CN105005731A (en) Data encryption and decryption methods and mobile terminal
CN105809042A (en) Information protection method and device, information display method and device, and terminal
CN101795450A (en) Method and device for carrying out security protection on mobile phone data
TW200929985A (en) Secure information storage system and method
WO2011137868A2 (en) Method and device for instantly encrypting and decrypting messages
CN105243331A (en) Encryption device and encryption method, and decryption device and decryption method
CN102891749A (en) Method and communication terminal for data encryption
CN101296349A (en) Video file enciphering/deciphering system and method
CN101459807A (en) Image ciphering/deciphering system and method
CN106648583A (en) Information processing method and terminal
CN104915583A (en) Interface decryption processing method and mobile terminal
CN101437116A (en) System and method for hiding and displaying image and sound file of image-shooting apparatus
CN101639928A (en) Image data encryption and decryption method and system thereof
US20090268056A1 (en) Digital camera with portrait image protecting function and portrait image protecting method thereof
CN103002117A (en) Phone information encryption method and phone information encryption system
CN105635100A (en) Information encryption method, information decryption method and terminal
CN108696355B (en) Method and system for preventing head portrait of user from being embezzled
US20050273604A1 (en) [mobile phone with file encryption function and method of encrypting/decrypting file thereof]

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20100203