CN105426721A - Picture encryption method and device - Google Patents
Picture encryption method and device Download PDFInfo
- Publication number
- CN105426721A CN105426721A CN201510760669.5A CN201510760669A CN105426721A CN 105426721 A CN105426721 A CN 105426721A CN 201510760669 A CN201510760669 A CN 201510760669A CN 105426721 A CN105426721 A CN 105426721A
- Authority
- CN
- China
- Prior art keywords
- encrypted
- picture
- encryption
- subregion
- fingerprint
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000010586 diagram Methods 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000003707 image sharpening Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Facsimile Transmission Control (AREA)
Abstract
本发明公开了一种图片加密的方法及装置。该方法具体包括:选择至少一幅待加密图片;确定所述待加密图片中的待加密区域,所述待加密区域为所述待加密图片的部分区域并包含至少一个待加密子区域;对所述待加密区域进行加密,得到加密图片。通过采用上述方法,可以对需要加密的图片直接进行加密,并可以对待加密图片的局部区域进行加密,使操作简单方便,提升用户体验。
The present invention discloses a method and device for encrypting an image. The method specifically comprises: selecting at least one image to be encrypted; determining an area to be encrypted in the image to be encrypted, wherein the area to be encrypted is a partial area of the image to be encrypted and includes at least one sub-area to be encrypted; encrypting the area to be encrypted to obtain an encrypted image. By adopting the above method, the image to be encrypted can be directly encrypted, and the local area of the image to be encrypted can be encrypted, making the operation simple and convenient, and improving the user experience.
Description
技术领域technical field
本发明涉及图片加密技术领域,尤其涉及一种图片加密的方法及装置。The present invention relates to the technical field of image encryption, in particular to a method and device for image encryption.
背景技术Background technique
随着移动终端的快速发展,用户对于移动终端的依赖性越来越强。用户通常使用移动终端来实现各类需求,比如购物、订票、或查询地图等。因此移动终端承载了大量的客户敏感信息,需要有足够的安全防护措施。由于指纹数据具有唯一性,因此被广泛应用于移动终端的安全防护中。With the rapid development of mobile terminals, users are increasingly dependent on mobile terminals. Users usually use mobile terminals to fulfill various needs, such as shopping, booking tickets, or querying maps. Therefore, mobile terminals carry a large amount of customer sensitive information, and sufficient security protection measures are required. Due to the uniqueness of fingerprint data, it is widely used in the security protection of mobile terminals.
目前,移动终端上的指纹识别技术常应用于屏幕解锁、终端支付、应用登陆和资料加密等。在对用户的隐私图片进行加密时,通常采用对图片所在的应用程序(APP)进行指纹加密。At present, fingerprint recognition technology on mobile terminals is often used in screen unlocking, terminal payment, application login and data encryption, etc. When encrypting a user's private picture, fingerprint encryption is usually performed on the application program (APP) where the picture is located.
APP中不仅存在用户加密的图片,还可能存在用户不加密的图片。在用户每次查看不加密图片时,也要对APP进行解锁。另外,用户在日常使用APP时,也需要先对APP进行解锁。即存在不能对图片单独加密的问题,导致应用程序使用过程繁琐,降低用户体验。There are not only pictures encrypted by the user in the APP, but also pictures that the user does not encrypt. Every time the user views an unencrypted picture, the APP must also be unlocked. In addition, users also need to unlock the APP when using the APP on a daily basis. That is, there is a problem that pictures cannot be encrypted separately, which makes the application process cumbersome and reduces user experience.
发明内容Contents of the invention
有鉴于此,本发明实施例提供一种图片加密的方法及装置,以解决现有技术中不能单独加密图片的技术问题。In view of this, the embodiments of the present invention provide a method and device for encrypting pictures, so as to solve the technical problem in the prior art that pictures cannot be encrypted alone.
第一方面,本发明实施例提供了一种图片加密的方法,包括:In the first aspect, the embodiment of the present invention provides a method for encrypting pictures, including:
选择至少一幅待加密图片;Select at least one image to be encrypted;
确定所述待加密图片中的待加密区域,所述待加密区域为所述待加密图片的部分区域并包含至少一个待加密子区域;Determining an area to be encrypted in the picture to be encrypted, the area to be encrypted is a partial area of the picture to be encrypted and includes at least one sub-area to be encrypted;
对所述待加密区域进行加密,得到加密图片。Encrypt the area to be encrypted to obtain an encrypted picture.
第二方面,本发明实施例还提供了一种图片加密的装置,包括:In the second aspect, the embodiment of the present invention also provides a device for encrypting pictures, including:
待加密图片选择模块,用于选择至少一幅待加密图片;A picture selection module to be encrypted is used to select at least one picture to be encrypted;
待加密区域确定模块,用于确定所述待加密图片中的待加密区域,所述待加密区域为所述待加密图片的部分区域并包含至少一个待加密子区域;A region to be encrypted determining module, configured to determine a region to be encrypted in the picture to be encrypted, the region to be encrypted is a partial region of the picture to be encrypted and includes at least one subregion to be encrypted;
加密模块,用于对所述待加密区域进行加密,得到加密图片。An encryption module, configured to encrypt the area to be encrypted to obtain an encrypted picture.
本发明实施例提供的图片加密的方法及装置,通过选择至少一幅待加密图片,并确定待加密图片的待加密区域,对所述待加密区域进行加密后得到加密图片。通过采用上述图片加密的方法及装置,可以对需要加密的图片直接进行加密,不用对图片所在的应用程序进行加密,使操作更为简单,并且可以对待加密图片的局部区域进行加密,便于用户辨认加密图片,提升用户体验。The image encryption method and device provided by the embodiments of the present invention select at least one image to be encrypted, determine the area to be encrypted of the image to be encrypted, and encrypt the area to be encrypted to obtain the encrypted image. By adopting the above image encryption method and device, the image that needs to be encrypted can be directly encrypted without encrypting the application program where the image is located, which makes the operation easier, and can encrypt a partial area of the image to be encrypted, which is convenient for users to identify Encrypt pictures to improve user experience.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1为本发明实施例一提供的一种图片加密的方法的流程图;FIG. 1 is a flow chart of a method for encrypting a picture provided in Embodiment 1 of the present invention;
图2为本发明实施例一提供的像素点加密前示意图;FIG. 2 is a schematic diagram of pixels before encryption provided by Embodiment 1 of the present invention;
图3为本发明实施例一提供的像素点加密后示意图;FIG. 3 is a schematic diagram of encrypted pixels provided by Embodiment 1 of the present invention;
图4为本发明实施例二提供的一种图片加密的方法的流程图;FIG. 4 is a flow chart of a method for encrypting a picture provided in Embodiment 2 of the present invention;
图5为本发明实施例三提供的一种图片加密的方法的流程图;FIG. 5 is a flow chart of a method for encrypting a picture provided by Embodiment 3 of the present invention;
图6为本发明实施例四提供的一种图片加密的装置的结构图。FIG. 6 is a structural diagram of an image encryption device provided by Embodiment 4 of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.
实施例一Embodiment one
图1为本发明实施例一提供的一种图片加密的方法的流程图。本实施例的方法具体用于对需要加密的图片进行加密的情况。本实施例的方法可以由图片加密的装置执行,该装置可由软件和/或硬件来实现,集成在进行图片加密的终端中。如图1所示,该方法包括:FIG. 1 is a flowchart of a method for encrypting a picture provided by Embodiment 1 of the present invention. The method in this embodiment is specifically used in the case of encrypting a picture that needs to be encrypted. The method of this embodiment can be executed by a device for encrypting pictures, which can be realized by software and/or hardware, and integrated in a terminal for encrypting pictures. As shown in Figure 1, the method includes:
步骤110、选择至少一幅待加密图片。Step 110. Select at least one picture to be encrypted.
示例性的,终端可以根据用户的需求选择至少一幅需要加密的图片,比如将用户选定的图片作为需要加密的图片。所述图片可以为用户拍摄的图片、下载的图片或收藏的图片等。所述终端可以为手机、平板电脑、或笔记本电脑等。Exemplarily, the terminal may select at least one picture that needs to be encrypted according to the user's requirement, for example, use the picture selected by the user as the picture that needs to be encrypted. The picture may be a picture taken by the user, a picture downloaded or a picture saved by the user, and the like. The terminal may be a mobile phone, a tablet computer, or a notebook computer.
步骤120、确定所述待加密图片中的待加密区域,所述待加密区域为所述待加密图片的部分区域并包含至少一个待加密子区域。Step 120. Determine a to-be-encrypted area in the to-be-encrypted picture, where the to-be-encrypted area is a partial area of the to-be-encrypted picture and includes at least one to-be-encrypted sub-area.
示例性的,确定待加密图片的待加密区域,确定方式可以为根据用户的选择确定待加密区域,或者是设定图片中固定子区域作为待加密区域,还可以是按照预设规则确定待加密区域,具体的确定方式可以按照实际情况进行设定。例如,设定以终端屏幕显示的图片中心点为圆心,以5个像素点为半径的圆形区域为待加密区域,则终端中选择的至少一幅待加密图片的待加密区域都设定为这个圆形区域。或者选择完待加密图片后,终端按照预设规则识别图片中的数字信息所在的区域作为待加密区域,或者识别图片中的人体信息所在的区域作为待加密区域。待加密区域为待加密图片的部分区域而非全部区域,待加密区域可以包含至少一个待加密子区域,待加密子区域可以包含至少一个敏感信息,例如数字信息,或头像信息等。例如,一幅待加密图片中包含用户的身份信息及头像信息,终端根据用户的选择确定了身份信息所在的区域为一个待加密的子区域,头像信息所在的区域为另一个待加密的子区域,在对图片进行加密时只需要对这两个子区域进行加密即可,并非对整幅图片进行加密,可以减小加密工作量。Exemplarily, to determine the area to be encrypted of the picture to be encrypted, the determination method can be to determine the area to be encrypted according to the user's choice, or to set a fixed sub-area in the picture as the area to be encrypted, or to determine the area to be encrypted according to preset rules The specific determination method of the area can be set according to the actual situation. For example, if the center point of the picture displayed on the terminal screen is set as the center point, and the circular area with a radius of 5 pixels is set as the area to be encrypted, then the area to be encrypted for at least one picture to be encrypted selected in the terminal is set to this circular area. Or after selecting the picture to be encrypted, the terminal identifies the area where the digital information in the picture is located as the area to be encrypted according to the preset rules, or identifies the area where the human body information in the picture is located as the area to be encrypted. The area to be encrypted is a part of the image to be encrypted but not the entire area. The area to be encrypted may contain at least one sub-area to be encrypted, and the sub-area to be encrypted may contain at least one sensitive information, such as digital information or avatar information. For example, a picture to be encrypted contains the user's identity information and avatar information, and the terminal determines the area where the identity information is located as a sub-area to be encrypted according to the user's choice, and the area where the avatar information is located is another sub-area to be encrypted , when encrypting the picture, only these two sub-regions need to be encrypted, instead of encrypting the whole picture, which can reduce the workload of encryption.
步骤130、对所述待加密区域进行加密,得到加密图片。Step 130: Encrypt the area to be encrypted to obtain an encrypted picture.
示例性的,确定待加密图片的待加密区域后,对所述待加密区域包含的待加密子区域进行加密,具体的加密方式可以根据实际情况进行设定,例如高斯模糊处理、图片锐化处理、或图片滤镜处理等。优选为分别对所述待加密区域包含的各待加密子区域进行高斯模糊处理加密,高斯模糊处理的方法为:将每个待处理的像素点的像素值更新为周边像素点的像素值的平均值,以进行模糊处理。进一步的,确定各待加密子区域的加密度,其中各待加密子区域的加密度相同或不同。所述加密度为终端对各待加密子区域设置的加密模糊程度,即在进行高斯模糊处理时为各待加密子区域中的待处理像素点选取的周边像素点的范围大小不一样,使得各待加密子区域的加密程度不同,可以根据用户的实际需求对各待加密子区域设置加密度,也可以对待加密区域统一设置相同的加密度,即各待加密子区域加密度可以相同也可以不同。图2为本发明实施例一提供的像素点加密前示意图,如图2所示,像素点21为待处理像素点,其余点为像素点21的周边像素点,其中像素点21的像素值为2,其余各点的像素值为1,进行平均值计算后得到的平均值为1,即像素点21加密后的像素值为1。图3为本发明实施例一提供的像素点加密后示意图,如图3所示,像素点31为图2中像素点21加密后的像素点,其像素值为1。对各待加密子区域进行加密后,得到加密图片,所述加密图片替换原始图片显示在终端中。Exemplarily, after determining the to-be-encrypted area of the image to be encrypted, the to-be-encrypted sub-area contained in the to-be-encrypted area is encrypted. The specific encryption method can be set according to the actual situation, such as Gaussian blur processing, image sharpening processing , or image filter processing, etc. Preferably, Gaussian blur processing is performed on each sub-region to be encrypted contained in the region to be encrypted, and the method of Gaussian blur processing is: update the pixel value of each pixel to be processed to the average value of the pixel values of surrounding pixels value for obfuscation. Further, the encryption degree of each to-be-encrypted sub-region is determined, wherein the encryption degree of each to-be-encrypted sub-region is the same or different. The encryption degree is the encryption blur degree set by the terminal for each sub-area to be encrypted, that is, when Gaussian blur processing is performed, the range of surrounding pixels selected for the pixels to be processed in each sub-area to be encrypted is different, so that each The encryption degree of the sub-areas to be encrypted is different. The encryption degree can be set for each sub-area to be encrypted according to the actual needs of the user, or the same encryption degree can be set uniformly for the encrypted area, that is, the encryption degree of each sub-area to be encrypted can be the same or different. . Fig. 2 is a schematic diagram of pixels before encryption provided by Embodiment 1 of the present invention. As shown in Fig. 2, pixel 21 is a pixel to be processed, and the remaining points are surrounding pixels of pixel 21, wherein the pixel value of pixel 21 is 2. The pixel value of the remaining points is 1, and the average value obtained after the average calculation is 1, that is, the pixel value of pixel 21 after encryption is 1. FIG. 3 is a schematic diagram of encrypted pixels provided by Embodiment 1 of the present invention. As shown in FIG. 3 , pixel 31 is the encrypted pixel of pixel 21 in FIG. 2 , and its pixel value is 1. After encrypting each sub-area to be encrypted, an encrypted picture is obtained, and the encrypted picture replaces the original picture and is displayed on the terminal.
本发明实施例一提供的一种图片加密的方法,通过选择至少一幅待加密图片,确定待加密图片的待加密区域,所述待加密区域包含至少一个待加密子区域,对待加密区域进行加密后得到加密图片。采用本实施例的方法可以对图片进行单独加密,不需要对图片所在的应用程序进行加密,使操作更为简单,并且可以选择图片的部分区域进行加密,减小加密工作量,并且便于用户根据未加密区域辨识加密图片,提升用户体验。A method for encrypting a picture provided by Embodiment 1 of the present invention, by selecting at least one picture to be encrypted, determining the area to be encrypted of the picture to be encrypted, the area to be encrypted includes at least one sub-area to be encrypted, and encrypting the area to be encrypted Then get the encrypted picture. Using the method of this embodiment, the picture can be encrypted separately, without needing to encrypt the application program where the picture is located, which makes the operation easier, and can select some areas of the picture for encryption, reducing the encryption workload, and is convenient for users to Identify encrypted images in unencrypted areas to improve user experience.
实施例二Embodiment two
图4为本发明实施例二提供的一种图片加密的方法的流程图。本实施例是在实施例一的基础上做进一步优化。FIG. 4 is a flowchart of a method for encrypting a picture provided by Embodiment 2 of the present invention. This embodiment is further optimized on the basis of the first embodiment.
进一步的,在用户选择至少一幅待加密图片之前,获取加密指令,采集用户指纹,将所述用户指纹与本地指纹库中指纹样本进行匹配,若匹配成功,则将所述用户指纹设为解密指纹,该方法的具体流程包括:Further, before the user selects at least one picture to be encrypted, an encryption instruction is obtained, the user fingerprint is collected, and the user fingerprint is matched with the fingerprint sample in the local fingerprint database. If the match is successful, the user fingerprint is set as decryption. Fingerprint, the specific process of the method includes:
步骤410、获取加密指令。Step 410, obtaining an encrypted instruction.
示例性的,终端获取加密指令后,开始执行加密步骤。加密指令可以是终端或应用程序的设置选项中的加密选项,当开启加密选项或选定加密选项时开始执行加密步骤。Exemplarily, after the terminal acquires the encryption instruction, it starts to execute the encryption step. The encryption command may be an encryption option in the setting options of the terminal or application program, and the encryption step is executed when the encryption option is enabled or selected.
步骤420、采集用户指纹,将所述用户指纹与本地指纹库中指纹样本进行匹配。Step 420, collect user fingerprints, and match the user fingerprints with fingerprint samples in the local fingerprint database.
示例性的,获取加密指令后,设置加密密钥。加密密钥可以是终端获取的用户指纹数据,或根据用户输入的内容设置输入密码等,优选为指纹数据。采集用户指纹,将用户指纹与本地指纹库中指纹样本进行匹配,若匹配成功,说明发出加密指令的用户为终端的合法使用者,若匹配不成功,可能是其他用户使用该终端进行图片加密,此时可以发出提示音提示使用者有其他用户使用终端执行图片加密操作,提高安全性。Exemplarily, after obtaining the encryption instruction, an encryption key is set. The encryption key may be the user's fingerprint data obtained by the terminal, or set an input password according to the content input by the user, and is preferably fingerprint data. Collect the user's fingerprint, and match the user's fingerprint with the fingerprint sample in the local fingerprint database. If the match is successful, it means that the user who issued the encryption command is a legal user of the terminal. If the match is unsuccessful, it may be that other users use the terminal to encrypt pictures. At this time, a prompt tone can be issued to remind the user that other users use the terminal to perform image encryption operations, thereby improving security.
步骤430、若匹配成功,则将所述用户指纹设为解密指纹。Step 430: If the matching is successful, set the user fingerprint as a decryption fingerprint.
示例性的,若用户指纹与本地指纹库中的指纹样本匹配成功,则将终端采集的用户指纹作为加密图片的解密指纹,即只有当输入解密指纹时,才可以对加密图片进行解密。Exemplarily, if the user fingerprint is successfully matched with the fingerprint samples in the local fingerprint database, the user fingerprint collected by the terminal is used as the decryption fingerprint of the encrypted picture, that is, the encrypted picture can be decrypted only when the decryption fingerprint is input.
步骤440、选择至少一幅待加密图片。Step 440. Select at least one picture to be encrypted.
步骤450、确定所述待加密图片中的待加密区域,所述待加密区域为所述待加密图片的部分区域并包含至少一个待加密子区域。Step 450. Determine a to-be-encrypted area in the to-be-encrypted picture, where the to-be-encrypted area is a partial area of the to-be-encrypted picture and includes at least one to-be-encrypted sub-area.
步骤460、对所述待加密区域进行加密,得到加密图片。Step 460: Encrypt the area to be encrypted to obtain an encrypted picture.
本发明实施例二提供的一种图片加密的方法,在获取加密指令后,采集用户指纹与本地指纹库中的指纹样本进行匹配,若匹配成功,则将所述指纹作为解密指纹。通过对加密图片设置解密指纹,可以利用指纹数据的唯一性提高图片加密的安全性,更好地保护用户的安全隐私。Embodiment 2 of the present invention provides a method for encrypting pictures. After obtaining the encryption instruction, the fingerprint of the user is collected and matched with the fingerprint samples in the local fingerprint database. If the match is successful, the fingerprint is used as the decrypted fingerprint. By setting decryption fingerprints for encrypted pictures, the uniqueness of fingerprint data can be used to improve the security of picture encryption and better protect the security and privacy of users.
实施例三Embodiment three
图5为本发明实施例三提供的一种图片加密的方法的流程图。本实施例是在实施例二的基础上作进一步的优化,对加密图片的解密作进一步的限定。FIG. 5 is a flowchart of a method for encrypting a picture provided by Embodiment 3 of the present invention. This embodiment is further optimized on the basis of the second embodiment, and the decryption of encrypted pictures is further limited.
进一步的,选取加密图片,采集用户指纹,将当前采集的用户指纹与所述解密指纹进行匹配,若匹配成功,则显示选取的加密图片对应的原始图片,若匹配不成功,则显示所述加密图片,该方法的流程具体包括:Further, the encrypted picture is selected, the user fingerprint is collected, and the currently collected user fingerprint is matched with the decrypted fingerprint. If the match is successful, the original picture corresponding to the selected encrypted picture is displayed. If the match is unsuccessful, the encrypted picture is displayed. The process of the method specifically includes:
步骤510、选取加密图片。Step 510, selecting an encrypted picture.
示例性的,加密图片为已经进行局部加密的图片,可以根据未加密的区域提示用户选择需要的加密图片作为待解密图片。终端可以根据用户的需求选取至少一幅加密图片,若当前选取的加密图片的加密密钥与已选取加密图片的加密密钥不相同,可以提示用户当前加密图片不可与已选取的加密图片同时进行解密操作。Exemplarily, the encrypted picture is a picture that has been partially encrypted, and the user may be prompted to select a desired encrypted picture as the picture to be decrypted according to the unencrypted area. The terminal can select at least one encrypted picture according to the user's needs. If the encryption key of the currently selected encrypted picture is not the same as the encryption key of the selected encrypted picture, it can prompt the user that the current encrypted picture cannot be encrypted with the selected encrypted picture at the same time. decryption operation.
步骤520、采集用户指纹,将当前采集的用户指纹与所述解密指纹进行匹配。Step 520, collect user fingerprints, and match the currently collected user fingerprints with the decrypted fingerprints.
示例性的,选取加密图片后提示用户输入加密密钥,优选为提示用户输入解密指纹。当终端采集用户输入的指纹后,将当前采集的用户指纹与设置好的解密指纹进行匹配。Exemplarily, after the encrypted picture is selected, the user is prompted to input the encryption key, preferably, the user is prompted to input the decryption fingerprint. After the terminal collects the fingerprint input by the user, it matches the currently collected user fingerprint with the set decryption fingerprint.
步骤530、若匹配成功,则显示选取的加密图片对应的原始图片,若匹配不成功,则显示所述加密图片。Step 530: If the matching is successful, display the original picture corresponding to the selected encrypted picture; if the matching is unsuccessful, display the encrypted picture.
示例性的,若采集的用户指纹与所述解密指纹匹配成功,则显示选取的加密图片对应的原始图片,此时终端可以直接显示图片中的信息,若匹配不成功,则显示加密图片,即终端不可以直接向用户显示图片中的信息。Exemplarily, if the collected user fingerprint matches the decrypted fingerprint successfully, the original picture corresponding to the selected encrypted picture is displayed, and at this time, the terminal can directly display the information in the picture; if the match is unsuccessful, the encrypted picture is displayed, that is The terminal cannot directly display the information in the picture to the user.
本发明实施例三提供的一种图片加密的方法,通过选取加密图片,采集用户指纹与所述解密指纹进行匹配,若匹配成功,则显示选取加密图片对应的原始图片,若匹配不成功,则显示所述加密图片。通过指纹匹配可以快速准确显示加密图片。在解密时只需要对图片进行解密,不需要对图片所在的应用程序进行解密,使加密图片解密过程变得简单,进而提升用户体验。A method for encrypting pictures provided by Embodiment 3 of the present invention, by selecting an encrypted picture, collecting user fingerprints and matching them with the decrypted fingerprints, if the matching is successful, the original picture corresponding to the selected encrypted picture will be displayed; if the matching is unsuccessful, then Display the encrypted picture. Encrypted pictures can be quickly and accurately displayed through fingerprint matching. When decrypting, only the picture needs to be decrypted, and the application program where the picture is located does not need to be decrypted, which makes the decryption process of the encrypted picture simple and improves the user experience.
实施例四Embodiment Four
图6为本发明实施例四提供的一种图片加密的装置的结构图。如图6所示,该装置包括:待加密图片选择模块601,待加密区域确定模块602和加密模块603。FIG. 6 is a structural diagram of an image encryption device provided by Embodiment 4 of the present invention. As shown in FIG. 6 , the device includes: a picture to be encrypted selection module 601 , a region to be encrypted determination module 602 and an encryption module 603 .
其中,待加密图片选择模块601,用于选择至少一幅待加密图片;待加密区域确定模块602,用于确定所述待加密图片中的待加密区域,所述待加密区域为所述待加密图片的部分区域并包含至少一个待加密子区域;加密模块603,用于对所述待加密区域进行加密,得到加密图片。Among them, the picture to be encrypted selection module 601 is used to select at least one picture to be encrypted; the area to be encrypted determination module 602 is used to determine the area to be encrypted in the picture to be encrypted, and the area to be encrypted is the area to be encrypted The partial area of the picture includes at least one sub-area to be encrypted; the encryption module 603 is configured to encrypt the area to be encrypted to obtain an encrypted picture.
进一步的,所述装置还可以包括:获取模块,采集模块和解密指纹设置模块。Further, the device may further include: an acquisition module, a collection module and a decryption fingerprint setting module.
其中,获取模块,用于获取加密指令;采集模块,用于采集用户指纹,将所述用户指纹与本地指纹库中指纹样本进行匹配;解密指纹设置模块,用于若所述用户指纹与本地指纹库中指纹样本匹配成功,则将所述用户指纹设为解密指纹。Wherein, the obtaining module is used to obtain encryption instructions; the collection module is used to collect user fingerprints, and the user fingerprints are matched with the fingerprint samples in the local fingerprint database; If the fingerprint samples in the database are successfully matched, the user fingerprint is set as the decryption fingerprint.
优选是,所述装置还可以包括:加密图片选取模块,匹配模块和图片显示模块。Preferably, the device may further include: an encrypted picture selection module, a matching module and a picture display module.
其中,加密图片选取模块,用于选取加密图片;匹配模块,用于采集用户指纹,将当前采集的用户指纹与所述解密指纹进行匹配;图片显示模块,用于若当前采集的用户指纹与所述解密指纹匹配成功,则显示选取的加密图片对应的原始图片,若匹配不成功,则显示所述加密图片。Wherein, the encrypted picture selection module is used to select encrypted pictures; the matching module is used to collect user fingerprints and matches the currently collected user fingerprints with the decrypted fingerprints; the picture display module is used to match the currently collected user fingerprints with the If the decrypted fingerprint matches successfully, the original picture corresponding to the selected encrypted picture will be displayed; if the match is unsuccessful, the encrypted picture will be displayed.
进一步的,加密模块具体用于分别对所述待加密区域包含的各待加密子区域进行高斯模糊处理加密。Further, the encryption module is specifically configured to perform Gaussian blurring encryption on each sub-area to be encrypted included in the area to be encrypted.
在上述实施例的基础上,所述加密模块可以包括:加密度设置单元和高斯加密单元。On the basis of the above embodiments, the encryption module may include: an encryption level setting unit and a Gaussian encryption unit.
其中,加密度设置单元,用于确定各待加密子区域的加密度;其中各待加密子区域的加密度相同或不同;高斯加密单元,用于根据各待加密子区域的加密度采用高斯模糊处理算法对相应的待加密子区域进行加密。Wherein, the degree of encryption setting unit is used to determine the degree of encryption of each sub-region to be encrypted; wherein the degree of encryption of each sub-region to be encrypted is the same or different; the Gaussian encryption unit is used to adopt Gaussian blur according to the degree of encryption of each sub-region to be encrypted The processing algorithm encrypts the corresponding sub-areas to be encrypted.
本发明实施例四提供的一种图片加密的装置,通过选择至少一幅待加密图片,确定待加密图片的待加密区域,所述待加密区域包含至少一个待加密子区域,对所述待加密区域进行加密后得到加密图片。采用本实施例的装置可以对图片进行单独加密,不需要对图片所在的应用程序进行加密,使操作更为简单,提升用户体验,并且可以对待加密图片的局部区域进行加密,减小加密工作量。An image encryption device provided in Embodiment 4 of the present invention determines the area to be encrypted of the image to be encrypted by selecting at least one image to be encrypted, the area to be encrypted includes at least one sub-area to be encrypted, and the area to be encrypted is determined. After the area is encrypted, an encrypted picture is obtained. The device of this embodiment can encrypt the picture separately, without encrypting the application program where the picture is located, making the operation easier and improving the user experience, and can encrypt the partial area of the picture to be encrypted, reducing the encryption workload .
本发明实施例所提供的图片加密的装置用于执行本发明实施例提供的图片加密的方法,具备相应的功能和有益效果。The image encryption device provided in the embodiment of the present invention is used to execute the image encryption method provided in the embodiment of the present invention, and has corresponding functions and beneficial effects.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510760669.5A CN105426721A (en) | 2015-11-10 | 2015-11-10 | Picture encryption method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510760669.5A CN105426721A (en) | 2015-11-10 | 2015-11-10 | Picture encryption method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105426721A true CN105426721A (en) | 2016-03-23 |
Family
ID=55504926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510760669.5A Pending CN105426721A (en) | 2015-11-10 | 2015-11-10 | Picture encryption method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105426721A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106326712A (en) * | 2016-08-31 | 2017-01-11 | 维沃移动通信有限公司 | Method for processing pictures and mobile terminal |
CN107092842A (en) * | 2017-04-14 | 2017-08-25 | 苏州三星电子电脑有限公司 | Secrecy display method and private display device |
CN107133993A (en) * | 2017-04-19 | 2017-09-05 | 珠海市魅族科技有限公司 | A kind of image processing method and device |
WO2017215436A1 (en) * | 2016-06-14 | 2017-12-21 | 中兴通讯股份有限公司 | Information encryption and decryption method, device and terminal |
CN108875393A (en) * | 2018-06-11 | 2018-11-23 | 北京京东金融科技控股有限公司 | Client data is by the safety implementation method, device and medium of screenshotss |
CN114817938A (en) * | 2021-01-28 | 2022-07-29 | 海信集团控股股份有限公司 | Method and equipment for accessing shared photo album and protecting private pictures of shared photo album |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103605928A (en) * | 2013-11-18 | 2014-02-26 | 清华大学 | Method and system for protecting privacy of images |
CN103914634A (en) * | 2014-03-26 | 2014-07-09 | 小米科技有限责任公司 | Image encryption method, image encryption device and electronic device |
US9094204B2 (en) * | 2010-09-30 | 2015-07-28 | Fujitsu Limited | Image encryption system and image decryption system |
CN104992120A (en) * | 2015-06-18 | 2015-10-21 | 广东欧珀移动通信有限公司 | Picture encryption method and mobile terminal |
-
2015
- 2015-11-10 CN CN201510760669.5A patent/CN105426721A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9094204B2 (en) * | 2010-09-30 | 2015-07-28 | Fujitsu Limited | Image encryption system and image decryption system |
CN103605928A (en) * | 2013-11-18 | 2014-02-26 | 清华大学 | Method and system for protecting privacy of images |
CN103914634A (en) * | 2014-03-26 | 2014-07-09 | 小米科技有限责任公司 | Image encryption method, image encryption device and electronic device |
CN104992120A (en) * | 2015-06-18 | 2015-10-21 | 广东欧珀移动通信有限公司 | Picture encryption method and mobile terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017215436A1 (en) * | 2016-06-14 | 2017-12-21 | 中兴通讯股份有限公司 | Information encryption and decryption method, device and terminal |
CN106326712A (en) * | 2016-08-31 | 2017-01-11 | 维沃移动通信有限公司 | Method for processing pictures and mobile terminal |
CN107092842A (en) * | 2017-04-14 | 2017-08-25 | 苏州三星电子电脑有限公司 | Secrecy display method and private display device |
CN107133993A (en) * | 2017-04-19 | 2017-09-05 | 珠海市魅族科技有限公司 | A kind of image processing method and device |
CN108875393A (en) * | 2018-06-11 | 2018-11-23 | 北京京东金融科技控股有限公司 | Client data is by the safety implementation method, device and medium of screenshotss |
CN114817938A (en) * | 2021-01-28 | 2022-07-29 | 海信集团控股股份有限公司 | Method and equipment for accessing shared photo album and protecting private pictures of shared photo album |
CN114817938B (en) * | 2021-01-28 | 2024-05-17 | 海信集团控股股份有限公司 | Method and equipment for accessing shared album and protecting private pictures of shared album |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105426721A (en) | Picture encryption method and device | |
US10078741B2 (en) | Two-way authentication in single password with agent | |
US10073985B2 (en) | Apparatus and method for trusted execution environment file protection | |
CN104253933A (en) | Shooting method and device | |
TW202232407A (en) | Information processing method and device, electronic equipment, server and medium | |
WO2017050093A1 (en) | Login information input method, login information storage method, and associated device | |
US8712047B2 (en) | Visual universal decryption apparatus and methods | |
CN104657674A (en) | Isolation protection system and isolation protection method of private data in mobile phone | |
JP2018524651A (en) | Secure biometric data capture, processing and management | |
CN105354509B (en) | The processing method and processing system of picture | |
WO2020018182A1 (en) | Public-private key pair protected password manager | |
JP2018186495A (en) | Identity authentication using barcode | |
CN105429761A (en) | Key generation method and device | |
EP3437020B1 (en) | Secure storage of fingerprint related elements | |
WO2018166484A1 (en) | Data encryption and decryption methods and apparatuses, electronic device and readable storage medium | |
CN107133993A (en) | A kind of image processing method and device | |
CN105095787A (en) | Information processing method and device | |
CN105243331A (en) | Encryption device and encryption method, and decryption device and decryption method | |
US10171458B2 (en) | Wireless pairing and communication between devices using biometric data | |
CN111159749B (en) | Photographing method, photographing device, mobile terminal and computer readable storage medium | |
US20210014682A1 (en) | Methods and systems for securing and utilizing a personal date store on a mobile device | |
JP2009205476A (en) | Authentication device, biological information management apparatus, authentication system and authentication method | |
US9465818B2 (en) | Finger biometric sensor data synchronization via a cloud computing device and related methods | |
CN106850215B (en) | Data encryption and decryption method and device | |
KR20150047735A (en) | User Authentication Method base on User Input on the Image and Electronic Device using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160323 |