CN117238065B - Unlocking method, passive electronic lock, electronic device and storage medium - Google Patents

Unlocking method, passive electronic lock, electronic device and storage medium Download PDF

Info

Publication number
CN117238065B
CN117238065B CN202311493954.6A CN202311493954A CN117238065B CN 117238065 B CN117238065 B CN 117238065B CN 202311493954 A CN202311493954 A CN 202311493954A CN 117238065 B CN117238065 B CN 117238065B
Authority
CN
China
Prior art keywords
unlocking
audio
key
electronic equipment
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311493954.6A
Other languages
Chinese (zh)
Other versions
CN117238065A (en
Inventor
刘志永
修惠文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Meikai Innovation Technology Co ltd
Original Assignee
Shenzhen Meikai Innovation Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Meikai Innovation Technology Co ltd filed Critical Shenzhen Meikai Innovation Technology Co ltd
Priority to CN202311493954.6A priority Critical patent/CN117238065B/en
Publication of CN117238065A publication Critical patent/CN117238065A/en
Application granted granted Critical
Publication of CN117238065B publication Critical patent/CN117238065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

The application provides an unlocking method, a passive electronic lock, electronic equipment and a storage medium, wherein the unlocking method is applied to the passive electronic lock, the passive electronic lock establishes near field communication with the electronic equipment, and the electronic equipment is used for charging; if the completion of charging is detected, the passive electronic lock sends a webpage label prestored in the passive electronic lock to the electronic equipment; the electronic equipment accesses the target webpage according to the webpage label, sends the webpage identifier of the target webpage to the server, encrypts the unlocking key information based on the unlocking key corresponding to the webpage identifier to obtain the unlocking key information, modulates the unlocking key information to generate unlocking audio according to the unlocking key information from the server, and plays the unlocking audio through the target webpage; the passive electronic lock obtains unlocking audio through the audio acquisition module and controls unlocking according to the unlocking audio, so that unlocking of the passive electronic lock is controlled through a webpage, a user does not need to download a special unlocking APP in terminal equipment for unlocking, and terminal equipment resources are prevented from being occupied.

Description

Unlocking method, passive electronic lock, electronic device and storage medium
Technical Field
The disclosure relates to the technical field of passive electronic locks, in particular to an unlocking method, a passive electronic lock, electronic equipment and a storage medium.
Background
With the move into the intelligent age, intelligent door locks are popular, wherein, the passive electronic locks are widely applied due to the characteristics of passive design, strong adaptability, high safety and the like.
In the prior art, when the passive electronic lock is applied, special unlocking Mobile phone software (Mobile App) is often required to be installed on the terminal equipment, and unlocking of the passive electronic lock is authorized through unlocking the App. However, because the user is required to download the special unlocking APP in the terminal equipment, the resources of the terminal equipment are occupied, the user experience is reduced, and the development of the passive electronic lock is affected.
Disclosure of Invention
The embodiment of the application provides an unlocking method, a passive electronic lock, electronic equipment and a storage medium, the passive electronic lock can be unlocked in a webpage mode, a user does not need to download a special unlocking APP in terminal equipment for unlocking, and the occupied terminal equipment resources are reduced.
In a first aspect, an embodiment of the present application provides an unlocking method, where the unlocking method is applied to a passive electronic lock, and the passive electronic lock is provided with an audio acquisition module, and the unlocking method includes:
Establishing near field communication with electronic equipment, and charging through the electronic equipment;
if the charging is detected to be completed, a webpage label prestored in the passive electronic lock is sent to the electronic equipment, so that the electronic equipment accesses a target webpage according to the webpage label, login authentication information is obtained in response to authentication operation on the target webpage and is sent to a server, so that the server generates an authentication passing instruction after determining that the authentication passes according to the login authentication information and sends the authentication passing instruction to the electronic equipment, so that the electronic equipment sends a webpage identifier of the target webpage to the server based on the authentication passing instruction, and the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information, so that the electronic equipment generates unlocking audio according to the unlocking key information modulation of the server and plays the unlocking audio through the target webpage;
and acquiring unlocking audio played by the electronic equipment through the target webpage through the audio acquisition module, and controlling unlocking according to the unlocking audio.
In some embodiments of the present application, the controlling unlocking according to the unlocking audio frequency includes:
Demodulating the unlocking audio to obtain the unlocking key information; wherein, the unlocking key information includes: the first dynamic key is obtained by adding a first special character generated randomly to the unlocking key by the server; the first character position information is the position information of the first special character in the first dynamic key;
decrypting the encrypted first dynamic key and the encrypted first character position information respectively to obtain the first dynamic key and the first character position information;
according to the first character position information, eliminating a first special character in the first dynamic key to obtain the unlocking key;
and unlocking if the unlocking key is matched with a preset key in the passive electronic lock.
In some embodiments of the present application, the method further includes, after the establishing near field communication with the electronic device and the charging by the electronic device:
acquiring modified audio played by the electronic equipment through the target webpage through the audio acquisition module; the modified audio is generated by the electronic equipment according to the modified key information and a first preset voiceprint modulation prestored in the electronic equipment;
Acquiring voiceprint information of the modified audio, and demodulating the modified audio to obtain modified key information if the voiceprint information is matched with a second preset voiceprint prestored in the passive electronic lock; the modifying key information includes: the second dynamic key is obtained by adding a second special character generated randomly to the modified key by the server, the second character position information is the position information of the second special character in the modified key, and the modified key is obtained by the electronic equipment responding to the key modification operation of the target webpage;
decrypting the encrypted second dynamic key and the encrypted second character position information respectively to obtain a second dynamic key and second character position information;
removing a second special character in the second dynamic key according to the second character position information to obtain the modified key;
and replacing the preset key in the passive electronic lock with the modified key.
In some embodiments of the present application, the obtaining, by the audio collection module, unlocking audio played by the electronic device through the target webpage includes:
Calling an audio acquisition module of the passive electronic lock, and acquiring initial audio within a preset range through the audio acquisition module;
if the preset audio segment exists in the initial audio, determining that the initial audio is modified audio;
and if the preset audio segment does not exist in the initial audio, determining that the initial audio is unlocking audio.
In a second aspect, an embodiment of the present application further provides an unlocking method, where the unlocking method is applied to an electronic device, and the unlocking method includes:
establishing near field communication with a passive electronic lock and charging the passive electronic lock;
if the charging is detected to be completed, acquiring a webpage label prestored in the passive electronic lock and accessing a target webpage according to the webpage label;
responding to the authentication operation of the target webpage, acquiring login authentication information and sending the login authentication information to a server, so that the server generates an authentication passing instruction after determining that the authentication passes according to the login authentication information;
based on the authentication passing instruction from the server, sending the webpage identifier of the target webpage to the server, so that the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information;
And generating unlocking audio through modulation according to the unlocking key information from the server, playing the unlocking audio through the target webpage, so that the passive electronic lock obtains the unlocking audio played by the electronic equipment through the target webpage through an audio acquisition module, and controlling unlocking according to the unlocking audio.
In some embodiments of the present application, the generating unlocking audio according to the unlocking key information modulation from the server includes:
modulating and generating a first audio according to the encrypted first dynamic key in the unlocking key information; and
modulating and generating second audio according to the encrypted first character position information in the unlocking key information;
splicing the first audio and the second audio to obtain unlocking audio;
the first dynamic key is obtained by adding a first special character generated randomly to an unlocking key by the server; the first character position information is position information of the first special character in the first dynamic key.
In some embodiments of the present application, the responding to the authentication operation on the target web page obtains login authentication information and sends the login authentication information to a server, so that after the server determines that the authentication is passed according to the login authentication information, and generates an authentication pass instruction, the method further includes:
The method comprises the steps of responding to key modification operation of a target webpage, obtaining a modified key, and sending the modified key to the server, so that the server adds a second special character which is randomly generated to the modified key to generate a second dynamic key, obtaining second character position information of the second special character in the second dynamic key, and carrying out encryption processing on the second dynamic key and the second character position information to obtain modified key information;
generating modified audio according to the modified key information from the server and the pre-stored first preset voiceprint modulation, and playing the modified audio through the target webpage, so that the passive electronic lock can acquire the modified audio played by the electronic equipment through the target webpage through the audio acquisition module, and modifying the preset key in the passive electronic lock according to the modified audio.
In some embodiments of the present application, the generating modified audio according to the modified key information from the server and the pre-stored first preset voiceprint modulation includes:
modulating the encrypted second dynamic key according to the first preset voiceprint to generate third audio; and
Modulating the encrypted second character position information according to the first preset voiceprint to generate fourth audio; and
generating a preset modification audio segment according to the modulation of the preset modification character string; the preset modification character string is used for representing and modifying the key;
and splicing the third audio, the fourth audio and the preset modified audio segment to obtain the modified audio.
In some embodiments of the present application, the accessing the target web page according to the web page tag includes:
acquiring a webpage link address corresponding to the webpage label;
if a plurality of browsers are preset in the electronic equipment, acquiring the number of tab pages of the opened tab pages of the browser, and determining the browser with the minimum tab page number as a target browser;
and calling the target browser, and accessing a target webpage corresponding to the webpage link address through the target browser.
In a third aspect, an embodiment of the present application further provides an unlocking method, where the unlocking method is applied to a server, and the server is in communication connection with an electronic device, and the unlocking method includes:
receiving a webpage identifier of a target webpage sent by the electronic equipment, wherein the target webpage is obtained by a webpage label prestored in a passive electronic lock acquired by the electronic equipment through near field communication;
The method comprises the steps of obtaining an unlocking key corresponding to the webpage identifier, generating unlocking key information based on the unlocking key, sending the unlocking key information to the electronic equipment, enabling the electronic equipment to modulate and generate unlocking audio according to the unlocking key information, playing the unlocking audio through the target webpage, enabling the passive electronic lock to obtain the unlocking audio played by the electronic equipment through the target webpage through an audio acquisition module, and controlling unlocking according to the unlocking audio.
In some embodiments of the present application, the generating unlocking key information based on the unlocking key includes:
randomly generating a first special character and adding the first special character into the unlocking key to obtain a first dynamic key;
determining the position information of the first special character in the first dynamic key as first character position information;
encrypting the first dynamic key and the first character position information respectively, and setting the encrypted first dynamic key and the first character position information as the unlocking key information.
In some embodiments of the present application, the method further comprises:
receiving a key modification instruction sent by the electronic equipment, wherein the key modification instruction comprises the following steps: modifying the key;
Randomly generating a second special character and adding the second special character into the modified key to obtain a second dynamic key;
determining the position information of the second special character in the second dynamic key as second character position information;
encrypting the second dynamic key and the second character position information, and setting the encrypted second dynamic key and the encrypted second character position information as modified key information;
and sending the modification key information to the electronic equipment, so that the electronic equipment generates modification audio based on the modification key information and a pre-stored first preset voiceprint modulation, and plays the modification audio through the target webpage, so that the passive electronic lock obtains unlocking audio played by the electronic equipment through the target webpage through the audio acquisition module, and modifies a preset key in the passive electronic lock according to the modification audio.
In a fourth aspect, embodiments of the present application further provide a passive electronic lock, including:
the communication module is used for establishing near field communication with the electronic equipment and charging through the electronic equipment; and
if the charging is detected to be completed, the webpage label prestored in the passive electronic lock is sent to the electronic equipment, so that the electronic equipment accesses a target webpage according to the webpage label, responds to authentication operation on the target webpage, acquires login authentication information and sends the login authentication information to a server, so that the server generates an authentication passing instruction after determining that the authentication passes according to the login authentication information and sends the authentication passing instruction to the electronic equipment, so that the electronic equipment sends a webpage identifier of the target webpage to the server based on the authentication passing instruction, and the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information, so that the electronic equipment modulates and generates unlocking audio according to the unlocking key information from the server and plays the unlocking audio through the target webpage;
And the audio processing module is used for acquiring unlocking audio played by the electronic equipment through the target webpage through the audio acquisition module and controlling unlocking according to the unlocking audio.
In a fifth aspect, embodiments of the present application further provide an electronic device, including a processor and a memory, where the memory stores a plurality of instructions; the processor loads instructions from the memory to perform the steps of the unlocking method as described in any one of the preceding claims.
In a sixth aspect, embodiments of the present application also provide a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the unlocking method as described in any one of the above.
By adopting the scheme of the embodiment of the application, the passive electronic lock and the electronic equipment are in near field communication, the electronic equipment is charged, if the passive electronic lock detects that charging is completed, the webpage label prestored in the passive electronic lock is sent to the electronic equipment, so that the electronic equipment accesses a target webpage according to the webpage label, login authentication information is obtained by responding to authentication operation of the target webpage and is sent to the server, the server generates an authentication passing instruction according to the login authentication information and sends the authentication passing instruction to the electronic equipment, so that the electronic equipment sends the webpage identification of the target webpage to the server based on the authentication passing instruction, the server carries out encryption processing based on the unlocking key corresponding to the webpage identification to obtain unlocking key information, so that the electronic equipment generates unlocking audio according to the unlocking key information from the server and plays the unlocking audio through the target webpage, the passive electronic lock obtains the unlocking audio played by the target webpage through the set audio acquisition module and controls unlocking according to the unlocking audio, the completion of the passive electronic lock through the webpage is realized, a user does not need to download and install special APP in the electronic equipment, the storage space is saved, the user experience is improved, and the development of the passive electronic lock can be further promoted.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a passive electronic lock system provided in an embodiment of the present application;
FIG. 2 is one of the flow diagrams of the unlocking method provided in the embodiments of the present application;
FIG. 3 is a second flow chart of an unlocking method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a passive electronic lock provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present disclosure, not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person of ordinary skill in the art would obtain without making any inventive effort are within the scope of the disclosure. Meanwhile, in the description of the embodiments of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The embodiment of the application provides an unlocking method, a passive electronic lock, electronic equipment and a computer readable storage medium.
The unlocking method provided by the embodiment of the application is applied to a passive electronic lock system, and fig. 1 is a schematic structural diagram of the passive electronic lock system provided by the embodiment of the application, as shown in fig. 1, and the passive electronic lock system includes: the passive electronic lock 100, the electronic device 200 and the server 300, wherein the passive electronic lock 100 and the electronic device 200 can establish near field communication, and the electronic device 200 and the server 300 can communicate through a wireless network. In the embodiment of the application, the passive electronic lock 100 establishes near field communication with the electronic device 200, charges through the electronic device 200, and if the charging is detected to be completed, acquires a pre-stored webpage tag and sends the pre-stored webpage tag to the electronic device 200. The electronic device 200 accesses the target web page according to the web page tag, and obtains login authentication information in response to an authentication operation for the target web page and transmits the login authentication information to the server 300. The server 300 generates an authentication pass instruction and transmits the authentication pass instruction to the electronic device 200 after determining that the authentication pass according to the login authentication information, and the electronic device 200 transmits the web page identifier of the target web page to the server 300 based on the authentication pass instruction. The server 300 performs encryption processing based on the unlocking key corresponding to the webpage identifier, obtains unlocking key information, sends the unlocking key information to the electronic device 200, and the electronic device 200 modulates and generates unlocking audio according to the unlocking key information from the server 300 and plays the unlocking audio through the target webpage. The passive electronic lock 100 obtains unlocking audio played by the electronic equipment 200 through the target webpage through the set audio acquisition module, and controls unlocking according to the unlocking audio so as to realize APP-free unlocking of the passive electronic lock.
Optionally, the electronic device may include: and a terminal device. The terminal device may be a mobile phone, a tablet computer, a smart bluetooth device, a notebook computer, a game console, or a personal computer (Personal Computer, PC), etc.
Alternatively, the server may be a stand-alone server, or may be a server network or a server cluster of servers, including but not limited to a computer, a network host, a single network server, a set of multiple network servers, or a cloud server of multiple servers. Wherein the Cloud server is composed of a large number of computers or web servers based on Cloud Computing (Cloud Computing).
The following detailed description is provided with reference to the accompanying drawings. The following description of the embodiments is not intended to limit the preferred embodiments. Although a logical order is depicted in the flowchart, in some cases the steps shown or described may be performed in an order different than depicted in the figures.
Fig. 2 is a flowchart of an unlocking method provided in an embodiment of the present application, and as shown in fig. 2, the unlocking method provided in an embodiment of the present application at least includes the following steps:
s201, the passive electronic lock establishes near field communication with the electronic device, and charging is conducted through the electronic device.
In the embodiment of the application, the passive electronic lock detects that the electronic device approaches to a near field communication (Near Field Communication, NFC) module of the passive electronic lock, near field communication with the electronic device is established, and the passive electronic lock charges a capacitor in the passive electronic lock through radio frequency signal conversion by the NFC module so as to realize that the passive electronic lock charges through the electronic device.
S202, if the passive electronic lock detects that charging is successful, the webpage label prestored in the passive electronic lock is sent to the electronic equipment.
In the embodiment of the application, the passive electronic lock stores the webpage label in advance, and if the passive electronic lock detects that charging is successful, the passive electronic lock acquires the prestored webpage label and sends the prestored webpage label to the electronic equipment.
Further, in the passive electronic lock charging stage, acquiring the electric quantity of a capacitor in the passive electronic lock according to a preset time interval, and if the electric quantity of the capacitor in the passive electronic lock is greater than or equal to a preset electric quantity threshold value, determining that the passive electronic lock is successfully charged; if the electric quantity of the capacitor in the passive electronic lock is smaller than the preset electric quantity threshold value, determining that the passive electronic lock is not successfully charged, and continuing to charge through the electronic equipment until the electric quantity of the capacitor in the passive electronic lock is larger than or equal to the preset electric quantity threshold value. The preset time interval and the preset electric quantity threshold value can be timely adjusted according to actual application scenes, and the embodiment of the application is not particularly limited.
It can be appreciated that the passive electronic lock may send the web page tag to the electronic device, which may be actively sent or passively sent, which is not specifically limited in the embodiments of the present application.
S203, the electronic equipment accesses the target webpage according to the webpage label, and responds to the authentication operation on the target webpage to acquire login authentication information and sends the login authentication information to the server.
Wherein, the login authentication information at least comprises: user name, login password. The authentication operation may be an input operation.
In the embodiment of the application, the electronic device calls a pre-stored browser, and accesses the target webpage corresponding to the webpage tag through the browser. The target webpage is displayed on the electronic equipment. And the electronic equipment responds to the authentication operation on the target webpage, acquires login authentication information and sends the login authentication information to the server.
In one example, a text box for inputting a user name and a login password is displayed in the target webpage, and the electronic device can acquire login authentication information in response to an input operation of the text box of the target webpage.
In some optional embodiments, the electronic device accessing the target webpage according to the webpage tag may be implemented by the following steps:
The electronic equipment acquires a webpage link address corresponding to the webpage label; if a plurality of browsers are preset in the electronic equipment, acquiring the number of tab pages of the opened tab pages of the browser, and determining the browser with the minimum number of tab pages as a target browser; the electronic equipment calls the target browser and accesses the target webpage corresponding to the webpage link address through the target browser.
Further, after the electronic device obtains the web page link address corresponding to the web page tag, the electronic device may detect the number of currently preset browsers, and if only one browser is preset in the electronic device, the browser is used as the target browser.
It will be appreciated that if the number of tab pages of the tab pages opened by the browser is the same, a browser may be arbitrarily selected as the target browser. Similarly, if there are a plurality of browsers with the least number of tab pages, a browser is arbitrarily selected as the target browser.
In an actual application scene, a plurality of browsers may be preset in the electronic device, and the target browser accessing the target webpage at this time is determined according to the number of tag pages of the opened tags of each browser, so that the access efficiency can be improved, and the unlocking efficiency is further improved.
S204, the server generates an authentication passing instruction and sends the authentication passing instruction to the electronic equipment after determining that the authentication is passed according to the login authentication information.
The authentication pass instruction is used for indicating that the login authentication information passes the authentication.
In the embodiment of the application, the server performs login authentication according to the login authentication information, generates an authentication passing instruction after the authentication passes, and sends the authentication passing instruction to the electronic equipment.
Further, authentication information is pre-stored in the server, wherein the authentication information comprises a preset name and a preset authentication password corresponding to the preset name. Therefore, the server firstly inquires a preset name consistent with the user name in the login authentication information according to the user name in the login authentication information, and matches a preset authentication password corresponding to the preset name with the login password in the login authentication information, if the preset name and the login password are consistent, the authentication is passed, and otherwise, the authentication is not passed.
In one example, the preset name in the verification information and the preset authentication password corresponding to the preset name may also exist in the form of an array, for example [ preset name, preset authentication key ], the login authentication information may be directly matched with the verification information in the form of an array, whether the verification information consistent with the login authentication information exists or not is determined, if so, the authentication is indicated to pass, otherwise, the authentication is indicated to not pass.
S205, the electronic device sends the web page identifier of the target web page to the server based on the authentication pass instruction.
The webpage identifier is the identity identifier of the target webpage, and different target webpages are preset with different webpage identifiers.
In the embodiment of the application, after receiving the authentication pass instruction, the electronic device sends the webpage identifier of the target webpage to the server, so that the unlocking safety of the passive electronic lock is improved.
S206, the server performs encryption processing based on the unlocking key corresponding to the webpage identifier, obtains unlocking key information and sends the unlocking key information to the electronic equipment.
The unlocking key is a preset character string, and it can be understood that the length of the character string and the character type (such as numbers, english letters, greek letters, special symbols, etc.) of the characters in the unlocking key are not particularly limited, and can be adaptively adjusted according to actual application scenarios.
The server is pre-stored with a plurality of unlocking keys and preset identifiers corresponding to the unlocking keys. Therefore, the server can firstly inquire whether the preset identifier consistent with the webpage identifier exists or not, and if the preset identifier consistent with the webpage identifier exists, the unlocking key corresponding to the preset identifier is used as the unlocking key corresponding to the webpage identifier.
In one example, after the server queries the unlocking key corresponding to the webpage identifier, the unlocking key is directly encrypted, and the encrypted unlocking key is set as unlocking key information and sent to the electronic device.
It is understood that the encryption method is not specifically limited in the embodiment of the present application.
S207, the electronic equipment modulates and generates unlocking audio according to unlocking key information from the server, and plays the unlocking audio through the target webpage.
The unlocking key information is composed of a plurality of characters which are arranged in sequence.
In one example, the electronic device determines notes corresponding to each character in the unlocking key information according to the first mapping relation, arranges the notes corresponding to each character in the unlocking key information according to the sequence of the characters in the unlocking key information, obtains a target music score, and generates unlocking audio through the target music score.
The first mapping relationship is used for representing the mapping relationship between characters and notes, and each character has a unique corresponding note.
It is understood that the above notes may be staff notes or numbered notes, and are not particularly limited in the embodiments of the present application.
S208, the passive electronic lock acquires unlocking audio played by the electronic equipment through the target webpage through the audio acquisition module, and unlocking is controlled according to the unlocking audio.
In the embodiment of the application, after the passive electronic lock obtains unlocking audio through the audio acquisition module, a music score corresponding to the unlocking audio is identified, characters corresponding to all notes in the music score are determined through the first mapping relation, a target character string is generated according to the arrangement relation corresponding to the notes in the music score, decryption is carried out according to the target character string to obtain an unlocking key, and a preset key in the passive electronic lock of the unlocking key is compared to control unlocking.
According to the unlocking method provided by the embodiment of the application, the passive electronic lock and the electronic equipment are subjected to near-field communication, the electronic equipment is charged, if the passive electronic lock detects that charging is completed, the webpage label prestored in the passive electronic lock is sent to the electronic equipment, so that the electronic equipment accesses a target webpage according to the webpage label, login authentication information is obtained in response to authentication operation on the target webpage and is sent to the server, the server generates an authentication passing instruction according to the login authentication information and sends the authentication passing instruction to the electronic equipment, so that the electronic equipment sends the webpage identification of the target webpage to the server based on the authentication passing instruction, the server carries out encryption processing based on the unlocking key corresponding to the webpage identification to obtain unlocking key information, the electronic equipment generates unlocking audio according to unlocking key information from the server, the passive electronic lock plays the unlocking audio through the target webpage, unlocking audio played by the electronic equipment is controlled to unlock according to the unlocking audio, the webpage is achieved, a user does not need to download and install special APP in the electronic equipment, storage space is saved, the user experience is improved, and the passive electronic lock can be further promoted.
In some alternative embodiments, if the passive electronic lock is successfully unlocked according to the unlocking audio control, the passive electronic lock plays an unlocking prompt message, and the unlocking prompt message is used for representing that the unlocking is successful.
In some optional embodiments, the server in step S206 performs encryption processing based on the unlocking key corresponding to the web page identifier, and the obtaining of the unlocking key information may further be implemented by the following steps:
randomly generating a first special character and adding the first special character into an unlocking key to obtain a first dynamic key;
determining the position information of the first special character in the first dynamic key as first character position information;
and respectively encrypting the first dynamic key and the first character position information to obtain the encrypted first dynamic key and the first character position information which are set as unlocking key information.
The number and type of the first special characters are not particularly limited in the embodiment of the present application, and the first special characters may be randomly added to any position in the unlocking key.
Because the unlocking method provided by the embodiment of the application is that unlocking is performed by playing unlocking audio modulated based on unlocking key information through electronic equipment, and the audio information is easy to be stolen by others, and the security performance is low, in the embodiment of the application, the first special character is randomly generated and added to the unlocking key to obtain the first dynamic key, then the first dynamic key after encryption and the first character position form the unlocking key information, the unlocking key information generated during each unlocking is dynamically changed, the unlocking audio modulated based on the unlocking key information is also dynamically changed, and compared with the unlocking key information generated by directly adopting the unlocking key after encryption, the unlocking security can be further improved.
On this basis, in the step S207, the electronic device generates unlocking audio according to the unlocking key information modulation from the server, and may also implement the following steps:
modulating and generating a first audio according to the encrypted first dynamic key in the unlocking key information; and
modulating and generating second audio according to the encrypted first character position information in the unlocking key information;
and splicing the first audio and the second audio to obtain unlocking audio.
It can be understood that the first dynamic key and the first character position information are also composed of a plurality of characters arranged in sequence, so that the first audio and the second audio can be generated through the first mapping relationship provided by the above embodiment, thereby obtaining unlocking audio, which is not described herein again.
In the embodiment of the application, the encrypted first dynamic key and the encrypted first character position information are modulated respectively to generate the first audio and the second audio, and the first audio and the second audio are spliced to obtain unlocking audio, so that the passive electronic lock can demodulate and unlock according to the obtained unlocking audio, and the unlocking accuracy of the passive electronic lock is improved.
Optionally, a preset sound insulation frequency band is acquired, and the unlocking audio is obtained by splicing the first audio, the special audio band and the second audio in sequence. The interval sound-insulation frequency band is generated according to the first mapping relation and the interval character string, the interval character string is a preset character string used for representing the interval, and the interval audio frequency band is the audio frequency band used for representing the interval.
In the embodiment of the application, the first audio frequency and the second audio frequency are separated by adopting the sound insulation frequency band, so that the passive electronic lock can conveniently distinguish the encrypted first dynamic key from the encrypted first character position, and the unlocking accuracy of the passive electronic lock is further improved.
Based on the above embodiment, in step 208, the passive electronic lock may control unlocking according to the unlocking audio by:
demodulating the unlocking audio to obtain unlocking key information; the unlocking key information includes: the encrypted first dynamic key and the encrypted first character position information;
decrypting the encrypted first dynamic key and the encrypted first character position information respectively to obtain the first dynamic key and the first character position information;
according to the first character position information, a first special character in the first dynamic key is proposed to obtain an unlocking key;
and if the unlocking key is matched with the preset key in the passive electronic lock, unlocking.
The passive electronic lock pre-stores a second mapping relation. In the embodiment of the application, the acquired music score corresponding to the unlocking audio is firstly identified, the character corresponding to each note in the music score is determined through the second mapping relation, and then unlocking key information is obtained, so that the unlocking audio is demodulated.
Further, unlocking key information is identified, and the encrypted first dynamic key and the encrypted first character position information in the unlocking key information are obtained.
In an actual application scenario, there is a need for modifying an unlocking key, so, as shown in fig. 3, the unlocking method provided in the embodiment of the application may at least further include the following steps:
s301, the electronic equipment responds to the key modification operation of the target webpage, acquires a modification key and sends the modification key to the server.
After receiving the authentication passing instruction from the server, the electronic device can respond to the key modification operation on the target webpage to obtain a modification key, generate a key modification instruction according to the encrypted modification key and send the key modification instruction to the server. The key modification instruction is used for indicating the server to carry out unlocking key modification, and the key modification instruction comprises an encrypted modification key. In the embodiment of the application, the encryption of the modified key is to improve the security of the modified key and prevent the modified key from being stolen.
In some alternative embodiments, the server decrypts the encrypted modification key in the key modification instruction to obtain the modification key, and replaces the preset key corresponding to the webpage identifier of the target webpage with the modification key.
S302, the server adds the randomly generated second special character to the modification key to generate a second dynamic key, acquires second character position information of the second special character in the second dynamic key, and encrypts the second dynamic key and the second character position information to obtain modification key information.
In this embodiment, the specific implementation manner of generating the modification key information may refer to the implementation manner of generating the unlocking key information in the foregoing embodiment, which is not described herein.
S303, the electronic equipment generates modified audio according to the modified key information from the server and the pre-stored first preset voiceprint modulation, and plays the modified audio through the target webpage.
Specifically, modulating the encrypted second dynamic key according to the first preset voiceprint to generate third audio, and modulating the encrypted second character position information according to the first preset voiceprint to generate fourth audio; and generating a preset modification audio segment according to the modulation of the preset modification character string, and splicing the third audio, the fourth audio and the preset modification audio segment to obtain the modification audio. The preset modification character string is used for representing and modifying the key.
Further, the music score corresponding to the encrypted second dynamic key and the encrypted second character position information can be determined first according to the first mapping relation, and the first preset voiceprint is added when corresponding audio is generated based on the music score, so that the generated modified audio contains the voiceprint information of the first preset voiceprint.
S304, the passive electronic lock acquires the modified audio played by the electronic device through the target webpage through the audio acquisition module, and modifies the preset secret key in the passive electronic lock according to the modified audio.
Specifically, the passive electronic lock acquires modified audio played by the electronic equipment through the target webpage through the audio acquisition module, acquires voiceprint information of the modified audio, and demodulates the modified audio to obtain modified key information if the voiceprint information is matched with a second preset voiceprint prestored in the passive electronic lock; decrypting the encrypted second dynamic key and the encrypted second character position information in the modified key information respectively to obtain the second dynamic key and the second character position information; and removing the second special character in the second dynamic key according to the second character position information to obtain the modified key. The passive electronic lock replaces the preset key with the modified key.
Wherein the first preset voiceprint and the second preset voiceprint are the same voiceprint.
In the embodiment of the application, in order to prevent the preset secret key in the passive electronic lock from being tampered arbitrarily, when the modified audio is generated, the modified audio is generated according to the first preset voiceprint, so that the voiceprint information in the modified audio is verified after the modified audio is received by the passive electronic lock, and the modification of the preset secret key in the passive electronic lock is performed after the verification is passed, so that the security of modifying the secret key of the passive electronic lock is improved.
In some alternative embodiments, if the passive electronic lock replaces the preset key with the modified key, the passive electronic lock plays a modification hint which is used to characterize the success of the modification of the key.
According to the above embodiment, the passive electronic lock obtains unlocking audio played by the electronic device through the target webpage through the audio acquisition module, and at least further includes the following steps:
calling an audio acquisition module, and acquiring initial audio within a preset range through the audio acquisition module; if the preset audio segment exists in the initial audio, determining the initial audio as modified audio; if the preset audio segment does not exist in the initial audio, determining that the initial audio is unlocking audio.
In an actual application scene, after the audio acquisition module of the passive electronic lock acquires initial audio, the initial audio needs to be identified first so as to judge whether the initial audio is unlocking audio for unlocking or modifying audio for modifying a key, so that further operation is continued.
Accordingly, the embodiment of the present application further provides a passive electronic lock, and fig. 4 is a schematic structural diagram of the passive electronic lock provided in the embodiment of the present application, where the passive electronic lock 400 includes:
a communication module 410, configured to establish near field communication with an electronic device, and charge the electronic device; and
if the charging is detected to be completed, the webpage label prestored in the passive electronic lock is sent to the electronic equipment, so that the electronic equipment accesses a target webpage according to the webpage label, responds to authentication operation on the target webpage, acquires login authentication information and sends the login authentication information to a server, so that the server generates an authentication passing instruction after determining that the authentication passes according to the login authentication information and sends the authentication passing instruction to the electronic equipment, so that the electronic equipment sends a webpage identifier of the target webpage to the server based on the authentication passing instruction, and the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information, so that the electronic equipment modulates and generates unlocking audio according to the unlocking key information from the server and plays the unlocking audio through the target webpage;
The audio processing module 420 is configured to obtain unlocking audio played by the electronic device through the target webpage through the audio acquisition module, and control unlocking according to the unlocking audio.
Correspondingly, the embodiment of the application also provides electronic equipment, which can be a terminal, and the terminal can be terminal equipment such as a smart phone, a tablet personal computer, a notebook computer, a touch screen, a game machine, a personal computer (PC, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and the like. Alternatively, the electronic device may be a server.
As shown in fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to the present embodiment. The electronic device 500 includes a processor 501 having one or more processing cores, a memory 502 having one or more computer readable storage media, and a computer program stored on the memory 502 and executable on the processor. The processor 501 is electrically connected to the memory 502. It will be appreciated by those skilled in the art that the electronic device structure shown in the figures is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The processor 501 is a control center of the electronic device 500, connects various parts of the entire electronic device 500 using various interfaces and lines, and performs various functions of the electronic device 500 and processes data by running or loading software programs and/or units stored in the memory 502, and invoking data stored in the memory 502, thereby performing overall monitoring of the electronic device 500. The processor 501 may be a processor CPU, a graphics processor GPU, a network processor (Network Processor, NP), etc., which may implement or perform the methods, steps and logic blocks disclosed in embodiments of the present application.
In the embodiment of the present application, the processor 501 in the electronic device 500 loads the instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 executes the application programs stored in the memory 502, so as to implement various functions, for example:
establishing near field communication with the electronic equipment, and charging through the electronic equipment;
if the charging is detected to be completed, a webpage label prestored in the passive electronic lock is sent to the electronic equipment, so that the electronic equipment accesses a target webpage according to the webpage label, and the login authentication information is obtained in response to the authentication operation on the target webpage and is sent to the server, so that the server generates an authentication passing instruction according to the login authentication information after determining that the authentication passes and sends the authentication passing instruction to the electronic equipment, so that the electronic equipment sends a webpage identifier of the target webpage to the server based on the authentication passing instruction, and the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information, so that the electronic equipment modulates and generates unlocking audio according to the unlocking key information from the server, and plays the unlocking audio through the target webpage;
The unlocking audio played by the electronic equipment through the target webpage is acquired through the audio acquisition module, and unlocking is controlled according to the unlocking audio;
or for example:
establishing near field communication with the passive electronic lock and charging the passive electronic lock;
if the charging is detected to be completed, acquiring a webpage label prestored in a passive mode and accessing a target webpage according to the webpage label;
responding to the authentication operation of the target webpage, acquiring login authentication information and sending the login authentication information to a server so that the server generates an authentication passing instruction after determining that the authentication passes according to the login authentication information;
based on the authentication passing instruction from the server, the webpage identifier of the target webpage is sent to the server, so that the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information;
modulating and generating unlocking audio according to unlocking key information from a server, playing the unlocking audio through a target webpage, enabling the passive through-the-air audio acquisition module to acquire the unlocking audio played by the electronic equipment through the target webpage, and controlling unlocking according to the unlocking audio;
also or for example:
receiving a webpage identifier of a target webpage sent by electronic equipment, wherein the target webpage is obtained by the electronic equipment through a webpage label prestored in a passive electronic lock acquired through near field communication;
The method comprises the steps of obtaining an unlocking key corresponding to a webpage identifier, generating unlocking key information based on the unlocking key information and sending the unlocking key information to electronic equipment, enabling the electronic equipment to modulate according to the unlocking key information to generate unlocking audio, playing the unlocking audio through a target webpage, enabling a passive electronic lock to obtain the unlocking audio played by the electronic equipment through the target webpage through an audio acquisition module, and controlling unlocking according to the unlocking audio.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 5, the electronic device 500 further includes: a touch display screen 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506, and a power supply 507. The processor 501 is electrically connected to the touch display 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506, and the power supply 507, respectively. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The touch display screen 503 may be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 503 may include a display panel and a touch panel. Wherein the display panel may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, video, and any combination thereof. Alternatively, the display panel may be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as operations on or near the touch panel by the user using any suitable object or accessory such as a finger, stylus, etc.), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 501, and can receive commands from the processor 501 and execute them. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is passed to the processor 501 to determine the type of touch event, and the processor 501 then provides a corresponding visual output on the display panel based on the type of touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 503 to implement the input and output functions. In some embodiments, however, the touch panel and the touch panel may be implemented as two separate components to perform the input and output functions. I.e. the touch sensitive display 503 may also implement an input function as part of the input unit 506.
The radio frequency circuitry 504 may be used to transceive radio frequency signals to establish wireless communication with a network device or other electronic device via wireless communication.
The audio circuitry 505 may be used to provide an audio interface between a user and the electronic device through a speaker, microphone. The audio circuit 505 may transmit the received electrical signal after audio data conversion to a speaker, and convert the electrical signal into a sound signal for output by the speaker; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 505 and converted into audio data, which are processed by the audio data output processor 501 for transmission to, for example, another electronic device via the radio frequency circuit 504, or which are output to the memory 502 for further processing. The audio circuit 505 may also include an ear bud jack to provide communication of the peripheral ear bud with the electronic device.
The input unit 506 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 507 is used to power the various components of the electronic device 500. Alternatively, the power supply 507 may be logically connected to the processor 501 through a power management system, so as to implement functions of managing charging, discharging, and power consumption management through the power management system. The power supply 507 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 5, the electronic device 500 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a plurality of computer programs that can be loaded by a processor to perform any of the unlocking methods provided by embodiments of the present application. The computer program may perform the steps of the unlocking method as follows:
Establishing near field communication with the electronic equipment, and charging through the electronic equipment;
if the charging is detected to be completed, a webpage label prestored in the passive electronic lock is sent to the electronic equipment, so that the electronic equipment accesses a target webpage according to the webpage label, and the login authentication information is obtained in response to the authentication operation on the target webpage and is sent to the server, so that the server generates an authentication passing instruction according to the login authentication information after determining that the authentication passes and sends the authentication passing instruction to the electronic equipment, so that the electronic equipment sends a webpage identifier of the target webpage to the server based on the authentication passing instruction, and the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information, so that the electronic equipment modulates and generates unlocking audio according to the unlocking key information from the server, and plays the unlocking audio through the target webpage;
the unlocking audio played by the electronic equipment through the target webpage is acquired through the audio acquisition module, and unlocking is controlled according to the unlocking audio;
or:
establishing near field communication with the passive electronic lock, and charging the passive electronic lock;
if the charging is detected to be completed, acquiring a webpage label prestored in a passive mode and accessing a target webpage according to the webpage label;
Responding to the authentication operation of the target webpage, acquiring login authentication information and sending the login authentication information to a server so that the server generates an authentication passing instruction after determining that the authentication passes according to the login authentication information;
based on the authentication passing instruction from the server, the webpage identifier of the target webpage is sent to the server, so that the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information;
modulating and generating unlocking audio according to unlocking key information from a server, playing the unlocking audio through a target webpage, enabling the passive through-the-air audio acquisition module to acquire the unlocking audio played by the electronic equipment through the target webpage, and controlling unlocking according to the unlocking audio;
or also:
receiving a webpage identifier of a target webpage sent by electronic equipment, wherein the target webpage is obtained by the electronic equipment through a webpage label prestored in a passive electronic lock acquired through near field communication;
the method comprises the steps of obtaining an unlocking key corresponding to a webpage identifier, generating unlocking key information based on the unlocking key information and sending the unlocking key information to electronic equipment, enabling the electronic equipment to modulate according to the unlocking key information to generate unlocking audio, playing the unlocking audio through a target webpage, enabling a passive electronic lock to obtain the unlocking audio played by the electronic equipment through the target webpage through an audio acquisition module, and controlling unlocking according to the unlocking audio.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the computer program stored in the computer readable storage medium can execute any unlocking method provided in the embodiments of the present application, the beneficial effects that any unlocking method provided in the embodiments of the present application can achieve can be achieved, which are detailed in the previous embodiments and are not repeated here.
In the passive electronic lock, the computer readable storage medium and the electronic device, the description of each embodiment has emphasis, and for the part of a certain embodiment that is not described in detail, reference may be made to the related description of other embodiments. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and the beneficial effects of the passive electronic lock, the computer readable storage medium, the electronic device and the corresponding units described above may be referred to the description of the unlocking method in the above embodiments, and are not repeated herein.
The foregoing has described in detail the unlocking method, the passive electronic lock, the electronic device, the computer readable storage medium and the computer program product provided in the embodiments of the present application, and specific examples have been applied to illustrate the principles and embodiments of the present disclosure, and the above description of the embodiments is only for helping to understand the methods of the present disclosure and the core ideas thereof; meanwhile, as those skilled in the art will appreciate from the idea of the present disclosure, there are variations in the specific embodiments and the application scope, and in light of the above, the present disclosure should not be construed as being limited to the present disclosure.

Claims (10)

1. An unlocking method is characterized in that the unlocking method is applied to a passive electronic lock, the passive electronic lock is provided with an audio acquisition module, and the unlocking method comprises the following steps:
establishing near field communication with electronic equipment, and charging through the electronic equipment;
if the charging is detected to be completed, a webpage label prestored in the passive electronic lock is sent to the electronic equipment, so that the electronic equipment accesses a target webpage according to the webpage label, login authentication information is obtained in response to authentication operation on the target webpage and is sent to a server, so that the server generates an authentication passing instruction after determining that authentication is passed according to the login authentication information and sends the authentication passing instruction to the electronic equipment, so that the electronic equipment sends a webpage identifier of the target webpage to the server based on the authentication passing instruction, and the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information, so that the electronic equipment generates unlocking audio according to the unlocking key information modulation from the server and plays the unlocking audio through the target webpage, wherein a plurality of browsers are preset in the electronic equipment, and a target browser accessing the target webpage is determined according to the number of the label page of each browser;
Acquiring unlocking audio played by the electronic equipment through the target webpage through the audio acquisition module, and controlling unlocking according to the unlocking audio;
after the passive electronic lock obtains unlocking audio through the audio acquisition module, firstly identifying music scores corresponding to the unlocking audio, determining characters corresponding to all notes in the music scores through a first mapping relation, generating target character strings according to arrangement relations corresponding to the notes in the music scores, decrypting according to the target character strings to obtain unlocking keys, and controlling unlocking if the unlocking keys are matched with preset keys in the passive electronic lock;
the first mapping relation is used for representing the mapping relation between characters and notes, and each character has a unique corresponding note;
wherein, according to unblanking audio frequency control unblanking, include:
demodulating the unlocking audio to obtain the unlocking key information; wherein, the unlocking key information includes: the first dynamic key is obtained by adding a first special character generated randomly to the unlocking key by the server; the first character position information is the position information of the first special character in the first dynamic key;
Decrypting the encrypted first dynamic key and the encrypted first character position information respectively to obtain the first dynamic key and the first character position information;
according to the first character position information, eliminating a first special character in the first dynamic key to obtain the unlocking key;
if the unlocking key is matched with a preset key in the passive electronic lock, unlocking;
the first dynamic key and the first character position information are composed of a plurality of characters which are arranged in sequence.
2. The unlocking method of claim 1, wherein the establishing near field communication with an electronic device, after charging by the electronic device, further comprises:
acquiring modified audio played by the electronic equipment through the target webpage through the audio acquisition module; the modified audio is generated by the electronic equipment according to the modified key information and a first preset voiceprint modulation prestored in the electronic equipment;
acquiring voiceprint information of the modified audio, and demodulating the modified audio to obtain modified key information if the voiceprint information is matched with a second preset voiceprint prestored in the passive electronic lock; the modifying key information includes: the second dynamic key is obtained by adding a second special character generated randomly to the modified key by the server, the second character position information is the position information of the second special character in the modified key, and the modified key is obtained by the electronic equipment responding to the key modification operation of the target webpage;
Decrypting the encrypted second dynamic key and the encrypted second character position information respectively to obtain a second dynamic key and second character position information;
removing a second special character in the second dynamic key according to the second character position information to obtain the modified key;
and replacing the preset key in the passive electronic lock with the modified key.
3. The unlocking method according to claim 1, wherein the step of obtaining, by the audio acquisition module, unlocking audio played by the electronic device through the target web page includes:
calling an audio acquisition module of the passive electronic lock, and acquiring initial audio within a preset range through the audio acquisition module;
if the preset audio segment exists in the initial audio, determining that the initial audio is modified audio;
and if the preset audio segment does not exist in the initial audio, determining that the initial audio is unlocking audio.
4. An unlocking method, wherein the unlocking method is applied to electronic equipment, and the unlocking method comprises the following steps:
establishing near field communication with a passive electronic lock and charging the passive electronic lock;
If the charging is detected to be completed, acquiring a webpage label prestored in the passive electronic lock and accessing a target webpage according to the webpage label;
responding to the authentication operation of the target webpage, acquiring login authentication information and sending the login authentication information to a server, so that the server generates an authentication passing instruction after determining that the authentication passes according to the login authentication information;
based on the authentication passing instruction from the server, sending the webpage identifier of the target webpage to the server, so that the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information;
modulating and generating unlocking audio according to unlocking key information from the server, and playing the unlocking audio through the target webpage, so that the passive electronic lock obtains the unlocking audio played by the electronic equipment through the target webpage through an audio acquisition module, and controlling unlocking according to the unlocking audio;
the server performs encryption processing based on the unlocking key corresponding to the webpage identifier to obtain unlocking key information, and the method is realized through the following steps:
randomly generating a first special character and adding the first special character into an unlocking key to obtain a first dynamic key;
Determining the position information of the first special character in the first dynamic key as first character position information;
encrypting the first dynamic key and the first character position information respectively, and setting the encrypted first dynamic key and the first character position information as unlocking key information;
the method for generating unlocking audio by modulating according to unlocking key information from the server comprises the following steps:
modulating and generating a first audio according to the encrypted first dynamic key in the unlocking key information; and
modulating and generating second audio according to the encrypted first character position information in the unlocking key information;
splicing the first audio and the second audio to obtain unlocking audio;
the electronic equipment determines notes corresponding to all characters in the unlocking key information according to a first mapping relation, arranges the notes corresponding to all the characters in the unlocking key information according to the sequence of the characters in the unlocking key information to obtain a target music score, and generates unlocking audio through the target music score;
the first mapping relation is used for representing the mapping relation between characters and notes, and each character has a unique corresponding note;
the first dynamic key and the first character position information are composed of a plurality of characters which are arranged in sequence, and a first audio and a second audio are generated through a first mapping relation, so that unlocking audio is obtained;
The accessing the target webpage according to the webpage label comprises the following steps:
acquiring a webpage link address corresponding to the webpage label;
if a plurality of browsers are preset in the electronic equipment, acquiring the number of tab pages of the opened tab pages of the browser, and determining the browser with the minimum tab page number as a target browser;
and calling the target browser, and accessing a target webpage corresponding to the webpage link address through the target browser.
5. The unlocking method of claim 4, wherein generating modified audio from the modified key information from the server and the pre-stored first preset voiceprint modulation comprises:
modulating the encrypted second dynamic key according to the first preset voiceprint to generate third audio; and
modulating the encrypted second character position information according to the first preset voiceprint to generate fourth audio; and
generating a preset modification audio segment according to the modulation of the preset modification character string; the preset modification character string is used for representing and modifying the key;
and splicing the third audio, the fourth audio and the preset modified audio segment to obtain the modified audio.
6. An unlocking method, which is characterized in that the unlocking method is applied to a server, the server is in communication connection with electronic equipment, and the unlocking method comprises the following steps:
receiving a webpage identifier of a target webpage sent by the electronic equipment, wherein the target webpage is obtained by the electronic equipment through a webpage label prestored in a passive electronic lock acquired by near field communication, a plurality of browsers are preset in the electronic equipment, and the target browser accessing the target webpage at the time is determined according to the number of label pages of which the labels are opened by each browser;
acquiring an unlocking key corresponding to the webpage identifier, generating unlocking key information based on the unlocking key information and sending the unlocking key information to the electronic equipment, so that the electronic equipment generates unlocking audio according to the unlocking key information modulation, and plays the unlocking audio through the target webpage, so that the passive electronic lock acquires the unlocking audio played by the electronic equipment through the target webpage through an audio acquisition module, and controls unlocking according to the unlocking audio;
the unlocking key information is obtained through the following steps:
randomly generating a first special character and adding the first special character into an unlocking key to obtain a first dynamic key;
Determining the position information of the first special character in the first dynamic key as first character position information;
encrypting the first dynamic key and the first character position information respectively, and setting the encrypted first dynamic key and the first character position information as unlocking key information;
the electronic equipment generates unlocking audio according to the unlocking key information modulation, and the unlocking audio comprises the following components:
modulating and generating a first audio according to the encrypted first dynamic key in the unlocking key information; and
modulating and generating second audio according to the encrypted first character position information in the unlocking key information;
splicing the first audio and the second audio to obtain unlocking audio;
the electronic equipment determines notes corresponding to all characters in the unlocking key information according to a first mapping relation, arranges the notes corresponding to all the characters in the unlocking key information according to the sequence of the characters in the unlocking key information to obtain a target music score, and generates unlocking audio through the target music score;
the first mapping relation is used for representing the mapping relation between characters and notes, and each character has a unique corresponding note;
the first dynamic key and the first character position information are composed of a plurality of characters which are arranged in sequence, and a first audio and a second audio are generated through a first mapping relation, so that unlocking audio is obtained.
7. The unlocking method of claim 6, further comprising:
receiving a key modification instruction sent by the electronic equipment, wherein the key modification instruction comprises the following steps: modifying the key;
randomly generating a second special character and adding the second special character into the modified key to obtain a second dynamic key;
determining the position information of the second special character in the second dynamic key as second character position information;
encrypting the second dynamic key and the second character position information, and setting the encrypted second dynamic key and the encrypted second character position information as modified key information;
and sending the modification key information to the electronic equipment, so that the electronic equipment generates modification audio based on the modification key information and a pre-stored first preset voiceprint modulation, and plays the modification audio through the target webpage, so that the passive electronic lock obtains unlocking audio played by the electronic equipment through the target webpage through the audio acquisition module, and modifies a preset key in the passive electronic lock according to the modification audio.
8. A passive electronic lock, the passive electronic lock comprising:
The communication module is used for establishing near field communication with the electronic equipment and charging through the electronic equipment; and
if the charging is detected to be completed, the webpage label pre-stored in the passive electronic lock is sent to the electronic equipment, so that the electronic equipment accesses a target webpage according to the webpage label, and responds to authentication operation on the target webpage, login authentication information is obtained and sent to a server, so that the server generates an authentication passing instruction after determining that the authentication passes according to the login authentication information and sends the authentication passing instruction to the electronic equipment, so that the electronic equipment sends a webpage identifier of the target webpage to the server based on the authentication passing instruction, and the server carries out encryption processing based on an unlocking key corresponding to the webpage identifier to obtain unlocking key information, so that the electronic equipment modulates unlocking audio according to the unlocking key information from the server, and plays the unlocking audio through the target webpage, wherein a plurality of browsers are preset in the electronic equipment, and a target browser accessing the target webpage is determined according to the number of label pages of the opened labels of each browser;
The audio processing module is used for acquiring unlocking audio played by the electronic equipment through the target webpage through the audio acquisition module and controlling unlocking according to the unlocking audio;
after the passive electronic lock obtains unlocking audio through the audio acquisition module, firstly identifying music scores corresponding to the unlocking audio, determining characters corresponding to all notes in the music scores through a first mapping relation, generating target character strings according to arrangement relations corresponding to the notes in the music scores, decrypting according to the target character strings to obtain unlocking keys, and controlling unlocking if the unlocking keys are matched with preset keys in the passive electronic lock;
the first mapping relation is used for representing the mapping relation between characters and notes, and each character has a unique corresponding note;
wherein, according to unblanking audio frequency control unblanking, include:
demodulating the unlocking audio to obtain the unlocking key information; wherein, the unlocking key information includes: the first dynamic key is obtained by adding a first special character generated randomly to the unlocking key by the server; the first character position information is the position information of the first special character in the first dynamic key;
Decrypting the encrypted first dynamic key and the encrypted first character position information respectively to obtain the first dynamic key and the first character position information;
according to the first character position information, eliminating a first special character in the first dynamic key to obtain the unlocking key;
if the unlocking key is matched with a preset key in the passive electronic lock, unlocking;
the first dynamic key and the first character position information are composed of a plurality of characters which are arranged in sequence.
9. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps of the unlocking method according to any one of claims 4 to 5.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the unlocking method according to any one of claims 1 to 7.
CN202311493954.6A 2023-11-10 2023-11-10 Unlocking method, passive electronic lock, electronic device and storage medium Active CN117238065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311493954.6A CN117238065B (en) 2023-11-10 2023-11-10 Unlocking method, passive electronic lock, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311493954.6A CN117238065B (en) 2023-11-10 2023-11-10 Unlocking method, passive electronic lock, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN117238065A CN117238065A (en) 2023-12-15
CN117238065B true CN117238065B (en) 2024-03-26

Family

ID=89095148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311493954.6A Active CN117238065B (en) 2023-11-10 2023-11-10 Unlocking method, passive electronic lock, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117238065B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2896377Y (en) * 2006-03-09 2007-05-02 福建省普集网络科技有限公司 IC card for unique, precise and quick positioned accessing on web-page of internetwork
CN2896378Y (en) * 2006-03-09 2007-05-02 福建省普集网络科技有限公司 Smart cipher-key for unique, quick positioned accessing on web-page of internetwork
CN101996431A (en) * 2009-08-18 2011-03-30 朱利 Music identification lock device using any music player as unlocking basis
CN103457721A (en) * 2013-06-26 2013-12-18 吉林省长久实业集团有限公司 Method and device for generating passwords in bulk
CN104506322A (en) * 2014-12-17 2015-04-08 广东讯飞启明科技发展有限公司 Examinee identity authentication data compression and encryption method and decryption method
CN109840978A (en) * 2019-03-25 2019-06-04 广州阔道物联网技术有限公司 A kind of centralized management intelligent lock system and its management method and method for unlocking
KR20190098810A (en) * 2018-01-31 2019-08-23 주식회사 아이엠폼 Method and server for interactive message service
CN110264599A (en) * 2019-06-18 2019-09-20 杭州网策物联技术有限公司 The smart lock and long-distance monitoring method that wireless power is wirelessly unlocked
CN113434852A (en) * 2021-07-23 2021-09-24 网易(杭州)网络有限公司 Password processing method, password verification device, medium and electronic equipment
CN114285610A (en) * 2021-12-07 2022-04-05 卢英东 Method for encrypting and transmitting information

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140051012A (en) * 2012-10-22 2014-04-30 삼성전자주식회사 Electronic key and memethods for electronic for transmitting the electronic key and thereof
US10115256B2 (en) * 2014-04-07 2018-10-30 Videx, Inc. Remote administration of an electronic key to facilitate use by authorized persons

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2896377Y (en) * 2006-03-09 2007-05-02 福建省普集网络科技有限公司 IC card for unique, precise and quick positioned accessing on web-page of internetwork
CN2896378Y (en) * 2006-03-09 2007-05-02 福建省普集网络科技有限公司 Smart cipher-key for unique, quick positioned accessing on web-page of internetwork
CN101996431A (en) * 2009-08-18 2011-03-30 朱利 Music identification lock device using any music player as unlocking basis
CN103457721A (en) * 2013-06-26 2013-12-18 吉林省长久实业集团有限公司 Method and device for generating passwords in bulk
CN104506322A (en) * 2014-12-17 2015-04-08 广东讯飞启明科技发展有限公司 Examinee identity authentication data compression and encryption method and decryption method
KR20190098810A (en) * 2018-01-31 2019-08-23 주식회사 아이엠폼 Method and server for interactive message service
CN109840978A (en) * 2019-03-25 2019-06-04 广州阔道物联网技术有限公司 A kind of centralized management intelligent lock system and its management method and method for unlocking
CN110264599A (en) * 2019-06-18 2019-09-20 杭州网策物联技术有限公司 The smart lock and long-distance monitoring method that wireless power is wirelessly unlocked
CN113434852A (en) * 2021-07-23 2021-09-24 网易(杭州)网络有限公司 Password processing method, password verification device, medium and electronic equipment
CN114285610A (en) * 2021-12-07 2022-04-05 卢英东 Method for encrypting and transmitting information

Also Published As

Publication number Publication date
CN117238065A (en) 2023-12-15

Similar Documents

Publication Publication Date Title
CN108632253B (en) Client data security access method and device based on mobile terminal
US20150319173A1 (en) Co-verification method, two dimensional code generation method, and device and system therefor
EP3543884A1 (en) Method and system for protecting system partition key data, and terminal
US20140281501A1 (en) Application access control method and electronic apparatus implementing the same
CN112199652B (en) Login method, terminal, server, system, medium and equipment of application program
CN106778295B (en) File storage method, file display method, file storage device, file display device and terminal
CN106255102B (en) Terminal equipment identification method and related equipment
US20180218134A1 (en) Determining computer ownership
CN112380552A (en) Data processing method and device, storage medium and computer equipment
CN114528598A (en) Method and device for determining file integrity of file system and electronic equipment
CN117238065B (en) Unlocking method, passive electronic lock, electronic device and storage medium
CN110633045B (en) Data processing method and electronic equipment
CN117238066B (en) Unlocking method, passive electronic lock, electronic device and storage medium
CN114826724B (en) Data processing method, device, electronic equipment and storage medium
CN113890753B (en) Digital identity management method, device, system, computer equipment and storage medium
CN114756849B (en) Method and device for verifying personal identification number PIN code
CN111444539B (en) Authority processing method and device, storage medium and terminal
CN114844629A (en) Verification method and device of block chain account, computer equipment and storage medium
CN106778297B (en) Application program running method and device and mobile terminal
CN115174161B (en) Account login method and device, electronic equipment and storage medium
US20230161872A1 (en) Method for application security and electronic device for performing the same
CN117041372A (en) Protocol switching method, device and equipment of passive equipment and readable storage medium
CN117932587A (en) Air conditioner activation method, system, device, electronic equipment and storage medium
CN116384998A (en) DID contract management method, DID contract management device, electronic equipment and readable storage medium
CN116301578A (en) Parameter configuration method, device, medium and equipment for cache function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant