Password setting method, unlocking method, electronic equipment and storage medium
By generating and using password images, the problems of password forgetting and dynamic password terminals are solved, and convenient password setting and unlocking are achieved without timeliness.
Patent Information
- Application Number
- CN202311192078.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-14
- Publication Date
- 2025-03-14
AI Technical Summary
Existing password technology can easily lead to password forgetting, and dynamic password terminals need to be purchased and are time-sensitive, making application inconvenient.
The password image is generated through the password information entered by the user, and the characteristics are extracted according to the selected target password image for storage, so as to realize password setting and unlocking.
It deepens users' memory of passwords, avoids password forgetting, provides a convenient unlocking method, and has no timeliness and can be replaced at any time without a carrier.
Smart Images

Figure CN119622706A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of password technology, and in particular to a password setting method, an unlocking method, an electronic device and a storage medium. Background Art
[0002] The industry already has relevant cryptographic technologies, such as digital verification, face verification, fingerprint verification, and so on.
[0003] The industry has also conducted research on dynamic passwords. For example, a password is saved in a preset terminal (such as a token, U-shield, etc.). The password can change randomly to achieve a dynamic password to enhance confidentiality. Summary of the invention
[0004] Embodiments of the present disclosure provide a password setting method, an unlocking method, an electronic device, and a storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a password setting method, which may include:
[0006] Obtain the first password information entered;
[0007] generating one or more associated password images according to the first password information;
[0008] receiving a selection operation for the one or more associated cryptographic images;
[0009] Extract the features of the selected target password image and save it.
[0010] In a second aspect, an embodiment of the present disclosure provides a password unlocking method, which may include:
[0011] Providing an unlocking interface; the unlocking interface includes one or more unlocking modes;
[0012] Acquire the unlocking image according to the selected target unlocking method;
[0013] Detecting whether the unlocking image matches a pre-stored target password image; the password image is one or more associated password images generated according to the preset first password information;
[0014] Unlock or return unlock failure information based on the detection result.
[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device, the electronic device comprising:
[0016] one or more processors;
[0017] A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the password setting method and / or the password unlocking method;
[0018] One or more input / output I / O interfaces are connected between the processor and the memory and are configured to implement information interaction between the processor and the memory.
[0019] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the password setting method and / or the password unlocking method when executed by a processor.
[0020] The disclosed embodiment generates a password image from the input first password information (e.g., text information and / or audio information), thereby realizing the visualization of the first password information, which can deepen the user's memory and effectively avoid forgetting the password, so that the user can smoothly unlock the password according to the password image in the subsequent unlocking stage, providing convenience for password unlocking. Moreover, the password of the disclosed embodiment has no time limit, can be used all the time or changed at any time according to the user's needs, and does not require a carrier, avoiding the inconvenience caused by the need for the user to carry it with them. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In the accompanying drawings of the embodiments of the present disclosure:
[0022] Figure 1 A flowchart of a password setting method provided in an embodiment of the present disclosure;
[0023] Figure 2 It is a schematic diagram of the diffusion model principle in the related technology;
[0024] Figure 3 A flowchart of a password unlocking method provided by an embodiment of the present disclosure;
[0025] Figure 4 A flowchart of a password setting method embodiment provided by an embodiment of the present disclosure;
[0026] Figure 5 A flowchart of a password unlocking method embodiment provided by an embodiment of the present disclosure;
[0027] Figure 6 A block diagram of the electronic device provided in the embodiment of the present disclosure;
[0028] Figure 7 A block diagram of the computer-readable storage medium provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the communication perception data processing method and computer-readable storage medium provided by the embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings.
[0030] The present disclosure will be described more fully below with reference to the accompanying drawings, but the embodiments shown may be embodied in different forms, and the present disclosure should not be construed as being limited to the embodiments set forth below. On the contrary, the purpose of providing these embodiments is to make the present disclosure thorough and complete, and will enable those skilled in the art to fully understand the scope of the present disclosure.
[0031] The accompanying drawings of the embodiments of the present disclosure are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification, and are used together with the detailed embodiments to explain the present disclosure, and do not constitute a limitation of the present disclosure. By describing the detailed embodiments with reference to the accompanying drawings, the above and other features and advantages will become more apparent to those skilled in the art.
[0032] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.
[0033] The terms used in the present disclosure are only used to describe specific embodiments and are not intended to limit the present disclosure. The term "and / or" as used in the present disclosure includes any and all combinations of one or more related enumerated items. The singular forms "one" and "the" as used in the present disclosure are also intended to include plural forms, unless the context clearly indicates otherwise. The terms "including", "made of..." as used in the present disclosure specify the presence of the features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof.
[0034] Unless otherwise defined, all terms (including technical and scientific terms) used in this disclosure have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined in this disclosure.
[0035] The industry already has relevant password technologies, such as digital verification, face verification, and fingerprint verification. However, users of digital verification methods are prone to forgetting passwords, especially long and complex passwords, and face verification and fingerprint verification technologies are prone to being unlocked by similar faces or fingerprints, and are not very secure.
[0036] The industry has also conducted research on dynamic passwords. For example, a password is saved in a preset terminal (such as a token, U shield, etc.), and the password changes periodically. However, the terminal usually needs to be purchased, has a time limit, and generally needs to be carried around, which is inconvenient to use.
[0037] The disclosed embodiment scheme proposes a novel password setting and unlocking scheme, which can generate a password image (which can include but is not limited to images and videos) through password information input by the user (for example, which can include but is not limited to text information, audio information, operation information, terminal status information, etc.). Since users may have their own style and preferences when setting image passwords, and even include commonly used code words, the disclosed embodiment scheme visualizes these styles, preferences and code words of users, which can deepen the user's memory.
[0038] In addition, what users input is diversified and personalized one-dimensional information. Different from the password composed of characters (such as numbers, letters, special symbols, etc.), the meanings expressed by audio information and text information are ever-changing. The password image is just the concretization and stylization of these one-dimensional information. Different input information will obtain different pictures, so the security is not weaker than some existing character passwords.
[0039] Compared with the related art, the disclosed embodiment scheme uses images as passwords, which is faster, more convenient, more efficient, more diversified, and more scenario-based (it can be images of any scenario) on the basis of ensuring security, and is easy to remember, avoiding password forgetting. The disclosed embodiment scheme is an exploration of AIGC (AI Generated Content) applications. All models used are pre-trained models. Audio / text information to image conversion will become the focus of research and application in the field of machine vision in various industries.
[0040] The password setting method and password unlocking method of the embodiments of the present disclosure can be executed by any electronic device that needs to be encrypted and unlocked, such as a terminal device or a server. The terminal device may include but is not limited to: vehicle-mounted equipment, user equipment (UE), mobile equipment, computing equipment, wearable devices, etc., for example, including but not limited to cellular phones, cordless phones, personal digital assistants (PDA), portable computers, etc. The password setting method and password unlocking method can be implemented by a processor calling a computer-readable program instruction stored in a memory, or can be implemented by a server.
[0041] The following is a detailed introduction to the embodiments of the present disclosure.
[0042] The present disclosure provides a password setting method, such as Figure 1As shown, the method may include steps S11-S14:
[0043] S11, obtaining input first password information;
[0044] S12, generating one or more associated password images according to the first password information;
[0045] S13, receiving a selection operation for one or more associated password images;
[0046] S14, extracting the features of the selected target password image and saving it.
[0047] In the embodiment of the present disclosure, obtaining the input first password information may include:
[0048] Providing at least one password setting interaction mode; acquiring first password information according to a target password setting interaction mode selected from the at least one password setting interaction mode;
[0049] and / or,
[0050] Provide at least one application scenario; determine a target application scenario selected from the at least one application scenario; provide a corresponding password setting interaction method according to the target application scenario, so as to obtain the first password information through the provided password setting interaction method.
[0051] In an embodiment of the present disclosure, when a user needs to generate a password, a preset password setting button can be triggered. When the terminal detects that the password setting button is triggered, it can provide one or more password setting interaction methods, for example, including but not limited to providing a text input interface, turning on an audio input device, turning on an operation detection device (for example, may include but is not limited to a gesture detection device), turning on a terminal status detection device, etc., wherein, when one password setting interaction method is provided, the user can be prompted by voice or text to enter the first password information based on the provided password setting interaction method (for example, please enter the password content by text / voice); when multiple password setting interaction methods are provided, the user can be reminded to select a target password setting interaction method from the multiple password setting interaction methods, and enter the first password information based on the selected target password setting interaction method.
[0052] In the disclosed embodiment, the embodiment provides multiple options for users, improves the user experience, and increases the flexibility of password setting.
[0053] In the disclosed embodiment, when the user needs to generate a password, a preset password setting button can be triggered. When the terminal detects that the password setting button is triggered, it can provide multiple application scenarios for the user to choose. For example, the application scenario may include but is not limited to: home scenario, work scenario, private scenario, public scenario, navigation scenario, driving scenario, etc. The user can select the corresponding application scenario according to the scenario in which he is located, and the terminal provides the corresponding password setting interaction mode according to the selected application scenario. For example, in the private scenario, any password setting interaction mode that can collect the first password information, such as a text input interface, an audio input device, and a gesture collection device, can be provided. In order to avoid leakage of password information in the public scenario, only a text input interface and a gesture collection device can be provided. In the driving scenario, considering that the user may not be able to input text, an audio input device and a gesture detection device can be started. According to the different password setting interaction modes provided by different application scenarios, the user can further select the password setting interaction mode, or directly enter the first password information according to a provided password setting interaction mode, or select one of the multiple password setting interaction modes provided to enter the first password information.
[0054] In the embodiment of the present disclosure, if the user's manual selection of an application scenario is not detected within a preset time (e.g., within 5 seconds) of providing multiple application scenarios, it can be determined that the user is inconvenient to manually select an application scenario, and the audio input device and the gesture detection device can be automatically started for the user, so that the user can enter the first password information through audio or gesture. Before the user enters the password information through gesture, the terminal can be trained in advance so that the terminal recognizes the semantics corresponding to each gesture.
[0055] In the disclosed embodiment, the embodiment scheme collects the first password information according to different application scenarios, so that the interaction between the terminal and the user is more humane and the user experience is further improved.
[0056] In the embodiments of the present disclosure, the user can input text information and / or audio information that the user is familiar with, interested in, or easy to remember in the provided password setting interaction mode (for example, it can be a text input interface, it can be an audio input device, or both). For example, the first password information "a girl under a cherry blossom tree in the second dimension" in text or audio form can be input, and the embodiment of the present disclosure can obtain the first password information, and generate one or more password images matching the content of the password information according to the first password information, for example, a girl with a second dimension style standing under a cherry blossom tree; for another example, the first password information "a cute puppy with a mecha style" in text or audio form can be input, and the embodiment of the present disclosure can obtain the first password information, and generate one or more password images matching the content of the first password information according to the first password information, for example, a mechanical dog with a metallic texture.
[0057] In the embodiment of the present disclosure, when multiple password images are generated, the multiple password images are associated, and in the multiple password images, the image colors, character postures, clothing styles, etc. can be different, and the user can select at least one image as the target password image according to needs or preferences. When the user cannot select the image that he needs or likes from the multiple password images generated, multiple different password images can be regenerated and reselected until a satisfactory target password image is obtained.
[0058] In the disclosed embodiment, the user can use different first password information (audio information, text information, operation information, terminal status information) as input carriers anytime and anywhere to generate different password images, which reflects the convenience, diversification, and multi-scenario advantages of the disclosed embodiment, and the embodiment is more humane, making the password generation process more entertaining and enhancing the user experience. Compared with the password composed of characters, the password image can deepen the user's memory and impression of the password and effectively extend the user's password memory time. In addition, since the first password information can be ever-changing, the password image generated according to the first password information is also ever-changing and will not be easily cracked. Therefore, the password scheme of the disclosed embodiment can ensure security, and the password of the disclosed embodiment has no timeliness, can be used all the time or changed at any time according to user needs, and does not require a carrier, avoiding the inconvenience caused by the need for users to carry it with them.
[0059] In the disclosed embodiment, the password image may include but is not limited to: a password picture and / or a password video.
[0060] In the disclosed embodiment, the password image may include but is not limited to: color image, black and white image, one-dimensional image, multi-dimensional image, etc., and there is no limitation on the detailed color, size, shape, presentation method, content, etc. of the password image.
[0061] In the disclosed embodiment, the password video may include but is not limited to: dynamic avatars, dynamic expressions, film and television clips, recorded videos, etc. There is no limitation on the detailed color, size, video style, presentation method, content, etc. of the password video.
[0062] In the disclosed embodiments, the generated password image can be used as wallpaper, avatar, etc., so as to remind the user of the password information and the content of the password image in real time to avoid forgetting, and one image can be used for multiple purposes.
[0063] In the embodiment of the present disclosure, generating one or more associated password images according to the first password information includes:
[0064] Inputting the first password information into a preset image generation model, and generating a password image by the image generation model;
[0065] Among them, the image generation model is obtained by training the preset deep learning network with image text as training data.
[0066] In the disclosed embodiment, the image generation model may include but is not limited to an image generation model and a video generation model. The image generation model may be a currently existing generative model, and a generative model capable of generating images is used as the image generation model, and a generative model capable of generating videos is used as the video generation model. Here, the detailed structure of the deep learning network of the image generation model is not limited.
[0067] In the disclosed embodiment, in the case where the password image includes a password image, the image generation model includes an image generation model;
[0068] Generating one or more associated password images according to the first password information includes:
[0069] The first password information is input into a preset image generation model, and a password image is generated through the image generation model; the image generation model includes: a trained feature extraction model, a diffusion model and a super-resolution model.
[0070] In an embodiment of the present disclosure, generating a password image through an image generation model may include:
[0071] Acquire first feature information of the first password information through a feature extraction model;
[0072] Generate a first initial image according to the first feature information by using a diffusion model;
[0073] The resolution of the first initial image is processed by a super-resolution model to obtain a password image.
[0074] In the disclosed embodiment, the input of the feature extraction model is used as the input of the image generation model, the output of the feature extraction model is connected to the input of the diffusion model, the output of the diffusion model is connected to the input of the super-resolution model, and the output of the super-resolution model is used as the output of the image generation model.
[0075] In the embodiment of the present disclosure, the feature extraction model, diffusion model and super-resolution model can all adopt currently existing models and be pre-trained according to the requirements of the embodiment of the present disclosure.
[0076] In the disclosed embodiment, the feature extraction model is used to understand the content of the input text or audio, and convert the content into specific features to obtain feature information (for example, the first feature information can be obtained based on the first password information).
[0077] In the embodiment of the present disclosure, the first feature information may be a three-dimensional feature matrix, such as a dimension of (1, 77, 768), for example:
[0078] [[[0.25,0.34,...,0.35],[0.25,0.34,...,0.35],[0.25,0.34,...,0.35],[0.25,0.34,...,0.35]...[0.25,0.34,...,0.35]]].
[0079] In the embodiment of the present disclosure, the diffusion model (Diffusion_model) can generate an image according to the first feature information extracted by the feature extraction model, and the image can be called a first initial image.
[0080] In the embodiments of the present disclosure, Figure 2 As shown in the figure, the basic principle of the diffusion model is that an original image origin_image is continuously added with noise in the forward process until a noise image noise_image is finally generated, and then the noise image noise_image is continuously removed in the reverse process to restore it to the original image origin_image. In the process of reverse noise removal, it is necessary to predict the noise distribution information removed in each stage through learning (i.e. training).
[0081] In an embodiment of the present disclosure, the deep learning network includes: a first deep learning network, and the image-text pairs include image-text pairs; the diffusion model is obtained by pre-training the first deep learning network with the image-text pairs as training data.
[0082] In the embodiment of the present disclosure, pre-training the diffusion model may include:
[0083] Obtain training data; the training data includes: image-text pairs;
[0084] The training data is input into the first deep learning network, and the first deep learning network adds noise to the first original image (origin_image1) in the image-text pair to obtain a noise image, and fuses the noise image with the text in the image-text pair to obtain a first fused noise image, and reversely eliminates the noise of the first fused noise image to obtain a second original image (origin_image2, during the training stage, origin_image2 and origin_image1 are not necessarily exactly the same); loss calculation is performed based on the second original image, and when the calculated loss value meets the preset requirements, the parameters of the first deep learning network are saved to obtain a trained diffusion model, and when the calculated loss value does not meet the preset requirements, the parameters of the first deep learning network are adjusted, and the first deep learning network is retrained.
[0085] In the disclosed embodiment, during the training process of the first deep learning network, origin_image1 first adds noise to obtain a noise image noise_image, and during the reverse noise elimination process, the noise image noise_image and the text text corresponding to the image in the image text pair are fused into a new noise image, and origin_image1 is restored by reversely eliminating the noise in the new noise image. Among them, the noise added in the forward direction is known noise, and the noise eliminated in the reverse direction is unknown noise. It is necessary to obtain the noise distribution information of each reverse noise elimination stage through one or more trainings, and adjust the noise distribution information of each reverse noise elimination stage during each training process. After the training is completed, the noise distribution information of each reverse noise elimination stage during the last training is saved, so as to obtain a trained diffusion model.
[0086] In the disclosed embodiment, according to the trained diffusion model and based on the saved noise distribution information, when processing the first feature information output by the feature extraction model, a password image matching the first feature information can be generated based on the noise distribution information and the first feature information.
[0087] In an embodiment of the present disclosure, generating a first initial image according to first feature information by using a diffusion model includes:
[0088] Fusing the input first feature information with the pre-stored noise image to generate a second fused noise image;
[0089] The second fused noise image is subjected to inverse noise elimination according to the pre-stored noise distribution information to obtain the initial image.
[0090] In the disclosed embodiment, when the trained diffusion model is used to generate the first initial image, only the second half of the diffusion model, i.e., the reverse noise elimination process, needs to be used. The first feature information output by the feature extraction model can be fused with a pre-stored noise image to generate the above-mentioned second fused noise image, and the second fused noise image is continuously denoised through the reverse diffusion process to generate a low-resolution image image_low in a physical sense, i.e., the above-mentioned first initial image.
[0091] In the disclosed embodiment, according to the password generation principle and the password unlocking principle, some information used in password generation is consistent with some information used in unlocking, and the noise image used in generating the password image during the password generation process and the noise image noise_image (that is, the pre-stored noise image mentioned above) used in unlocking are consistent, thereby ensuring that the image generated each time for the same password information is the same.
[0092] In the disclosed embodiment, the super-resolution model (Vae_model) can process the input low-resolution image and output a high-resolution image.
[0093] In the disclosed embodiment, after the first initial image is input into the super-resolution model, a cipher image with high resolution can be obtained.
[0094] In the embodiment of the present disclosure, high resolution may refer to a resolution greater than or equal to a preset first resolution threshold, and low resolution may refer to a resolution less than or equal to a preset second resolution threshold, wherein the first resolution threshold is greater than the second resolution threshold.
[0095] In the disclosed embodiment, when the cryptographic image includes a cryptographic video, the image generation model may include a video generation model;
[0096] One or more associated password images are generated according to the password information, including:
[0097] The password information is input into a preset video generation model, and the password video is generated by the video generation model.
[0098] In the disclosed embodiment, the video generation model may adopt an existing already trained generative model having the function of generating video according to text and / or audio. The detailed structure of the second deep learning network included in the video generation model is not limited herein.
[0099] In the disclosed embodiment, the video generation model may adopt but is not limited to: an artificial intelligence system model Make-A-Video, which may generate a short video based on a given text prompt.
[0100] In the disclosed embodiment, the generated password image can be stored separately as a password, and unlocked only by the password image when the password is unlocked, or it can be stored together with the input first password information to form a password, so that when the password is unlocked, the password image and the first password information are used together to unlock the password, thereby enhancing the password strength.
[0101] In the embodiment of the present disclosure, when the target password image includes multiple associated password images, extracting the features of the selected target password image for storage includes:
[0102] The features of the multiple associated password images are extracted and saved respectively, and the first selection order of the multiple associated password images is saved to obtain the cascade password.
[0103] In the disclosed embodiment, the user can also generate multiple password images as cascade passwords as needed to enhance the strength of the password and effectively reduce the probability of the password being cracked. The multiple password images in the cascade password have a preset arrangement order (for example, the first selection order of multiple associated password images when the user selects the target password image), and the arrangement order is also saved as the password content. When the user decodes, for the cascade password, the arrangement order of the decoded images that need to be input is the same as the above arrangement order.
[0104] The disclosed embodiment also provides a password unlocking method, such as Figure 3 As shown, the method may include steps S21-S24:
[0105] S21. Providing an unlocking interface; the unlocking interface includes one or more unlocking methods;
[0106] S22, acquiring an unlocking image according to the selected target unlocking method;
[0107] S23, detecting whether the unlocking image matches a pre-stored target password image; the target password image is one or more associated password images generated according to the preset first password information;
[0108] S24. Unlock or return unlock failure information according to the detection result.
[0109] In the disclosed embodiment, the unlocking image is one or more images obtained to determine whether they are password images, and is used to unlock. The unlocking image can be obtained based on the second password information provided by the user when unlocking, or can be selected by the user from multiple images provided in advance. The method for obtaining the unlocking image is not limited here, and the method for obtaining the unlocking image can be determined based on the unlocking method selected by the user.
[0110] In the embodiment of the present disclosure, the unlocking image may include but is not limited to: an unlocking image and / or an unlocking video.
[0111] In the disclosed embodiment, the unlock image may include but is not limited to: color image, black and white image, one-dimensional image, multi-dimensional image, etc. There is no limitation on the detailed color, size, shape, presentation method, content, etc. of the unlock image.
[0112] In the disclosed embodiment, the unlocking video may include but is not limited to: dynamic avatars, dynamic expressions, film and television clips, recorded videos, etc. There is no limitation on the detailed color, size, video style, presentation method, content, etc. of the unlocking video.
[0113] In the disclosed embodiment, the password unlocking can be performed based on the input second password information and the target password image, or based on the target password image alone. Since the user may misremember or forget the password information when unlocking, the password information may not necessarily be the correct first password information. Here, in order to distinguish it from the correct first password information input when the password is generated, the password information input by the user when unlocking is recorded as the second password information.
[0114] In the disclosed embodiment, the user can set one or more unlocking methods when setting the password, and set corresponding unlocking method selection controls for different unlocking methods, so that the unlocking method selection controls are provided on the unlocking interface when the user needs to unlock, so that the user can select different unlocking methods. Alternatively, any one of the multiple unlocking methods can be used by default to unlock when setting the password.
[0115] In the embodiment of the present disclosure, the terminal can obtain the unlocking image required for the user to unlock based on the unlocking method selected by the user (i.e., the unlocking method selection control triggered). The unlocking method in the embodiment of the present disclosure may include the above-mentioned two unlocking methods (the first unlocking method: unlocking based on the second password information and the password image, the second unlocking method: unlocking based on the password image alone). The difference between the two unlocking methods mainly lies in the method of obtaining the unlocking image. After determining the unlocking image, both methods determine whether the unlocking image is the password image, that is, detect whether the unlocking image is consistent with the pre-stored password image. The following is a detailed introduction to the methods of obtaining the unlocking image of the two unlocking methods.
[0116] Method 1:
[0117] In the embodiment of the present disclosure, when the target unlocking mode is the first unlocking mode, acquiring the unlocking image according to the target unlocking mode may include:
[0118] Obtaining input second password information; the second password information may include text information and / or audio information;
[0119] At least one unlocking image is generated according to the second password information.
[0120] In the disclosed embodiment, the second password information may be input into a preset image generation model, and the image generation model may generate at least one unlocking image.
[0121] In the embodiment of the present disclosure, in the first unlocking mode, the user is required to provide password information when unlocking. Therefore, a preset unlocking interaction device may be provided at this time so that the user can input password information through the unlocking interaction device.
[0122] In the embodiment of the present disclosure, one or more images can be generated again according to the aforementioned image generation model based on the input second password information. At this time, since the input second password information is not necessarily correct, the generated image is not necessarily the password image. The one or more images generated at this time can be recorded as unlocking images.
[0123] In the embodiment of the present disclosure, when the unlock image includes an unlock image, the image generation model includes an image generation model; the image generation model includes: a trained feature extraction model, a diffusion model, and a super-resolution model. In the embodiment of the present disclosure, when the unlock image includes an unlock video, the image generation model includes a video generation model.
[0124] Method 2:
[0125] In the embodiment of the present disclosure, when the target unlocking method is the second unlocking method, acquiring the unlocking image according to the target unlocking method may include:
[0126] Providing multiple mixed images to be selected and the number of images to be selected;
[0127] Obtain an image that matches the number of images and is selected from multiple mixed images as an unlocking image;
[0128] Wherein, a plurality of mixed images are obtained based on the password image and the preset interference image.
[0129] In the disclosed embodiment, an interference image library may be set up, and the number of interference images in the interference image library is not limited. For example, the interference image library may be 100 in number. Both the interference image and the password image are configured with a specific identifier. Each time a user opens an unlocking interface (or an unlocking interaction interface) and needs to unlock, the system may randomly select one or more interference images and password images that can be unlocked and put them together in random order to form a plurality of mixed images, which are displayed on the unlocking interface for the user to select.
[0130] In the disclosed embodiment, the interference image may be automatically generated, or may be generated in advance based on input text and / or audio information, or may be captured from certain set images. The method for obtaining the interference image is not limited herein.
[0131] In the embodiment of the present disclosure, after the user selects any one or more images from the mixed images in the unlocking interface, these images can be used as unlocking images.
[0132] In the disclosed embodiment, detecting whether the unlocking image matches the pre-stored target password image includes:
[0133] detecting whether the identifier of each unlocking image in at least one unlocking image is the identifier of the target password image;
[0134] In the case where the identification of each unlocking image is the identification of the target password image, confirming that the unlocking image matches the target password image; or,
[0135] In the event that the identification of any one or more unlocking images is not the identification of the target password image, it is determined that the unlocking image does not match the target password image.
[0136] In the disclosed embodiment, after the user selects an unlock image, the identifications of these unlock images can be retrieved according to their triggered states, and the identifications of these unlock images can be checked one by one to see whether they match the identifications of the target password image; if the identification of each unlock image can match the target password image with the same identification, it can be confirmed that the unlock image matches the target password image; if the identification of any one or more unlock images does not match the target password image with the same identification, it is confirmed that the unlock image does not match the target password image.
[0137] In the embodiment of the present disclosure, when the password to be unlocked is a cascade password, detecting whether the unlocking image matches the pre-stored target password image may also include:
[0138] Before detecting whether the identification of each unlocking image in at least one unlocking image is the identification of the target password image, detecting whether the second selection order of the selected multiple unlocking images is the same as the first selection order of the pre-stored multiple target password images; if the second selection order is the same as the first selection order, entering the process of detecting whether the identification of each unlocking image in at least one unlocking image is the identification of the target password image; if the second selection order is not the same as the first selection order, determining that the unlocking image does not match the target password image;
[0139] or,
[0140] When the identifier of each unlocking image is the identifier of the target password image, it is detected whether the second selection order of the selected multiple unlocking images is the same as the first selection order of the pre-stored multiple target password images; when the second selection order is the same as the first selection order, it is confirmed that the unlocking image matches the target password image; when the second selection order is different from the first selection order, it is confirmed that the unlocking image does not match the target password image.
[0141] In the disclosed embodiment, for the cascade password, when detecting whether the unlock image matches the target password image, it is also necessary to detect the second selection order of the acquired multiple unlock images. The second selection order may refer to the selection order when the user selects the unlock image from the multiple mixed images provided by the terminal. For example, if the selected unlock images are identified as 1, 2, and 3 respectively, if the user first selects the unlock image identified as 2, then selects the unlock image identified as 3, and finally selects the unlock image identified as 1 when selecting these three unlock images, then the second selection order is 231. The second selection order may also refer to the artificial arrangement order obtained by the user after selecting multiple unlock images from multiple mixed images and sorting the multiple unlock images. For example, for the three unlock images identified as 1, 2, and 3, after the user selects these unlock images, the three unlock images may be sorted according to the memory of the arrangement order of the password images. For example, they may be sorted as 321, and the second selection order is 321. The above second selection order may be compared with the first arrangement order of the pre-stored target password image to further determine whether the unlock image matches the target password image.
[0142] In the disclosed embodiment, the above-mentioned scheme of comparing the second selection order of the decoded image with the second selection order of the target password image can be performed before detecting whether the identification of each unlocking image in at least one unlocking image is the identification of the target password image, or after detecting that the identification of each unlocking image is the identification of the target password image. Here, the detailed implementation location of the comparison scheme of the second selection order with the first selection order is not limited.
[0143] In the disclosed embodiment, after the unlocking image is acquired based on the above two unlocking methods, it is also possible to detect whether the unlocking image matches the password image based on the similarity between the unlocking image and the target password image.
[0144] In the disclosed embodiment, detecting whether the unlocking image matches the pre-stored target password image may include:
[0145] detecting a similarity between at least one unlocking image and at least one target password image;
[0146] When the similarity between each unlocking image and the target password image is greater than or equal to a preset similarity threshold, confirming that the unlocking image matches the target password image; or,
[0147] When the similarity between any one or more unlocking images and the target password image is less than the similarity threshold, it is determined that the unlocking image does not match the target password image.
[0148] In the disclosed embodiment, when the unlocking image is the unlocking image and the password image is the password image, the unlocking is performed. To determine whether an unlocking image and a target password image match, it is possible to directly determine whether the similarity between the unlocking image and the target password image meets a first preset requirement. If the first preset requirement is met, the unlocking image and the target password image match; if the first preset requirement is not met, the unlocking image and the target password image do not match. The similarity between the unlocking image and the target password image can be calculated based on the color cumulative histogram feature.
[0149] In the disclosed embodiment, calculating the similarity between the unlock image and the target password image based on the color cumulative histogram feature may include:
[0150] Respectively calculating a first color cumulative histogram feature of the unlock image and a second color cumulative histogram feature of the target password image within a preset pixel level range;
[0151] Calculate the difference between the first color cumulative histogram feature and the second color cumulative histogram feature corresponding to each pixel level within the pixel level range;
[0152] Calculate the sum of the difference values calculated for each pixel level;
[0153] The sum of the differences is divided by the number of all pixel levels to obtain an average difference, which is used as the similarity between the unlock image and the target password image.
[0154] In the disclosed embodiment, for example, to determine whether the unlock image img_match and the target password image img_refs are consistent, the color cumulative histogram features embed_match (i.e., the first color cumulative histogram feature mentioned above) and embed_refs (i.e., the second color cumulative histogram feature mentioned above) of the unlock image img_match and the target password image img_refs can be calculated respectively:
[0155] embed_match(X i )=∑ j≤i h_match(X j );
[0156] embed_refs(X i )=∑ j≤ih_refs(X j );
[0157] Where x represents any x-th image, x is a positive integer, i represents the pixel level, i is 0 and a positive integer, ranging from 0 to 255; h_match(X j ) and h_refs(X j ) represent the number of pixels in the unlocked image img_match and the target password image img_refs that are smaller than pixel j in the B (blue), G (green), and R (red) channels respectively;
[0158] The similarity
[0159] In the embodiment of the present disclosure, when the unlocking image is the unlocking video and the target password image is the password video, judging whether an unlocking video and a target password video match can also directly judge whether the similarity between the unlocking video and the target password video meets the second preset requirement. If the second preset requirement is met, the unlocking video and the target password video match; if the second preset requirement is not met, the unlocking video and the target password video do not match. Based on the color cumulative histogram features, the similarity between at least one unlocking image frame in the unlocking video and the target password image in the target password video corresponding to the time of the unlocking image frame can be calculated, and whether the duration of the unlocking video and the target password video is the same can be compared.
[0160] In the disclosed embodiment, if the duration of the unlocking video and the target password video are different, the unlocking video and the target password video must not match. If the duration of the unlocking video and the target password video is the same, it is possible to further determine whether the unlocking video and the target password video match based on the color cumulative histogram features, or to determine whether the unlocking video and the target password video match only based on the color cumulative histogram features. The judgment scheme for whether the unlocking video and the target password video match is not limited here.
[0161] In the disclosed embodiment, password unlocking can be performed based on the matching detection result between the unlocking image and the target password image, wherein, when the unlocking image matches the target password image, unlocking is performed, and when the unlocking image does not match the target password image, unlocking failure information is returned.
[0162] Based on the above scheme of the embodiment of the present disclosure, a detailed embodiment of password generation and unlocking is given below.
[0163] Example 1
[0164] like Figure 4 As shown, the password setting method of the embodiment of the present disclosure includes steps S31-S37:
[0165] S31. Open the password setting interactive interface.
[0166] S32. Obtain the text “A girl under a cherry blossom tree in the second dimension” input on the password setting interactive interface.
[0167] S33, inputting the text "a girl under a cherry blossom tree in the second dimension" into an image generation model, and generating at least one image including a girl under a cherry blossom tree according to the text "a girl under a cherry blossom tree in the second dimension" through the image generation model.
[0168] S34, providing the generated image for the user to choose, and inquiring the user whether he is satisfied with the generated image. If satisfied, save the selected image and proceed to step S35 or S37; if not satisfied, return to step S33.
[0169] S35, providing an unlocking mode selection interface to the user, allowing the user to select a first unlocking method or a second unlocking method included in the unlocking mode selection interface;
[0170] The first unlocking method is used to unlock according to both the password information and the password image, and the second unlocking method is used to unlock according to only the password image.
[0171] S36. According to the first unlocking method selected by the user, the text "Girl under the cherry blossom tree in the second dimension" and the image are saved as a password; or, according to the second unlocking method selected by the user, the image is saved as a password, and the process ends.
[0172] S37. The first unlocking method is adopted by default, and the text "Girl under the Second Dimension Cherry Blossom Tree" and the image are saved as passwords; or, the second unlocking method is adopted by default, and the image is saved as a password, and the process ends.
[0173] Example 2
[0174] like Figure 5 As shown, the password unlocking method of the embodiment of the present disclosure includes steps S41-S48:
[0175] S41. Open an unlocking interface and provide a first unlocking method and a second unlocking method.
[0176] The first unlocking method corresponds to the unlocking image obtaining method 1, and the second unlocking method corresponds to the unlocking image obtaining method 2.
[0177] S42, determining the unlocking mode selected by the user, and proceeding to step S43 if the user selects the first unlocking mode, and proceeding to step S45 if the user selects the second unlocking mode.
[0178] S43, obtaining the input second password information "a girl under a two-dimensional cherry tree", inputting "a girl under a two-dimensional cherry tree" into an image generation model, and using the image generation model to generate at least one unlocking image.
[0179] S44, detecting whether the unlock image and the target password image match based on the similarity between the unlock image and the target password image, and proceeding to step S48 after obtaining the detection result.
[0180] S45, selecting a plurality of interference images and mixing them with the target password image, obtaining a mixed image and displaying it on the unlocking interface for the user to select.
[0181] S46: Obtain at least one image selected by the user from the multiple mixed images as an unlocking image.
[0182] S47, detecting whether the unlock image and the target password image match according to the identifiers of the unlock image and the target password image, and proceeding to step S48 after obtaining the detection result.
[0183] S48. When the unlock image matches the target password image, unlocking is performed. When the unlock image does not match the target password image, unlocking failure information is returned.
[0184] The present disclosure also provides an electronic device 100, such as Figure 6 As shown, the electronic device 100 may include:
[0185] One or more processors 101;
[0186] A memory 102 having one or more programs stored thereon, which, when executed by the one or more processors, enables the one or more processors to implement the password setting method and / or the password unlocking method;
[0187] One or more input / output I / O interfaces 103 are connected between the processor 101 and the memory 102 and are configured to implement information interaction between the processor 101 and the memory 102 .
[0188] Among them, the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU) and the like; the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus) and the like.
[0189] In some embodiments, the processor 101 , the memory 102 , and the I / O interface 103 are connected to each other via a bus 104 , and further connected to other components of the computing device.
[0190] The present disclosure also provides a computer-readable storage medium 200, such as Figure 7 As shown, the computer-readable storage medium 200 stores a computer program, and when the computer program is executed by the processor, the password setting method and / or the password unlocking method are implemented.
[0191] Those skilled in the art will appreciate that all or some of the steps, systems, and functional modules / units in the apparatus disclosed above may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0192] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation.
[0193] Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-temporary medium) and a communication medium (or temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH) or other disk storage; read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical disk storage; magnetic cassettes, magnetic tapes, disk storage or other magnetic storage; any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0194] The present disclosure has disclosed example embodiments, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly stated, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.
Claims
1. A password setting method, characterized in that: The method comprises: Obtain the first password information entered; generating one or more associated password images according to the first password information; receiving a selection operation for the one or more associated cryptographic images; Extract the features of the selected target password image and save it.
2. The password setting method according to claim 1, characterized in that: The step of obtaining the input first password information includes: Providing at least one password setting interaction mode; acquiring the first password information according to a target password setting interaction mode selected from the at least one password setting interaction mode; and / or, Provide at least one application scenario; determine a target application scenario selected from the at least one application scenario; provide a corresponding password setting interaction method according to the target application scenario, so as to obtain the first password information through the provided password setting interaction method.
3. The password setting method according to claim 1, characterized in that: In the case where the password image includes a password picture, generating one or more associated password images according to the first password information includes: The first password information is input into a preset image generation model, and the features of the first password information are extracted by the image generation model to generate the password image.
4. The password setting method according to any one of claims 1 to 3, characterized in that: In the case where the target password image includes a plurality of associated password images, the extracting and saving the features of the selected target password image includes: The features of the multiple associated password images are extracted and saved respectively, and the first selection order of the multiple associated password images is saved to obtain a cascade password.
5. A password unlocking method, characterized in that: The method comprises: Providing an unlocking interface; the unlocking interface includes one or more unlocking modes; Acquire the unlocking image according to the selected target unlocking method; Detecting whether the unlocking image matches a pre-stored target password image; the target password image is one or more associated password images generated according to the preset first password information; Unlock or return unlock failure information based on the detection result.
6. The password unlocking method according to claim 5, characterized in that: When the target unlocking method is the first unlocking method, acquiring the unlocking image according to the selected target unlocking method includes: Obtaining the input second password information; At least one unlocking image is generated according to the second password information.
7. The password unlocking method according to claim 5, characterized in that: When the target unlocking method is the second unlocking method, acquiring the unlocking image according to the selected target unlocking method includes: providing a plurality of mixed images to be selected and the number of images to be selected; Acquire an image selected from the plurality of mixed images and matching the number of images as the unlocking image; The multiple mixed images are obtained based on the password image and the preset interference image.
8. The password unlocking method according to claim 7, characterized in that: The detecting whether the unlocking image matches the pre-stored target password image includes: Detecting whether the identification of each of the unlocking images in at least one of the unlocking images is the identification of the target password image; In the case where the identification of each of the unlocking images is the identification of the target password image, confirming that the unlocking image matches the target password image; or, In the event that the identification of any one or more of the unlocking images is not the identification of the target password image, it is confirmed that the unlocking image does not match the target password image.
9. The password unlocking method according to claim 8, characterized in that: In the case where the password to be unlocked is a cascade password, the detecting whether the unlocking image matches the pre-stored target password image further includes: Before detecting whether the identification of each of the unlocking images in at least one of the unlocking images is the identification of the target password image, detecting whether a second selection order of the selected multiple unlocking images is the same as a first selection order of the pre-stored multiple target password images; if the second selection order is the same as the first selection order, entering a process of detecting whether the identification of each of the unlocking images in at least one of the unlocking images is the identification of the target password image; if the second selection order is different from the first selection order, determining that the unlocking image does not match the target password image; or, In the case where the identification of each of the unlocking images is the identification of the target password image, it is detected whether the second selection order of the selected multiple unlocking images is the same as the first selection order of the pre-stored multiple target password images; in the case where the second selection order is the same as the first selection order, it is confirmed that the unlocking image matches the target password image; in the case where the second selection order is different from the first selection order, it is confirmed that the unlocking image does not match the target password image.
10. The password unlocking method according to any one of claims 5 to 7, characterized in that: The detecting whether the unlocking image matches the pre-stored target password image includes: detecting a similarity between at least one of the unlocking images and at least one of the target password images; In the case where the similarity between each of the unlocking images and the target password image is greater than or equal to a preset similarity threshold, confirming that the unlocking image matches the target password image; When the similarity between any one or more of the unlocking images and the target password image is less than the similarity threshold, it is confirmed that the unlocking image does not match the target password image.
11. An electronic device, comprising: one or more processors; A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the password setting method described in any one of claims 1 to 4, and / or the password unlocking method described in any one of claims 5 to 10; One or more input / output I / O interfaces are connected between the processor and the memory and are configured to implement information interaction between the processor and the memory.
12. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the password setting method described in any one of claims 1 to 4 and / or the password unlocking method described in any one of claims 5 to 10 is implemented.