Screen capture method, device, equipment and storage medium

By generating a key using facial images and preset facial expressions to encrypt screenshots, the problem of low security in screenshots is solved, achieving high security and authentication, and preventing data from being illegally obtained.

CN112632577BActive Publication Date: 2024-11-26PING AN BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011554259.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-24
Publication Date
2024-11-26
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

In existing technologies, screenshots are not very secure, especially since users cannot log into their personal accounts to view their private information when offline, and existing encryption methods are easily cracked or difficult to remember.

Method used

By collecting users' facial images, extracting facial feature information and preset facial expressions and actions, generating keys to encrypt screenshots, and performing liveness verification during decryption, the authenticity of users' identities is ensured.

Benefits of technology

It improves the security of screenshots, preventing malicious actors from using photos to steal data. It can only be decrypted in specific apps, enhancing data security and the reliability of user authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112632577B_ABST
    Figure CN112632577B_ABST
Patent Text Reader

Abstract

The present application proposes a screenshot method, device, equipment and storage medium, the method comprising: detecting a screenshot event triggered by a preset screenshot button in the current interface, collecting a user's facial image through a camera; detecting a user's preset facial expression, taking a screenshot of the current interface, and obtaining a screenshot image; generating a first key according to the facial image; encrypting the screenshot image with the first key, and storing the obtained image ciphertext. The present application encrypts the screenshot image according to the facial image, which can not only ensure the security of the screenshot image, but also realize user identity authentication, thereby improving the security of the data in the screenshot image. It is also possible to use facial images and preset facial expressions, or combine them with the unique identifier of the APP for encryption, making the image ciphertext more difficult to crack. The facial expressions can detect the user's liveness, avoiding the situation of using photos to defraud data. The unique identifier of the APP is used so that the image ciphertext can only be decrypted in the APP, thereby improving the security of the data in the screenshot image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of blockchain technology, and specifically relates to a screenshot method, device, equipment and storage medium. Background Art

[0002] At present, when using mobile terminals such as mobile phones and tablets to handle banking and insurance business, customers often need to fill in a lot of personal privacy information, such as the user's bank account number and password, etc. However, in real life, many people find it difficult to remember their accounts and passwords, especially users' accounts are difficult to remember.

[0003] In the related art, users can use their own username and password to log in to their personal account to view their personal privacy information. However, this method is greatly affected by the network, and users cannot log in to their personal account to view it offline. Therefore, many users use screenshots to save screenshots of personal privacy information for easy viewing. In order to improve the security of personal privacy information, the screenshots need to be encrypted. In the related art, screenshots are usually taken by sliding the screen with three fingers or using the volume button + power button. This method does not encrypt the screenshots, making the security of personal privacy information in the screenshots low. Another related technology uses a text password to encrypt the screenshots, so the user still needs to remember the text password, which is very inconvenient and not safe enough. Another related technology uses fingerprint recognition to take screenshots and encrypt pictures, but fingerprint recognition cannot verify the identity of the user, making the security low. Summary of the invention

[0004] The present application proposes a screenshot method, device, equipment and storage medium. The present application encrypts the screenshot image according to the face image, which can not only ensure the security of the screenshot image, but also realize user identity authentication and improve the security of the data in the screenshot image.

[0005] The first embodiment of the present application provides a screenshot method, including:

[0006] Detecting a screenshot event triggered by a preset screenshot button in the current interface, and capturing a user's face image through a camera;

[0007] Detecting that the user has made a preset expression action, taking a screenshot of the current interface, and obtaining a screenshot of the current interface;

[0008] Generate a first key according to the facial image of the user;

[0009] The screenshot image is encrypted using the first key, and the image ciphertext corresponding to the screenshot image is stored.

[0010] In some embodiments of the present application, generating a first key according to the face image of the user includes:

[0011] Extracting facial feature information of the user from the facial image of the user;

[0012] Generate a second key by using a preset encryption algorithm, and use the second key to encrypt the facial feature information to obtain a ciphertext of the facial feature information;

[0013] The ciphertext of the facial feature information is determined as a first key for encrypting the screenshot image.

[0014] In some embodiments of the present application, generating a first key according to the face image of the user includes:

[0015] Obtaining an expression identifier corresponding to the preset expression action;

[0016] Extracting facial feature information of the user from the facial image of the user;

[0017] Generate a second key by using a preset encryption algorithm, and use the second key to encrypt the facial feature information and the expression identifier;

[0018] The encrypted character string is determined as a first key used to encrypt the screenshot image.

[0019] In some embodiments of the present application, generating a first key according to the face image of the user includes:

[0020] Obtain a unique identifier corresponding to the application to which the current interface belongs;

[0021] Extracting facial feature information of the user from the facial image of the user;

[0022] Using the unique identifier as a second key;

[0023] The facial feature information is encrypted using the second key through a preset encryption algorithm to obtain a ciphertext of the facial feature information; the ciphertext of the facial feature information is determined as a first key for encrypting the screenshot; or, an expression identifier corresponding to the preset expression action is obtained; the facial feature information and the preset expression identifier are encrypting using the second key through the preset encryption algorithm; and the encrypted character string is determined as the first key for encrypting the screenshot.

[0024] In some embodiments of the present application, after storing the image ciphertext corresponding to the screenshot image, the method further includes:

[0025] When a request to view the screenshot is detected, the facial image of the user is captured by the camera, and the user is detected to perform the preset expression action;

[0026] Obtaining the image ciphertext and the second key corresponding to the screenshot image;

[0027] The picture ciphertext is decrypted according to the second key and the face image to obtain the screenshot picture.

[0028] In some embodiments of the present application, decrypting the picture ciphertext according to the second key and the face image to obtain the screenshot picture includes:

[0029] Extracting facial feature information of the user from the collected facial image;

[0030] Generate a first key for decrypting the image ciphertext according to the second key and the facial feature information;

[0031] The image ciphertext is decrypted using the first key through a preset encryption algorithm to obtain the screenshot image.

[0032] In some embodiments of the present application, generating a first key for decrypting the image ciphertext according to the second key and the facial feature information includes:

[0033] If the image ciphertext is encrypted only based on the user's facial feature information, the facial feature information is encrypted using the second key to obtain the first key;

[0034] If the image ciphertext is encrypted according to the user's facial feature information and preset facial expressions, the second key is used to encrypt the facial feature information and the facial expression identifier corresponding to the preset facial expression to obtain the first key;

[0035] If the image ciphertext is encrypted according to the unique identifier corresponding to the application to which the current interface belongs and the facial feature information of the user, then the unique identifier corresponding to the application is obtained, and the facial feature information is encrypted by the unique identifier to obtain a first key;

[0036] If the image ciphertext is encrypted based on the unique identifier corresponding to the application to which the current interface belongs, the user's facial feature information and the preset expression action, then the unique identifier corresponding to the application is obtained, and the facial feature information and the expression identifier corresponding to the preset expression action are encrypte...d using the unique identifier to obtain the first key.

[0037] The second aspect of the present application provides a screen capture device, including:

[0038] The face acquisition module is used to detect the screenshot event triggered by the preset screenshot button in the current interface and capture the user's face image through the camera;

[0039] A screenshot module is used to detect that the user makes a preset expression action, take a screenshot of the current interface, and obtain a screenshot image of the current interface;

[0040] A key generation module, used to generate a first key according to the face image of the user;

[0041] The encryption module is used to encrypt the screenshot image using the first key and store the image ciphertext corresponding to the screenshot image.

[0042] An embodiment of the third aspect of the present application provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the method described in the first aspect above.

[0043] An embodiment of the fourth aspect of the present application provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, enables the one or more processors to execute the steps of the method described in the first aspect above.

[0044] The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:

[0045] In the embodiment of the present application, the screenshot is encrypted by facial feature information. It can not only ensure the security of the screenshot, but also verify the user's identity through the facial image, further improving the security of the data in the screenshot. This solution can also use facial feature information and preset facial expressions to encrypt the screenshot, making the first picture ciphertext more difficult to crack, which can not only ensure the security of the screenshot, but also verify the user's identity through the facial image, and the preset facial expression can detect the liveness of the user requesting decryption, avoiding malicious elements from using the user's photo to defraud the data in the screenshot, further improving the security of the data in the screenshot. It can also be encrypted by the unique identifier and facial feature information corresponding to the APP, or by the unique identifier, facial feature information and preset facial expression corresponding to the APP, which can not only ensure the security of the screenshot, but also verify the user's identity through the facial image, and the preset facial expression can detect the liveness of the user requesting decryption, avoiding malicious elements from using the user's photo to defraud the data in the screenshot, further improving the security of the data in the screenshot. Moreover, since the unique identifier corresponding to the APP is difficult for the outside world to obtain, the encrypted screenshots can only be decrypted in the APP, further improving the security of the data in the screenshots.

[0046] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0048] Figure 1 A flowchart of a screenshot method provided by an embodiment of the present application is shown;

[0049] Figure 2 A schematic structural diagram of a screen capture device provided by an embodiment of the present application is shown;

[0050] Figure 3 A schematic diagram of the structure of a computer device provided by an embodiment of the present application is shown;

[0051] Figure 4 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] It can be understood that the terms "first", "second", etc. used in the present application can be used in this article to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.

[0054] Some embodiments of the present application provide a screenshot method, the execution subject of the method is a mobile terminal, such as a mobile phone or a tablet computer. A specific APP (Application) is installed on the mobile terminal, and the specific APP can be an APP for finance, credit or insurance. These APPs usually contain the user's bank account, password, ID number and other personal privacy information. In the embodiment of the present application, the specific APP contains an interface for displaying the user's personal privacy information. When the user needs to take a screenshot of the interface, such as Figure 1 As shown, you can take a screenshot by following the steps below:

[0055] Step 101: Detecting a screenshot event triggered by a preset screenshot button in the current interface, and capturing a user's facial image through a camera.

[0056] In an embodiment of the present application, a preset screenshot button is provided in the interface for displaying the user's personal privacy information in the above-mentioned APP. When the user needs to take a screenshot and save the personal privacy information in the interface, the user can click the preset screenshot button. When the mobile terminal detects a screenshot event triggered by the preset screenshot button, the camera of the mobile terminal is called, and the user is prompted to adjust the position of the mobile terminal so that his face is within the shooting area of ​​the camera. When it is detected that the user's face is within the shooting area of ​​the camera, the user's face image is captured by the camera.

[0057] Step 102: Detect that the user makes a preset expression action, take a screenshot of the current interface, and obtain a screenshot image of the current interface.

[0058] During the process of collecting the user's face image through the operation of step 101, a prompt message for prompting the user to make a preset expression action is also displayed. The preset expression action is used to trigger the screenshot operation, and the preset expression action can be blinking, smiling or pouting.

[0059] After the user sees the above prompt information displayed on the screen, he can make a preset expression according to the prompt information. When the camera detects that the user makes a preset expression, the current interface is captured to obtain a screenshot of the current interface, which may contain the user's personal privacy information. In order to ensure the security of the user's personal privacy information, the embodiment of the present application encrypts and protects the screenshot in the following way.

[0060] Step 103: Generate a first key based on the user's facial image.

[0061] In the embodiment of the present application, after obtaining the user's facial image, the user's facial feature information is extracted from the facial image. The facial feature information may include the user's facial contour and facial features and the coordinates and pixel information of multiple facial key points. The facial key points may include multiple pixel points located at the facial contour and facial features. A second key is generated by a preset encryption algorithm, and the user's facial feature information is encrypted using the second key by the preset encryption algorithm to obtain the ciphertext of the facial feature information. The ciphertext of the facial feature information is used as the first key for encrypting the screenshot image.

[0062] The first key for encrypting the screenshot is generated by using facial feature information, making the first key difficult to crack. The screenshot is subsequently encrypted with the first key, which can not only ensure the security of the screenshot, but also verify the user's identity through the first key, further improving the security of the data in the screenshot.

[0063] In some other embodiments of the present application, a first key can also be generated based on the user's facial image and the above-mentioned preset facial expressions. Specifically, in the embodiment of the present application, the facial expression identifier corresponding to the preset facial expression can be pre-set, such as setting the facial expression identifier corresponding to a smile to 001, the facial expression identifier corresponding to a blink to 002, the facial expression identifier corresponding to a pout to 003, and so on. Each time the user triggers a screenshot, a preset facial expression can be randomly used. After detecting that the user makes a preset facial expression in step 102, the facial expression identifier corresponding to the preset facial expression is obtained. After extracting the user's facial feature information from the facial image in the above manner, a second key is generated by a preset encryption algorithm, and the user's facial feature information and the facial expression identifier corresponding to the preset facial expression are encrypted using the second key by the preset encryption algorithm, and the encrypted string is used as the first key for encrypting the screenshot.

[0064] The first key for encrypting the screenshot is generated by using facial feature information and preset expression actions, making the first key more difficult to crack. The screenshot is subsequently encrypted with the first key, which can not only ensure the security of the screenshot, but also verify the user's identity through the first key. The preset expression actions can perform liveness detection on the user requesting decryption, preventing malicious elements from using the user's photos to defraud the data in the screenshot, further improving the security of the data in the screenshot.

[0065] In some other embodiments of the present application, a unique identifier corresponding to the APP (application) to which the current interface belongs can also be obtained, and the unique identifier can be a serial number used to uniquely identify the APP. The unique identifier is used as the above-mentioned second key. The facial feature information is encrypted using the unique identifier through a preset encryption algorithm to obtain a first key for encrypting the screenshot. Alternatively, the facial feature information and the expression identifier corresponding to the preset expression action are encrypted using the unique identifier through a preset encryption algorithm to obtain a first key for encrypting the screenshot.

[0066] The first key is obtained by encrypting the facial feature information through the unique identifier corresponding to the APP, or by encrypting the facial feature information and the preset facial expression action through the unique identifier corresponding to the APP. The screenshot is subsequently encrypted with the first key, which not only ensures the security of the screenshot, but also verifies the user's identity through the first key, and the preset facial expression action can detect the liveness of the user requesting decryption, preventing malicious elements from using the user's photos to defraud the data in the screenshot, further improving the security of the data in the screenshot. Moreover, since the unique identifier corresponding to the APP is difficult for the outside world to obtain, the encrypted screenshot can only be decrypted in the APP, further improving the security of the data in the screenshot.

[0067] Step 104: Use the first key to encrypt the screenshot image, and store the image ciphertext corresponding to the screenshot image.

[0068] The screenshot image is encrypted by using a preset encryption algorithm using the first key generated in any of the above step 103 to obtain a picture ciphertext corresponding to the screenshot image. A screenshot identifier is assigned to this screenshot operation, and the screenshot identifier is used to uniquely identify this screenshot operation. The screenshot identifier, the picture ciphertext, the second key, and the expression identifier corresponding to the above preset expression action are stored accordingly.

[0069] When a request to view the screenshot image is detected, the image ciphertext and the second key corresponding to the screenshot image are obtained, and the image ciphertext is decrypted according to the second key to obtain the screenshot image.

[0070] After the image ciphertext is stored through the operation of step 104, a viewing interface for viewing the screenshot image is provided in the interface of the APP, and the viewing interface is associated with the above-mentioned screenshot identifier. When it is detected that the user clicks on the viewing interface, the associated screenshot identifier is obtained from the viewing interface. According to the screenshot identifier, the corresponding stored image ciphertext, the second key, and the expression identifier corresponding to the above-mentioned preset expression action are obtained.

[0071] When it is detected that the user clicks on the viewing interface, the camera of the mobile terminal is also triggered to display a prompt message for prompting the user to adjust the mobile terminal so that his face is located within the shooting area of ​​the camera. When the camera detects that the user's face is completely located within the shooting area, the camera collects the user's facial image. And according to the expression identifier of the preset expression action stored above, a prompt message for prompting the user to make a preset expression action corresponding to the expression identifier is displayed. When the user sees the prompt message, he makes the corresponding preset expression action according to the prompt message. After the mobile terminal detects that the user makes the preset expression action through the camera, it can be determined that the current user is a living user, not a photo of the user, so as to perform the next decryption operation. If the user is not detected to make the preset expression action according to the prompt, the user's photo may be in front of the camera, not the user himself, so the subsequent decryption operation is no longer performed to ensure the security of the data in the screenshot.

[0072] After detecting that the user has made a preset expression, the user's facial feature information is extracted from the collected facial image. If the first key for encrypting the screenshot is generated only based on the user's facial feature information, the facial feature information is encrypted using the second key stored above to obtain the first key, and the image ciphertext is decrypted using the first key using the preset encryption algorithm to obtain the screenshot.

[0073] If the first key for encrypting the screenshot is generated based on the user's facial feature information and the expression identifier corresponding to the preset expression action, the facial feature information and the expression identifier corresponding to the preset expression action are encrypted using the second key stored above to obtain the first key, and the image ciphertext is decrypted using the first key using the preset encryption algorithm to obtain the screenshot.

[0074] If the first key for encrypting the screenshot is generated by encrypting the user's facial feature information using the unique identifier corresponding to the APP, or encrypting the facial feature information and the expression identifier corresponding to the preset expression action using the unique identifier corresponding to the APP, then the second key may not be stored when storing the ciphertext of the picture in step 104, but the unique identifier is obtained from the APP during decryption in this step, and the facial feature information is encrypted using the unique identifier to obtain the first key, or the facial feature information and the expression identifier corresponding to the preset expression action are encrypted using the unique identifier to obtain the first key. The picture ciphertext is decrypted using the first key using the preset encryption algorithm to obtain the screenshot.

[0075] After decrypting the image ciphertext in the manner described in any of the above embodiments to obtain a screenshot image, the screenshot image is displayed to allow the user to browse the data in the screenshot image.

[0076] In the embodiment of the present application, the screenshot is encrypted by facial feature information. It can not only ensure the security of the screenshot, but also verify the user's identity through the facial image, further improving the security of the data in the screenshot. This solution can also use facial feature information and preset facial expressions to encrypt the screenshot, making the first picture ciphertext more difficult to crack, which can not only ensure the security of the screenshot, but also verify the user's identity through the facial image, and the preset facial expression can detect the liveness of the user requesting decryption, avoiding malicious elements from using the user's photo to defraud the data in the screenshot, further improving the security of the data in the screenshot. It can also be encrypted by the unique identifier and facial feature information corresponding to the APP, or by the unique identifier, facial feature information and preset facial expression corresponding to the APP, which can not only ensure the security of the screenshot, but also verify the user's identity through the facial image, and the preset facial expression can detect the liveness of the user requesting decryption, avoiding malicious elements from using the user's photo to defraud the data in the screenshot, further improving the security of the data in the screenshot. Moreover, since the unique identifier corresponding to the APP is difficult for the outside world to obtain, the encrypted screenshots can only be decrypted in the APP, further improving the security of the data in the screenshots.

[0077] The present application embodiment provides a screen capture device, which is used to execute the screen capture method described in any of the above embodiments, such as Figure 2 As shown, the device comprises:

[0078] The face acquisition module 201 is used to detect a screenshot event triggered by a preset screenshot button in the current interface and to acquire a user's face image through a camera;

[0079] Screen capture module 202, used to detect that the user makes a preset expression action, take a screenshot of the current interface, and obtain a screenshot of the current interface;

[0080] The key generation module 203 is used to generate a first key according to the user's face image;

[0081] The encryption module 204 is used to encrypt the screenshot image with the first key and store the image ciphertext corresponding to the screenshot image.

[0082] The key generation module 203 is used to extract the user's facial feature information from the user's facial image; generate a second key through a preset encryption algorithm, use the second key to encrypt the facial feature information to obtain the ciphertext of the facial feature information; and determine the ciphertext of the facial feature information as the first key used to encrypt the screenshot image.

[0083] The key generation module 203 is used to obtain the expression identifier corresponding to the preset expression action; extract the user's facial feature information from the user's facial image; generate a second key through a preset encryption algorithm, and use the second key to encrypt the facial feature information and the expression identifier; and determine the encrypted string as the first key used to encrypt the screenshot image.

[0084] The key generation module 203 is used to obtain a unique identifier corresponding to the application to which the current interface belongs; extract the user's facial feature information from the user's facial image; use the unique identifier as a second key; encrypt the facial feature information using the second key through a preset encryption algorithm to obtain a ciphertext of the facial feature information; determine the ciphertext of the facial feature information as a first key for encrypting the screenshot; or, obtain an expression identifier corresponding to a preset expression action; encrypt the facial feature information and the pre-expression identifier using the second key through a preset encryption algorithm; and determine the encrypted string as the first key for encrypting the screenshot.

[0085] The device also includes: a decryption module, which is used to collect the user's facial image through the camera and detect the user making a preset facial expression when a request to view the screenshot image is detected; obtain the image ciphertext and the second key corresponding to the screenshot image; decrypt the image ciphertext according to the second key and the facial image to obtain the screenshot image.

[0086] A decryption module is used to extract the facial feature information of the user from the collected facial image; generate a first key for decrypting the image ciphertext based on the second key and the facial feature information; and decrypt the image ciphertext using the first key through a preset encryption algorithm to obtain the screenshot image.

[0087] A decryption module, used for, if the image ciphertext is encrypted only based on the user's facial feature information, using the second key to encrypt the facial feature information to obtain a first key; if the image ciphertext is encrypted based on the user's facial feature information and preset facial expressions, using the second key to encrypt the facial feature information and the expression identifier corresponding to the preset facial expression to obtain a first key; if the image ciphertext is encrypted based on the unique identifier corresponding to the application to which the current interface belongs and the user's facial feature information, obtaining the unique identifier corresponding to the application, and encrypting the facial feature information through the unique identifier to obtain the first key; if the image ciphertext is encrypted based on the unique identifier corresponding to the application to which the current interface belongs, the user's facial feature information and the preset facial expression, then obtaining the unique identifier corresponding to the application, and encrypting the facial feature information and the expression identifier corresponding to the preset facial expression to obtain the first key.

[0088] The present application embodiment provides a computer device for executing the screenshot method described in any of the above embodiments. Figure 3 As shown, the computer device includes a processor, a non-volatile storage medium, a memory and a network interface connected via a system bus. Among them, the non-volatile storage medium of the computer device stores an operating system, a database and computer-readable instructions, and the database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a screenshot method. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute a screenshot method. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0089] The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: detecting a screenshot event triggered by a preset screenshot button in the current interface, and collecting a user's facial image through a camera; detecting that the user makes a preset facial expression, taking a screenshot of the current interface, and obtaining a screenshot image of the current interface; generating a first key based on the user's facial image; encrypting the screenshot image using the first key, and storing an image ciphertext corresponding to the screenshot image.

[0090] When the processor executes the computer program, the following steps can also be implemented: extracting the user's facial feature information from the user's facial image; generating a second key through a preset encryption algorithm, using the second key to encrypt the facial feature information to obtain the ciphertext of the facial feature information; and determining the ciphertext of the facial feature information as the first key used to encrypt the screenshot image.

[0091] When the processor executes the computer program, the following steps can also be implemented: obtaining an expression identifier corresponding to a preset expression action; extracting the user's facial feature information from the user's facial image; generating a second key through a preset encryption algorithm, and using the second key to encrypt the facial feature information and the expression identifier; and determining the encrypted string as the first key for encrypting the screenshot image.

[0092] When the processor executes the computer program, the following steps can also be implemented: obtaining a unique identifier corresponding to the application to which the current interface belongs; extracting the user's facial feature information from the user's facial image; using the unique identifier as a second key; encrypting the facial feature information using the second key through a preset encryption algorithm to obtain the ciphertext of the facial feature information; determining the ciphertext of the facial feature information as the first key for encrypting the screenshot; or, obtaining an expression identifier corresponding to a preset expression action; encrypting the facial feature information and the pre-expression identifier using the second key through a preset encryption algorithm; and determining the encrypted string as the first key for encrypting the screenshot.

[0093] When the processor executes the computer program, the following steps can also be implemented: when a request to view a screenshot image is detected, the user's facial image is captured through the camera, and the user's preset facial expression is detected; the image ciphertext and the second key corresponding to the screenshot image are obtained; the image ciphertext is decrypted according to the second key and the facial image to obtain the screenshot image.

[0094] When the processor executes the computer program, the following steps can also be implemented: extracting the facial feature information of the user from the collected facial image; generating a first key for decrypting the image ciphertext based on the second key and the facial feature information; and decrypting the image ciphertext using the first key through a preset encryption algorithm to obtain the screenshot image.

[0095] When the processor executes the computer program, the following steps can also be implemented: if the image ciphertext is encrypted only based on the user's facial feature information, the second key is used to encrypt the facial feature information to obtain the first key; if the image ciphertext is encrypted based on the user's facial feature information and preset facial expressions, the second key is used to encrypt the facial feature information and the expression identifier corresponding to the preset facial expression to obtain the first key; if the image ciphertext is encrypted based on the unique identifier corresponding to the application to which the current interface belongs and the user's facial feature information, the unique identifier corresponding to the application is obtained, and the facial feature information is encrypted using the unique identifier to obtain the first key; if the image ciphertext is encrypted based on the unique identifier corresponding to the application to which the current interface belongs, the user's facial feature information and the preset facial expression, the unique identifier corresponding to the application is obtained, and the facial feature information and the expression identifier corresponding to the preset facial expression are encrypted using the unique identifier to obtain the first key.

[0096] The present application also provides a storage medium storing computer-readable instructions, such as Figure 4 As shown, when the computer-readable instructions are executed by one or more processors, the one or more processors perform the following steps: detecting a screenshot event triggered by a preset screenshot button in the current interface, and collecting the user's facial image through a camera; detecting that the user makes a preset facial expression, taking a screenshot of the current interface, and obtaining a screenshot image of the current interface; generating a first key based on the user's facial image; using the first key to encrypt the screenshot image, and storing the image ciphertext corresponding to the screenshot image.

[0097] The processor can also perform the following steps: extracting the user's facial feature information from the user's facial image; generating a second key through a preset encryption algorithm, using the second key to encrypt the facial feature information to obtain the ciphertext of the facial feature information; and determining the ciphertext of the facial feature information as the first key used to encrypt the screenshot image.

[0098] The processor can also perform the following steps: obtaining an expression identifier corresponding to a preset expression action; extracting the user's facial feature information from the user's facial image; generating a second key through a preset encryption algorithm, and using the second key to encrypt the facial feature information and the expression identifier; and determining the encrypted string as the first key used to encrypt the screenshot image.

[0099] The processor can also perform the following steps: obtain a unique identifier corresponding to the application to which the current interface belongs; extract the user's facial feature information from the user's facial image; use the unique identifier as a second key; encrypt the facial feature information using the second key through a preset encryption algorithm to obtain the ciphertext of the facial feature information; determine the ciphertext of the facial feature information as the first key used to encrypt the screenshot; or, obtain an expression identifier corresponding to a preset expression action; encrypt the facial feature information and the pre-expression identifier using the second key through a preset encryption algorithm; and determine the encrypted string as the first key used to encrypt the screenshot.

[0100] The processor can also perform the following steps: when a request to view a screenshot image is detected, the user's facial image is captured through the camera, and the user's preset facial expression is detected; the image ciphertext and the second key corresponding to the screenshot image are obtained; the image ciphertext is decrypted according to the second key and the facial image to obtain the screenshot image.

[0101] The processor can also perform the following steps: extracting the facial feature information of the user from the collected facial image; generating a first key for decrypting the image ciphertext based on the second key and the facial feature information; and decrypting the image ciphertext using the first key through a preset encryption algorithm to obtain the screenshot image.

[0102] The processor can also perform the following steps: if the image ciphertext is encrypted only based on the user's facial feature information, the second key is used to encrypt the facial feature information to obtain a first key; if the image ciphertext is encrypted based on the user's facial feature information and preset facial expressions, the second key is used to encrypt the facial feature information and the expression identifier corresponding to the preset facial expression to obtain a first key; if the image ciphertext is encrypted based on the unique identifier corresponding to the application to which the current interface belongs and the user's facial feature information, the unique identifier corresponding to the application is obtained, and the facial feature information is encrypting the first key through the unique identifier; if the image ciphertext is encrypted based on the unique identifier corresponding to the application to which the current interface belongs, the user's facial feature information and the preset facial expression, the unique identifier corresponding to the application is obtained, and the facial feature information and the expression identifier corresponding to the preset facial expression are encrypting the first key.

[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0104] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0105] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A screenshot method, It is characterized in that include: Detecting a screenshot event triggered by a preset screenshot button in the current interface, and capturing a user's face image through a camera; Detecting that the user has made a preset expression action, taking a screenshot of the current interface, and obtaining a screenshot of the current interface; Generate a first key according to the facial image of the user; The step of generating a first key according to the face image of the user includes: Obtain a unique identifier corresponding to the application to which the current interface belongs; Extracting facial feature information of the user from the facial image of the user; Using the unique identifier as a second key; The facial feature information is encrypted using the second key through a preset encryption algorithm to obtain a picture ciphertext of the facial feature information; and the picture ciphertext is determined as a first key for encrypting the screenshot picture; If the image ciphertext is encrypted according to the unique identifier corresponding to the application to which the current interface belongs, the facial feature information of the user, and the preset expression action, then the unique identifier corresponding to the application is obtained, and the facial feature information and the expression identifier corresponding to the preset expression action are encrypting by the unique identifier to obtain a first key; Encrypting the screenshot image using the first key, and storing the image ciphertext corresponding to the screenshot image; Storing the image ciphertext corresponding to the screenshot image includes: allocating a screenshot identifier for the screenshot operation, the screenshot identifier being used to identify the screenshot operation; and correspondingly storing the screenshot identifier, the image ciphertext, the second key, and an expression identifier corresponding to the preset expression action; The method further comprises: When it is detected that the user clicks on the viewing interface, an associated screenshot identifier is obtained from the viewing interface; the viewing interface refers to an interface in the interface of the application program for viewing screenshot images; the viewing interface is associated with the screenshot identifier; According to the screenshot identifier, obtain the corresponding stored picture ciphertext, the second key and the expression identifier corresponding to the preset expression action; After storing the ciphertext of the image corresponding to the screenshot image, the method further includes: When a request to view the screenshot is detected, the facial image of the user is captured by the camera, and the user is detected to perform the preset expression action; Obtaining the image ciphertext and the second key corresponding to the screenshot image; The picture ciphertext is decrypted according to the second key and the face image to obtain the screenshot picture.

2. The method according to claim 1, It is characterized in that The step of generating a first key according to the face image of the user includes: Extracting facial feature information of the user from the facial image of the user; Generate a second key by using a preset encryption algorithm, and use the second key to encrypt the facial feature information to obtain a ciphertext of the facial feature information; The ciphertext of the facial feature information is determined as a first key for encrypting the screenshot image.

3. The method according to claim 1, It is characterized in that The step of generating a first key according to the face image of the user includes: Obtaining an expression identifier corresponding to the preset expression action; Extracting facial feature information of the user from the facial image of the user; Generate a second key by using a preset encryption algorithm, and use the second key to encrypt the facial feature information and the expression identifier; The encrypted character string is determined as a first key used to encrypt the screenshot image.

4. The method according to claim 1, It is characterized in that The decrypting the picture ciphertext according to the second key and the face image to obtain the screenshot picture includes: Extracting facial feature information of the user from the collected facial image; Generate a first key for decrypting the image ciphertext according to the second key and the facial feature information; The image ciphertext is decrypted using the first key through a preset encryption algorithm to obtain the screenshot image.

5. The method according to claim 4, It is characterized in that The step of generating a first key for decrypting the image ciphertext according to the second key and the facial feature information includes: If the image ciphertext is encrypted only based on the user's facial feature information, the facial feature information is encrypted using the second key to obtain the first key; If the image ciphertext is encrypted according to the user's facial feature information and preset facial expressions, the second key is used to encrypt the facial feature information and the facial expression identifier corresponding to the preset facial expression to obtain the first key; If the image ciphertext is encrypted based on the unique identifier corresponding to the application to which the current interface belongs and the user's facial feature information, then the unique identifier corresponding to the application is obtained, and the facial feature information is encrypted using the unique identifier to obtain a first key.

6. A screen capture device, It is characterized in that include: The face acquisition module is used to detect the screenshot event triggered by the preset screenshot button in the current interface and capture the user's face image through the camera; A screenshot module is used to detect that the user makes a preset expression action, take a screenshot of the current interface, and obtain a screenshot image of the current interface; A key generation module, used to generate a first key according to the face image of the user; The key generation module is specifically used for: Obtain a unique identifier corresponding to the application to which the current interface belongs; Extracting facial feature information of the user from the facial image of the user; Using the unique identifier as a second key; The facial feature information is encrypted using the second key through a preset encryption algorithm to obtain a ciphertext of the facial feature information; Determining the picture ciphertext as a first key for encrypting the screenshot picture; If the image ciphertext is encrypted according to the unique identifier corresponding to the application to which the current interface belongs, the facial feature information of the user, and the preset expression action, then the unique identifier corresponding to the application is obtained, and the facial feature information and the expression identifier corresponding to the preset expression action are encrypting by the unique identifier to obtain a first key; An encryption module, used to encrypt the screenshot image using the first key, and store the image ciphertext corresponding to the screenshot image; Storing the image ciphertext corresponding to the screenshot image includes: allocating a screenshot identifier for the screenshot operation, the screenshot identifier being used to identify the screenshot operation; and correspondingly storing the screenshot identifier, the image ciphertext, the second key, and an expression identifier corresponding to the preset expression action; Also includes: When it is detected that the user clicks on the viewing interface, an associated screenshot identifier is obtained from the viewing interface; the viewing interface refers to an interface in the interface of the application program for viewing screenshot images; the viewing interface is associated with the screenshot identifier; According to the screenshot identifier, obtain the corresponding stored picture ciphertext, the second key and the expression identifier corresponding to the preset expression action; After storing the ciphertext of the image corresponding to the screenshot image, the method further includes: When a request to view the screenshot is detected, the facial image of the user is captured by the camera, and the user is detected to perform the preset expression action; Obtaining the image ciphertext and the second key corresponding to the screenshot image; The picture ciphertext is decrypted according to the second key and the face image to obtain the screenshot picture.

7. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 5.

8. A storage medium storing computer-readable instructions, wherein when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the method according to any one of claims 1 to 5.