CN107564141A - A kind of ultrasonic wave method for unlocking, first terminal and second terminal - Google Patents

A kind of ultrasonic wave method for unlocking, first terminal and second terminal Download PDF

Info

Publication number
CN107564141A
CN107564141A CN201710648475.5A CN201710648475A CN107564141A CN 107564141 A CN107564141 A CN 107564141A CN 201710648475 A CN201710648475 A CN 201710648475A CN 107564141 A CN107564141 A CN 107564141A
Authority
CN
China
Prior art keywords
terminal
password
ultrasonic wave
unlocking
default
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.)
Withdrawn
Application number
CN201710648475.5A
Other languages
Chinese (zh)
Inventor
常江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710648475.5A priority Critical patent/CN107564141A/en
Publication of CN107564141A publication Critical patent/CN107564141A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a kind of ultrasonic wave method for unlocking, first terminal and second terminal, methods described includes:First terminal determines a first password from default first terminal cryptographic libraries;Wherein, first terminal cryptographic libraries are identical with the default second terminal cryptographic libraries of second terminal, and first terminal is used to control second terminal to realize unlocking function;First password is encrypted according to default cipher mode, obtains the second password, and add the second password in unlocking ultrasonic wave according to default coded system;The second terminal for determining to match with itself according to default match parameter, unlocking ultrasonic wave is sent to second terminal according to the direction of the launch of determination, second terminal is used to realize unlocking function.A kind of ultrasonic wave method for unlocking, first terminal and the second terminal that the embodiment of the present invention proposes, can conveniently control unlocking, improve security when terminal realizes lock function.

Description

A kind of ultrasonic wave method for unlocking, first terminal and second terminal
Technical field
The present invention relates to security precautions technology field, more particularly to a kind of ultrasonic wave method for unlocking, first terminal and second Terminal.
Background technology
As the improvement of people's living standards, the enhancing of prevention awareness, people are constantly lifted for the demand of lockset.
In the prior art, there is many unlocking modes, relatively common has machinery unlocking and password unlocking.Machinery is opened The time that lock uses is most long, and the scope of application is the most extensive, is to realize to unlock by the key matched with lockhole.Password unlocking is then Key is not needed, it is only necessary to which user keeps default password firmly in mind, and default Password Input lockset is unlocked to realize.
However, machinery, which is unlocked, needs user's carrying keys at any time, once key is lost or damaged by user, may result in It can not be unlocked, or even need the lockset more renewed.Password unlocking needs user to keep default password firmly in mind, once user forgets Password, it is necessary to which person skilled is handled, great inconvenience is brought to user.Also, the loss of key is close The leakage of code can also bring the hidden danger that may cause the heavy losses of property to user, and therefore, existing lockset safety is relatively low.
The content of the invention
In order to solve the above problems, the embodiments of the invention provide a kind of ultrasonic wave method for unlocking, first terminal and second Terminal, it is convenient and swift, improve security when terminal realizes lock function.
The technical proposal of the invention is realized in this way:
The embodiments of the invention provide a kind of method that ultrasonic wave is unlocked, applied to first terminal, methods described includes:
A first password is determined from default first terminal cryptographic libraries;Wherein, the first terminal cryptographic libraries and the The default second terminal cryptographic libraries of two terminals are identical, and the first terminal is used to control the second terminal to realize unlocking function;
The first password is encrypted according to default cipher mode, obtains the second password, and according to default volume Code mode adds second password in unlocking ultrasonic wave;
The second terminal that is matched with itself is determined according to default match parameter, according to the direction of the launch of determination by institute State unlocking ultrasonic wave to send to the second terminal, the second terminal is used to realize unlocking function.
In such scheme, methods described also includes:
The deletion ultrasonic wave that the second terminal is sent is received, and parses the deletion ultrasonic wave, described delete is obtained and surpasses The deletion instruction carried in sound wave, it is described delete instruction indicate the first terminal delete in the first terminal cryptographic libraries with institute State first password identical password;
Or the alarm ultrasonic wave that the second terminal is sent is received, and the alarm ultrasonic wave is parsed, obtain the police The alarm signal carried in report ultrasonic wave, according to the alarm signal, knows that unlocking function is not implemented in the second terminal.
The embodiments of the invention provide a kind of method that ultrasonic wave is unlocked, applied to second terminal, methods described includes:
Receive the unlocking ultrasonic wave that first terminal is sent;Wherein, the first terminal is to be determined by default match parameter The terminal matched with the second terminal, the first terminal be used for control the second terminal to realize unlocking function;
The unlocking ultrasonic wave is decoded according to default decoding process, obtains what is carried in the unlocking ultrasonic wave Second password, and second password is decrypted according to default manner of decryption, obtain first password;
When existing in default second terminal cryptographic libraries with the first password identical password, unlocking function is realized; Wherein, the second terminal cryptographic libraries are identical with the default first terminal cryptographic libraries of the first terminal.
In such scheme, it is described realize unlocking function after, methods described also includes:
Delete in the second terminal cryptographic libraries with the first password identical password;
Sent to the first terminal and delete ultrasonic wave;Wherein, carried in the deletion ultrasonic wave and delete instruction, for referring to Show that the first terminal deletes the first password in the first terminal cryptographic libraries.
In such scheme, methods described also includes:
When not existing in the second terminal cryptographic libraries with the first password identical password, to the first terminal Send alarm ultrasonic wave;Wherein, alarm signal is carried in the alarm ultrasonic wave, the second terminal is unrealized to be opened for characterizing Lock function.
The embodiments of the invention provide a kind of first terminal, the first terminal includes:First processor, the first transmitting Device, the first receiver, first memory and the first communication bus;
First communication bus, for realizing that the connection between the first processor and the first memory is led to Letter;
The first memory, for storing the first ultrasonic wave unlocking program and first terminal cryptographic libraries;
The first transmitter, unlocking ultrasonic wave is sent to second terminal for the direction of the launch according to determination, it is described Second terminal is used to realize unlocking function;
First receiver, the deletion ultrasonic wave or alarm ultrasonic wave sent for receiving the second terminal;
The first processor, for performing the first ultrasonic wave unlocking program stored in the first memory, with reality Existing following steps:
A first password is determined from the default first terminal cryptographic libraries;Wherein, the first terminal cryptographic libraries Identical with the default second terminal cryptographic libraries of the second terminal, the first terminal is used to control the second terminal realization to open Lock function;The first password is encrypted according to default cipher mode, obtains the second password, and according to default coding Mode adds second password in unlocking ultrasonic wave;Described second matched according to the determination of default match parameter with itself Terminal;The deletion ultrasonic wave is parsed, obtains the deletion instruction deleted and carried in ultrasonic wave, it is described to delete instruction instruction institute State first terminal delete in the first terminal cryptographic libraries with the first password identical password;Or parse the alarm Ultrasonic wave, the alarm signal carried in the alarm ultrasonic wave is obtained, according to the alarm signal, know the second terminal not Realize unlocking function.
The embodiments of the invention provide a kind of second terminal, the second terminal includes:Second processor, the second transmitting Device, the second receiver, second memory and the second communication bus;
Second communication bus, for realizing that the connection between the second processor and the second memory is led to Letter;
The second memory, for storing the second ultrasonic wave unlocking program and second terminal cryptographic libraries;
The second transmitter, ultrasonic wave or alarm ultrasonic wave are deleted for being sent to first terminal;
Second receiver, the unlocking ultrasonic wave sent for receiving the first terminal;Wherein, the first terminal For the terminal matched with the second terminal determined by default match parameter, the first terminal is used to control described second Terminal realizes unlocking function;
The second processor, for performing the second ultrasonic wave unlocking program stored in the second memory, with reality Existing following steps:
The unlocking ultrasonic wave is decoded according to default decoding process, obtains what is carried in the unlocking ultrasonic wave Second password, and second password is decrypted according to default manner of decryption, obtain first password;When default described When existing in second terminal cryptographic libraries with the first password identical password, unlocking function is realized;Wherein, the second terminal Cryptographic libraries are identical with the default first terminal cryptographic libraries of the first terminal;Delete in the second terminal cryptographic libraries with described One password identical password.
In above-mentioned second terminal, the second transmitter, specifically for performing following steps:
It is described realize unlocking function after, to the first terminal send delete ultrasonic wave;Wherein, the deletion ultrasonic wave Middle carry deletes instruction, and the first password is deleted in the first terminal cryptographic libraries for indicating the first terminal;When When not existing in the second terminal cryptographic libraries with the first password identical password, send alarm to the first terminal and surpass Sound wave;Wherein, alarm signal is carried in the alarm ultrasonic wave, unlocking function is not implemented for characterizing the second terminal.
The embodiments of the invention provide a kind of computer-readable recording medium, and applied to first terminal, the computer can Read storage medium and be stored with the first ultrasonic wave unlocking program, the ultrasonic wave unlocking program is performed by first processor, to realize Method described in claim 1-2.
The embodiments of the invention provide a kind of computer-readable recording medium, and applied to second terminal, the computer can Read storage medium and be stored with the second ultrasonic wave unlocking program, the ultrasonic wave unlocking program is performed by second processor, to realize Method described in claim 3-5.
As can be seen here, in the technical scheme of the embodiment of the present invention, first terminal is from default first terminal cryptographic libraries Determine a first password;Wherein, first terminal cryptographic libraries are identical with the default second terminal cryptographic libraries of second terminal, and first eventually Hold for controlling second terminal to realize unlocking function;First password is encrypted according to default cipher mode, obtains second Password, and add the second password in unlocking ultrasonic wave according to default coded system;According to default match parameter determine with The second terminal of itself matching, unlocking ultrasonic wave is sent to second terminal, second terminal be used for according to the direction of the launch of determination Realize unlocking function.That is, in the technical scheme of the embodiment of the present invention, first terminal can be unlocked by sending to carry Second terminal of the unlocking ultrasonic wave control with lock function of password realizes unlocking function.Also, first terminal determines each time Unlocking cipher be all different, even if certain once unlocking cipher leakage, will not also bring potential safety hazard.Therefore, it is possible to side Just efficiently control is unlocked, and improves security when terminal realizes lock function.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the optional mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart one of ultrasonic wave method for unlocking provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram that first terminal provided in an embodiment of the present invention sends unlocking ultrasonic wave to second terminal;
Fig. 5 is a kind of flowchart 2 of ultrasonic wave method for unlocking provided in an embodiment of the present invention;
Fig. 6 is a kind of flow chart 3 of ultrasonic wave method for unlocking provided in an embodiment of the present invention;
Fig. 7 is a kind of flow chart four of ultrasonic wave method for unlocking provided in an embodiment of the present invention;
Fig. 8 is a kind of exemplary mobile phone 1 provided in an embodiment of the present invention and the schematic diagram of the interaction of mobile phone 2;
Fig. 9 is a kind of first terminal structural representation provided in an embodiment of the present invention;
Figure 10 is a kind of second terminal structural representation provided in an embodiment of the present invention.
Embodiment
It should be appreciated that the technical scheme that the specific embodiments described herein are merely illustrative of the present invention, is not used to Limit protection scope of the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself do not have a specific meaning.Therefore, " module " can mixedly make with " part " With.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware configuration signal for a kind of optional mobile terminal of each embodiment of the realization present invention Figure, the mobile terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output Unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface The parts such as unit 108, memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that show in Fig. 1 The mobile terminal structure gone out does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less portions Part, either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment one
The embodiments of the invention provide a kind of ultrasonic wave method for unlocking, and applied to first terminal, Fig. 3 is the embodiment of the present invention The flow chart one of a kind of ultrasonic wave method for unlocking provided, as shown in figure 3, this method can include:
S301, a first password is determined from default first terminal cryptographic libraries;Wherein, first terminal cryptographic libraries and the The default second terminal cryptographic libraries of two terminals are identical, and first terminal is used to control second terminal to realize unlocking function.
In an embodiment of the present invention, first terminal cryptographic libraries have been preset in first terminal, first terminal can be from first A first password is determined in terminal password storehouse, the first password is actually to control second terminal to realize the close of unlocking function Code.
It should be noted that first terminal in the embodiment of the present invention is the common equipment that user carries with, as mobile phone, The equipment such as flat board, second terminal are the terminal with lock function.First terminal is used to control second terminal to realize unlocking function.
Optionally, in an embodiment of the present invention, first terminal can determine rule default first according to default Terminal password determines first password in storehouse, a password can also be selected in default first terminal cryptographic libraries at random, by this Password is defined as first password, specifically determines that the regular embodiment of the present invention is not restricted.
For example, if default determination rule is sequential selection in first terminal, first terminal is according to default the The tandem of permutations of code in one terminal password storehouse, the most preceding password that puts in order is selected, this is defined as first password.
If not default in first terminal determine rule, first terminal randomly chooses one in first terminal cryptographic libraries Password, the password is defined as first password.
It should be noted that in the embodiment of the present invention in first terminal in default first terminal cryptographic libraries and second terminal Default second terminal cryptographic libraries are identicals, and first terminal cryptographic libraries and second terminal cryptographic libraries can be users according to itself The set cryptographic libraries of hobby or the cryptographic libraries provided by some softwares or service provider, the form of password can be with It is numeral or letter, can also be the combination of numeral and letter, or other forms.Specific first terminal password The setting embodiment of the present invention of storehouse and second terminal cryptographic libraries is not restricted, in first terminal cryptographic libraries and second terminal cryptographic libraries The form embodiment of the present invention of password is not also restricted.
S302, according to default cipher mode first password is encrypted, obtains the second password, and according to default volume Code mode adds the second password in unlocking ultrasonic wave.
In an embodiment of the present invention, first terminal, can be according to default cipher mode pair it is determined that after first password First password is encrypted, and is the second password after first password encryption, adds the second password according still further to default coded system Unlocking ultrasonic wave, make to carry the second password in unlocking ultrasonic wave.
It should be noted that cipher mode and coding are pre-set in an embodiment of the present invention, in first terminal Mode, wherein, cipher mode is used to encrypt first password, and coded system is used to merge the second password with unlocking ultrasonic wave.
Specifically, in an embodiment of the present invention, the cipher mode in first terminal can be according to user to security It is required that being configured, the requirement for security is higher, and the cipher mode of setting is also more complicated, specific to set the present invention real Example is applied not to be restricted.
Exemplary, if the form that the cryptogram form in first terminal cryptographic libraries is numeral and letter combines, and first is whole Default cipher mode is held as each numeral plus one mode, then first terminal is it is determined that after first password, in first password It is each numeral plus one, the first password after being encrypted, i.e. the second password.For example, the first password that first terminal determines is: Xyz12345, then first password is encrypted in the way of each numeral plus one, the second obtained password is: xyz23456。
If the password in first terminal cryptographic libraries is the form of more bit combinations, and the default cipher mode of first terminal is to incite somebody to action The mode that first and last password position are exchanged, then first terminal is it is determined that after first password, by first password In the position of first password and last password exchanged, the first password after being encrypted, i.e. the second password.Example Such as, the first password that first terminal determines is x123yz, then x and z is carried out into position exchange, the second obtained password is: z123yx。
It should be noted that in an embodiment of the present invention, the second password is merged with unlocking ultrasonic wave in first terminal Use for default coded system, the coded system can determine according to practical application scene or demand, no longer superfluous herein State.Wherein, as long as the mode that the second password is added to unlocking ultrasonic wave can be realized, it is applied to the present invention, the present invention is not only It is limited only to encode this mode, the specific mode embodiment of the present invention is not restricted.
S303, the second terminal for determining to match with itself according to default match parameter, will according to the direction of the launch of determination Unlocking ultrasonic wave is sent to second terminal, and second terminal is used to realize unlocking function.
In an embodiment of the present invention, first terminal, can be according to default after the second password is added into unlocking ultrasonic wave Match parameter determine the second terminal that match with itself, according still further to the direction of the launch of determination, send unlocking to second terminal and surpass Sound wave, second terminal receive unlocking ultrasonic wave, and unlocking function is realized according to unlocking ultrasonic wave.
It should be noted that in an embodiment of the present invention, first terminal is determined and oneself according to default match parameter The second terminal of body matching.The match parameter can be certain mark preserved in first terminal and second terminal, specifically The match parameter embodiment of the present invention is not restricted.
Exemplary, first terminal can determine the second terminal that matched with itself according to default key, when the first end When the key at end and the key of second terminal are the key that a pair match each other, first terminal can determine that second terminal is and oneself The terminal of body matching, is controlled to second terminal.
It is understood that unlocking ultrasonic wave is that tool is directive, first terminal needs the direction of the launch according to determination Unlocking ultrasonic wave is sent to second terminal.First terminal sends unlocking ultrasonic wave to second eventually according to the direction of the launch of determination Other terminal uses it is possible to prevente effectively from when other terminals be present on second terminal periphery, are impacted, can also avoided by end The problem of second terminal reception failure, it is ensured that second terminal can receive the unlocking ultrasonic wave of first terminal transmitting.
Fig. 4 is the schematic diagram that first terminal provided in an embodiment of the present invention sends unlocking ultrasonic wave to second terminal.Such as Fig. 4 Shown, first terminal sends unlocking ultrasonic wave to second terminal according to the direction of the launch of determination, wherein it is determined that the direction of the launch It can be determined according to the position where second terminal receiver.The position that first terminal is installed according to receiver in second terminal Put, point to second terminal receiver and launched.
Further, after step S303, a kind of ultrasonic wave method for unlocking provided in an embodiment of the present invention also includes step Rapid S304 or step S305, it is specific as follows:
S304, the deletion ultrasonic wave that second terminal is sent is received, and parse deletion ultrasonic wave, obtained to delete and taken in ultrasonic wave Band deletion instruction, delete instruction instruction first terminal delete first terminal cryptographic libraries in first password identical password.
Specifically, in an embodiment of the present invention, when the unlocking ultrasonic wave that second terminal is sent according to first terminal, realize After unlocking function, first terminal receives the deletion ultrasonic wave that second terminal is sent, and is referred to according to the deletion carried in deletion ultrasonic wave Order, delete first terminal cryptographic libraries in first password identical password.
It is understood that first terminal is identical with first password in ultrasonic wave deletion first terminal cryptographic libraries according to deleting Password, it is ensured that first terminal when every secondary control second terminal realizes unlocking function, use for different passwords, energy Enough improve the security that second terminal realizes lock function.
S305, the alarm ultrasonic wave that second terminal is sent is received, and parse alarm ultrasonic wave, obtained and taken in alarm ultrasonic wave The alarm signal of band, according to alarm signal, know that unlocking function is not implemented in second terminal.
In an embodiment of the present invention, when the unlocking ultrasonic wave that second terminal is sent according to first terminal, it is not implemented and unlocks After function, first terminal receives the alarm ultrasonic wave that second terminal is sent, and according to the alarm signal carried in alarm ultrasonic wave, obtains Know that unlocking function is not implemented in second terminal, user can be reminded there are other terminals to attempt to control second terminal to realize unlocking work( Energy.
A kind of ultrasonic wave method for unlocking provided in an embodiment of the present invention, applied to first terminal, first terminal is from default A first password is determined in first terminal cryptographic libraries;Wherein, first terminal cryptographic libraries and the default second terminal of second terminal Cryptographic libraries are identical, and first terminal is used to control second terminal to realize unlocking function;According to default cipher mode to first password It is encrypted, obtains the second password, and add the second password in unlocking ultrasonic wave according to default coded system;According to default Match parameter determine the second terminal that is matched with itself, unlocking ultrasonic wave was sent to the second end according to the direction of the launch of determination End, second terminal are used to realize unlocking function.That is, in the technical scheme of the embodiment of the present invention, first terminal can be with Second terminal of the unlocking ultrasonic wave control with lock function that unlocking cipher is carried by sending realizes unlocking function.Also, the The unlocking cipher that one terminal determines each time is all different.Therefore, the embodiment of the present invention propose ultrasonic wave method for unlocking and Terminal, even if certain unlocking cipher leakage once, will not also bring potential safety hazard.Therefore, the ultrasound that the embodiment of the present invention proposes Ripple method for unlocking, unlocking can be conveniently controlled, improve security when second terminal realizes lock function.
Embodiment two
The embodiment of the present invention additionally provides a kind of ultrasonic wave method for unlocking, and applied to second terminal, Fig. 5 is implemented for the present invention The flowchart 2 for a kind of ultrasonic wave method for unlocking that example provides, as shown in figure 5, this method can include:
S501, receive the unlocking ultrasonic wave that first terminal is sent;Wherein, first terminal is to be determined by default match parameter The terminal matched with second terminal, first terminal be used for control second terminal to realize unlocking function.
In an embodiment of the present invention, second terminal is controlled by first terminal, and second terminal will realize unlocking function, first Need to receive the unlocking ultrasonic wave that first terminal is sent, afterwards according to the unlocking ultrasonic wave received, can just judge whether to realize Unlocking function.
It should be noted that first terminal in the embodiment of the present invention is the common equipment that user carries with, as mobile phone, The equipment such as flat board, second terminal are the terminal with lock function.First terminal is used to control second terminal to realize unlocking function.
It is understood that second terminal receives the unlocking ultrasonic wave that first terminal is sent, wherein, second terminal is receiving Before unlocking ultrasonic wave, matching relationship is established with first terminal, specifically, first terminal is to pass through itself preset matching parameter With the second terminal terminal that the match is successful, the parameter match parameter can be certain mark preserved in first terminal and second terminal Know, the specific match parameter embodiment of the present invention is not restricted.
S502, parsed according to default decoding process dual lock ultrasonic wave, obtain the carried in unlocking ultrasonic wave Two passwords, and the second password is decrypted according to default manner of decryption, obtain first password.
In an embodiment of the present invention, after second terminal receives the unlocking ultrasonic wave of first terminal transmission, to the unlocking Ultrasonic wave is decoded according to default decoding process, the second password carried in unlocking ultrasonic wave is got after decoding, then press The second password is decrypted according to default manner of decryption, the second password after being decrypted, i.e. first password.
It should be noted that manner of decryption and decoding are pre-set in an embodiment of the present invention, in second terminal Mode, wherein, decoding process is used for dual lock ultrasound wave decoder, and manner of decryption is used to decrypt the second password, in second terminal Manner of decryption it is corresponding with the cipher mode in first terminal, the coding in decoding process and first terminal in second terminal Mode is corresponding.
Specifically, in an embodiment of the present invention, due to the encryption in the manner of decryption and first terminal in second terminal Mode is corresponding, and the requirement for security is higher, and the default cipher mode of first terminal is more complicated, the default solution of second terminal Close mode is also more complicated, specific to set the embodiment of the present invention not to be restricted.
Exemplary, if the default cipher mode of first terminal is preset for each numeral plus one mode, second terminal Manner of decryption be each numeral mode for subtracting one, second terminal is after the second password is obtained, to each number in the second password Word subtracts one, the second password after being decrypted, i.e. first password.For example, the second password that second terminal obtains is: Xyz23456, then second password is decrypted in the way of each numeral subtracts one, obtained first password is: xyz12345。
If the default cipher mode of first terminal is the mode for being exchanged first and last password position, The default manner of decryption of second terminal is also the mode for being exchanged first and last password position, and second terminal exists After obtaining the second password, the position of first password and last password in the second password is exchanged, decrypted The second password afterwards, i.e. first password.For example, the second password that second terminal obtains is z123yx, then x and z are entered into line position Exchange is put, obtained first password is:x123yz.
S503, when in default second terminal cryptographic libraries exist with first password identical password when, realize unlocking function; Wherein, second terminal cryptographic libraries are identical with the default first terminal cryptographic libraries of first terminal.
In an embodiment of the present invention, second terminal is by after decoding, decrypt and getting first password, default second Searched whether in terminal password storehouse exist with first password identical password, if being present in first password in second terminal cryptographic libraries Identical password, then second terminal realizes unlocking function, if being not present and first password identical in second terminal cryptographic libraries Password, then second terminal does not realize unlocking function.
It should be noted that in the embodiment of the present invention in first terminal in default first terminal cryptographic libraries and second terminal Default second terminal cryptographic libraries are identicals, and first terminal cryptographic libraries and second terminal cryptographic libraries can be users according to itself The set cryptographic libraries of hobby or the cryptographic libraries provided by some softwares or service provider;The form of password can be with It is numeral or letter, can also be the combination of numeral and letter, or other forms.Specific first terminal password The setting embodiment of the present invention of storehouse and second terminal cryptographic libraries is not restricted, in first terminal cryptographic libraries and second terminal cryptographic libraries The form embodiment of the present invention of password is not also restricted.
Further, after step S503, a kind of ultrasonic wave method for unlocking provided in an embodiment of the present invention also includes step Rapid S504~S505, as shown in fig. 6, comprising the following steps that:
S504, delete second terminal cryptographic libraries in first password identical password.
It is understood that second terminal is deleted and the after unlocking function is realized, it is necessary in second terminal cryptographic libraries One password identical password, it is ensured that second terminal every time realize unlocking function when, use for different passwords, can Improve the security that second terminal realizes lock function.
S505, sent to first terminal and delete ultrasonic wave;Wherein, delete to carry in ultrasonic wave and delete instruction, for indicating First terminal deletes first password in first terminal cryptographic libraries.
In an embodiment of the present invention, second terminal deletes close with first password identical in second terminal cryptographic libraries After code, sent to first terminal and delete ultrasonic wave, instruction first terminal deletes first password in first terminal cryptographic libraries, ensures First terminal cryptographic libraries are with second terminal cryptographic libraries identical, in addition, second terminal, which is sent, deletes ultrasonic wave to first terminal, Also allow for first terminal and know that second terminal has been carried out unlocking function.
Further, after step S502, a kind of ultrasonic wave method for unlocking provided in an embodiment of the present invention also includes step Rapid S506, as described in Figure 7, comprise the following steps that:
S506, when in second terminal cryptographic libraries do not exist with first password identical password when, to first terminal send warn Report ultrasonic wave;Wherein, alarm signal is carried in the alarm ultrasonic wave, unlocking function is not implemented for characterizing second terminal.
In an embodiment of the present invention, second terminal is not found identical with first password in second terminal cryptographic libraries Password when, second terminal can not realize unlocking function, and need to first terminal send alarm ultrasonic wave so that first eventually End knows that unlocking function is not implemented in second terminal, and reminding the user that may have other terminals to attempt to control second terminal realization to open Lock function.
It should be noted that after step S502, it is close with first password identical when existing in second terminal cryptographic libraries During code, step S503~S505 is performed;When second terminal cryptographic libraries are to exist with first password identical password, step is performed S506。
A kind of ultrasonic wave method for unlocking provided in an embodiment of the present invention, applied to second terminal, second terminal receives first The unlocking ultrasonic wave that terminal is sent;Wherein, first terminal is the match is successful with second terminal by itself default match parameter Terminal, first terminal be used for control second terminal to realize unlocking function;Enter according to default decoding process dual lock ultrasonic wave Row parsing, obtains the second password carried in unlocking ultrasonic wave, and the second password is decrypted according to default manner of decryption, Obtain first password;When existing in default second terminal cryptographic libraries with first password identical password, unlocking function is realized; Wherein, second terminal cryptographic libraries are identical with the default first terminal cryptographic libraries of first terminal.That is, in the embodiment of the present invention Technical scheme in, second terminal can according to the unlocking ultrasonic wave for the carrying unlocking cipher that the first terminal that receives is sent, Realize unlocking function.Also, second terminal realizes that the unlocking cipher of unlocking function is all different each time, even if certain is once Unlocking cipher is revealed, and will not also bring potential safety hazard.Therefore, the ultrasonic wave method for unlocking that the embodiment of the present invention proposes, Neng Goufang Just unlocking function is efficiently realized, improves security when second terminal realizes lock function.
Exemplary, in an embodiment of the present invention, first terminal can be mobile phone 1, and second terminal can be mobile phone 2, Mobile phone 1 and mobile phone 2 interact the process for realizing that mobile phone 1 is unlocked.As shown in figure 8, comprise the following steps that:
S801, mobile phone 1 determine a first password from default first password storehouse, according to default each numeral plus one Password xyz12345 (first password) is encrypted the mode of (cipher mode), obtains password xyz23456 (the second password), And xyz23456 is added in unlocking ultrasonic wave according to default coded system;Wherein, the first password storehouse of mobile phone 1 and mobile phone 2 The second cryptographic libraries it is identical, mobile phone 1 be used for control mobile phone 2 to realize unlocking function.
The mobile phone 2 that S802, mobile phone 1 determine to match with itself according to default match parameter, according to the direction of the launch of determination Unlocking ultrasonic wave is sent to mobile phone 2.
S803, mobile phone 2 are decoded according to default decoding process dual lock ultrasonic wave, are obtained and are carried in unlocking ultrasonic wave Password xyz23456, and password xyz23456 is decrypted according to default manner of decryption, obtains password xyz12345.
S804, when in default second cryptographic libraries of mobile phone 2 exist with password xyz12345 identical passwords when, realize unlock Function, delete the second cryptographic libraries in password xyz12345 identical passwords.
S805, mobile phone 2 are sent to mobile phone 1 deletes ultrasonic wave;Wherein, delete to carry in ultrasonic wave and delete instruction, for referring to Show that mobile phone 1 deletes password xyz12345 in first password storehouse.
Ultrasonic wave is deleted in S806, the parsing of mobile phone 1, is obtained the deletion instruction deleted and carried in ultrasonic wave, is deleted first terminal In cryptographic libraries with password xyz12345 identical passwords.
S807, when not existing in default second cryptographic libraries of mobile phone 2 with first password identical password, mobile phone 2 is to hand Machine 1 sends alarm ultrasonic wave;Wherein, alarm signal is carried in alarm ultrasonic wave, unlocking function is not implemented for characterizing mobile phone 2.
S808, mobile phone 1 parse alarm ultrasonic wave, obtain the alarm signal that carries in alarm ultrasonic wave, according to alarm signal, Know that unlocking function is not implemented in mobile phone 2.
Embodiment three
As shown in figure 9, the embodiments of the invention provide a kind of first terminal, the first terminal can include:First processing Device 901, first transmitter 902, the first receiver 903, the communication bus 905 of first memory 904 and first;
First communication bus 905, for realizing between the first processor 901 and the first memory 904 Connection communication;
The first memory 904, for storing the first ultrasonic wave unlocking program and first terminal cryptographic libraries;
The first transmitter 902, unlocking ultrasonic wave is sent to second terminal, institute for the direction of the launch according to determination Second terminal is stated to be used to realize unlocking function;
First receiver 903, the deletion ultrasonic wave or alarm ultrasonic wave sent for receiving the second terminal;
The first processor 901, for performing the first ultrasonic wave unlocking journey stored in the first memory 904 Sequence, to realize following steps:
A first password is determined from the default first terminal cryptographic libraries;Wherein, the first terminal cryptographic libraries Identical with the default second terminal cryptographic libraries of the second terminal, the first terminal is used to control the second terminal realization to open Lock function;The first password is encrypted according to default cipher mode, obtains the second password, and according to default coding Mode adds second password in unlocking ultrasonic wave;Described second matched according to the determination of default match parameter with itself Terminal;The deletion ultrasonic wave is parsed, obtains the deletion instruction deleted and carried in ultrasonic wave, it is described to delete instruction instruction institute State first terminal delete in the first terminal cryptographic libraries with the first password identical password;Or parse the alarm Ultrasonic wave, the alarm signal carried in the alarm ultrasonic wave is obtained, according to the alarm signal, know the second terminal not Realize unlocking function.
A kind of first terminal provided in an embodiment of the present invention, first terminal determine one from default first terminal cryptographic libraries Individual first password;Wherein, first terminal cryptographic libraries are identical with the default second terminal cryptographic libraries of second terminal, and first terminal is used for Control second terminal realizes unlocking function;First password is encrypted according to default cipher mode, obtains the second password, and The second password is added in unlocking ultrasonic wave according to default coded system;Determine to match with itself according to default match parameter Second terminal, unlocking ultrasonic wave is sent to second terminal according to the direction of the launch of determination, second terminal, which is used to realize, unlocks Function.That is, in the technical scheme of the embodiment of the present invention, first terminal can carry opening for unlocking cipher by sending Second terminal of the lock ultrasonic wave control with lock function realizes unlocking function.Also, the unlocking that first terminal determines each time is close Code is all different.Even if certain unlocking cipher leakage once, will not also bring potential safety hazard.Therefore, the embodiment of the present invention carries The first terminal gone out, unlocking can be conveniently controlled, improve security when second terminal realizes lock function.
As shown in Figure 10, the embodiment of the present invention additionally provides a kind of second terminal, and the second terminal can include:At second Manage device 1001, second transmitter 1002, the second receiver 1003, the communication bus 1005 of second memory 1004 and second;
Second communication bus 1005, for realize the second processor 1001 and the second memory 904 it Between connection communication;
The second memory 1004, for storing the second ultrasonic wave unlocking program and second terminal cryptographic libraries;
The second transmitter 1002, ultrasonic wave or alarm ultrasonic wave are deleted for being sent to first terminal;
Second receiver 1003, the unlocking ultrasonic wave sent for receiving the first terminal;Wherein, described first Terminal is determines the terminal that is matched with the second terminal by default match parameter, and the first terminal is for controlling described the Two terminals realize unlocking function;
The second processor 1001, for performing the second ultrasonic wave unlocking journey stored in the second memory 1004 Sequence, to realize following steps:
The unlocking ultrasonic wave is decoded according to default decoding process, obtains what is carried in the unlocking ultrasonic wave Second password, and second password is decrypted according to default manner of decryption, obtain first password;When default described When existing in second terminal cryptographic libraries with the first password identical password, unlocking function is realized;Wherein, the second terminal Cryptographic libraries are identical with the default first terminal cryptographic libraries of the first terminal;Delete in the second terminal cryptographic libraries with described One password identical password.
Optionally, the second transmitter 1002, specifically for performing following steps:
It is described realize unlocking function after, to the first terminal send delete ultrasonic wave;Wherein, the deletion ultrasonic wave Middle carry deletes instruction, and the first password is deleted in the first terminal cryptographic libraries for indicating the first terminal;When When not existing in the second terminal cryptographic libraries with the first password identical password, send alarm to the first terminal and surpass Sound wave;Wherein, alarm signal is carried in the alarm ultrasonic wave, unlocking function is not implemented for characterizing the second terminal.
A kind of second terminal provided in an embodiment of the present invention, second terminal receive the unlocking ultrasonic wave that first terminal is sent; Wherein, first terminal is by itself default match parameter and the second terminal terminal that the match is successful, and first terminal is used to control Second terminal processed realizes unlocking function;Parsed according to default decoding process dual lock ultrasonic wave, obtain unlocking ultrasonic wave Second password of middle carrying, and the second password is decrypted according to default manner of decryption, obtain first password;When default When existing in second terminal cryptographic libraries with first password identical password, unlocking function is realized;Wherein, second terminal cryptographic libraries with The default first terminal cryptographic libraries of first terminal are identical.That is, in the technical scheme of the embodiment of the present invention, second terminal Unlocking function can be realized according to the unlocking ultrasonic wave for the carrying unlocking cipher that the first terminal received is sent.Also, second Terminal realizes that the unlocking cipher of unlocking function is all different each time, also will not band even if certain unlocking cipher leakage once Carry out potential safety hazard.Therefore, the second terminal that the embodiment of the present invention proposes, can conveniently realize unlocking function, have height Security.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, applied to first terminal and second terminal, The computer-readable recording medium storage has the first ultrasonic wave unlocking program and the second ultrasonic wave unlocking program, described the first to surpass Sound wave unlocking program can be performed by first processor, and to realize the method described in claim 1-2, second ultrasonic wave is unlocked Program can be performed by second processor, to realize the method described in claim 3-5.Computer-readable recording medium can be Volatile memory (volatile memory), such as random access memory (RAM, Random-Access Memory);Or Person's nonvolatile memory (non-volatile memory), such as read-only storage (ROM, Read-Only Memory), soon Flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid state hard disc (SSD, Solid-State Drive);Can also be the respective equipment for including one of above-mentioned memory or any combination, such as mobile phone, computer, flat board Equipment, personal digital assistant etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of ultrasonic wave method for unlocking, it is characterised in that applied to first terminal, methods described includes:
A first password is determined from default first terminal cryptographic libraries;Wherein, the first terminal cryptographic libraries and the second end Hold default second terminal cryptographic libraries identical, the first terminal is used to control the second terminal to realize unlocking function;
The first password is encrypted according to default cipher mode, obtains the second password, and according to default coding staff Formula adds second password in unlocking ultrasonic wave;
The second terminal for determining to match with itself according to default match parameter, is opened according to the direction of the launch of determination by described Lock ultrasonic wave is sent to the second terminal, and the second terminal is used to realize unlocking function.
2. according to the method for claim 1, it is characterised in that methods described also includes:
The deletion ultrasonic wave that the second terminal is sent is received, and parses the deletion ultrasonic wave, obtains the deletion ultrasonic wave The deletion instruction of middle carrying, it is described to delete instruction and indicate that the first terminal is deleted in the first terminal cryptographic libraries with described the One password identical password;
Or the alarm ultrasonic wave that the second terminal is sent is received, and the alarm ultrasonic wave is parsed, obtain the alarm and surpass The alarm signal carried in sound wave, according to the alarm signal, know that unlocking function is not implemented in the second terminal.
3. a kind of ultrasonic wave method for unlocking, it is characterised in that applied to second terminal, methods described includes:
Receive the unlocking ultrasonic wave that first terminal is sent;Wherein, the first terminal be determined by default match parameter with The terminal of the second terminal matching, the first terminal are used to control the second terminal to realize unlocking function;
The unlocking ultrasonic wave is decoded according to default decoding process, obtains second carried in the unlocking ultrasonic wave Password, and second password is decrypted according to default manner of decryption, obtain first password;
When existing in default second terminal cryptographic libraries with the first password identical password, unlocking function is realized;Wherein, The second terminal cryptographic libraries are identical with the default first terminal cryptographic libraries of the first terminal.
4. according to the method for claim 3, it is characterised in that it is described realize unlocking function after, methods described also includes:
Delete in the second terminal cryptographic libraries with the first password identical password;
Sent to the first terminal and delete ultrasonic wave;Wherein, carried in the deletion ultrasonic wave and delete instruction, for indicating State first terminal and delete the first password in the first terminal cryptographic libraries.
5. according to the method for claim 3, it is characterised in that methods described also includes:
When not existing in the second terminal cryptographic libraries with the first password identical password, sent to the first terminal Alarm ultrasonic wave;Wherein, alarm signal is carried in the alarm ultrasonic wave, unlocking work(is not implemented for characterizing the second terminal Energy.
6. a kind of first terminal, it is characterised in that the first terminal includes:First processor, first transmitter, first receive Device, first memory and the first communication bus;
First communication bus, for realizing the connection communication between the first processor and the first memory;
The first memory, for storing the first ultrasonic wave unlocking program and first terminal cryptographic libraries;
The first transmitter, unlocking ultrasonic wave is sent to second terminal for the direction of the launch according to determination, described second Terminal is used to realize unlocking function;
First receiver, the deletion ultrasonic wave or alarm ultrasonic wave sent for receiving the second terminal;
The first processor, for performing the first ultrasonic wave unlocking program stored in the first memory, with realize with Lower step:
A first password is determined from the default first terminal cryptographic libraries;Wherein, the first terminal cryptographic libraries and institute It is identical to state the default second terminal cryptographic libraries of second terminal, the first terminal is used to control the second terminal to realize unlocking work( Energy;The first password is encrypted according to default cipher mode, obtains the second password, and according to default coded system Second password is added in unlocking ultrasonic wave;Described second matched according to the determination of default match parameter with itself is whole End;The deletion ultrasonic wave is parsed, obtains the deletion instruction deleted and carried in ultrasonic wave, it is described to delete described in instruction instruction First terminal delete in the first terminal cryptographic libraries with the first password identical password;Or parse the alarm and surpass Sound wave, the alarm signal carried in the alarm ultrasonic wave is obtained, according to the alarm signal, know that the second terminal is not real Existing unlocking function.
7. a kind of second terminal, it is characterised in that the second terminal includes:Second processor, second transmitter, second receive Device, second memory and the second communication bus;
Second communication bus, for realizing the connection communication between the second processor and the second memory;
The second memory, for storing the second ultrasonic wave unlocking program and second terminal cryptographic libraries;
The second transmitter, ultrasonic wave or alarm ultrasonic wave are deleted for being sent to first terminal;
Second receiver, the unlocking ultrasonic wave sent for receiving the first terminal;Wherein, the first terminal is served as reasons The terminal matched with the second terminal that default match parameter determines, the first terminal are used to control the second terminal Realize unlocking function;
The second processor, for performing the second ultrasonic wave unlocking program stored in the second memory, with realize with Lower step:
The unlocking ultrasonic wave is decoded according to default decoding process, obtains second carried in the unlocking ultrasonic wave Password, and second password is decrypted according to default manner of decryption, obtain first password;When default described second When existing in terminal password storehouse with the first password identical password, unlocking function is realized;Wherein, the second terminal password Storehouse is identical with the default first terminal cryptographic libraries of the first terminal;Delete close with described first in the second terminal cryptographic libraries Code identical password.
8. second terminal according to claim 7, it is characterised in that the second transmitter, it is following specifically for performing Step:
It is described realize unlocking function after, to the first terminal send delete ultrasonic wave;Wherein, taken in the deletion ultrasonic wave Band deletes instruction, and the first password is deleted in the first terminal cryptographic libraries for indicating the first terminal;When described When not existing in second terminal cryptographic libraries with the first password identical password, alarm ultrasound is sent to the first terminal Ripple;Wherein, alarm signal is carried in the alarm ultrasonic wave, unlocking function is not implemented for characterizing the second terminal.
A kind of 9. computer-readable recording medium, it is characterised in that applied to first terminal, the computer-readable recording medium The first ultrasonic wave unlocking program is stored with, the ultrasonic wave unlocking program is performed by first processor, to realize claim 1-2 Described method.
A kind of 10. computer-readable recording medium, it is characterised in that applied to second terminal, the computer-readable storage medium Matter is stored with the second ultrasonic wave unlocking program, and the ultrasonic wave unlocking program is performed by second processor, to realize claim Method described in 3-5.
CN201710648475.5A 2017-08-01 2017-08-01 A kind of ultrasonic wave method for unlocking, first terminal and second terminal Withdrawn CN107564141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710648475.5A CN107564141A (en) 2017-08-01 2017-08-01 A kind of ultrasonic wave method for unlocking, first terminal and second terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710648475.5A CN107564141A (en) 2017-08-01 2017-08-01 A kind of ultrasonic wave method for unlocking, first terminal and second terminal

Publications (1)

Publication Number Publication Date
CN107564141A true CN107564141A (en) 2018-01-09

Family

ID=60974949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710648475.5A Withdrawn CN107564141A (en) 2017-08-01 2017-08-01 A kind of ultrasonic wave method for unlocking, first terminal and second terminal

Country Status (1)

Country Link
CN (1) CN107564141A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102820972A (en) * 2012-08-17 2012-12-12 刘欣 Authentication method based on sound wave
CN104361657A (en) * 2014-09-22 2015-02-18 三星电子(中国)研发中心 Intelligent lock and application method of intelligent lock
CN106780895A (en) * 2016-12-23 2017-05-31 余仁植 Method for unlocking coded lock, locking method, coded lock, systems approach and system
CN106850671A (en) * 2017-02-27 2017-06-13 南京聚鲲物联网科技有限公司 The identity identifying method and its system of a kind of utilization acoustic communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102820972A (en) * 2012-08-17 2012-12-12 刘欣 Authentication method based on sound wave
CN104361657A (en) * 2014-09-22 2015-02-18 三星电子(中国)研发中心 Intelligent lock and application method of intelligent lock
CN106780895A (en) * 2016-12-23 2017-05-31 余仁植 Method for unlocking coded lock, locking method, coded lock, systems approach and system
CN106850671A (en) * 2017-02-27 2017-06-13 南京聚鲲物联网科技有限公司 The identity identifying method and its system of a kind of utilization acoustic communication

Similar Documents

Publication Publication Date Title
CN106961706A (en) Method, mobile terminal and the computer-readable recording medium of communication pattern switching
CN107395850A (en) A kind of social communication information guard method, device and computer-readable recording medium
CN107315937A (en) A kind of method for secret protection, mobile terminal and computer-readable recording medium
CN107729133A (en) A kind of method, terminal and computer-readable recording medium for running application program
CN107613489A (en) A kind of wireless charging method, hotspot equipment, terminal and storage medium
CN107862196A (en) Fingerprint verification method, mobile terminal and computer-readable recording medium
CN107547142A (en) Communication means, device and computer-readable recording medium based on ultrasonic wave
CN107122817A (en) Processing method and Quick Response Code terminal based on Quick Response Code
CN107147803A (en) A kind of way of recording, terminal device and computer-readable recording medium
CN107347011A (en) A kind of group message processing method, equipment and computer-readable recording medium
CN107273766A (en) A kind of method and apparatus of data encryption and decryption
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN107846675A (en) Register method, terminal, registrar and computer-readable recording medium
CN107317680A (en) Labeling method, system and the computer-readable recording medium of secured account numbers
CN108961489A (en) A kind of equipment wearing control method, terminal and computer readable storage medium
CN107276991A (en) Load method, equipment and the computer-readable recording medium of Web page
CN107506039A (en) Mobile terminal, data transmission method and computer-readable storage medium
CN107220554A (en) A kind of file forwarding management method and corresponding system, terminal device
CN107368241A (en) A kind of information processing method, equipment and computer-readable recording medium
CN107133795A (en) A kind of method, equipment and computer-readable recording medium for switching payment environment
CN107835167A (en) A kind of method of data protection, terminal and computer-readable recording medium
CN107194217A (en) User data access control method, equipment and computer-readable recording medium
CN107516051A (en) A kind of data encryption storage method, device and computer-readable recording medium
CN107239690A (en) Unlocking screen method and mobile terminal
CN107395363A (en) Fingerprint sharing method and mobile terminal

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20180109

WW01 Invention patent application withdrawn after publication