A method of bluetooth sharing

CN116782189BActive Publication Date: 2026-09-18SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210228019.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-08
Publication Date
2026-09-18
Estimated Expiration
2042-03-08

AI Technical Summary

Technical Problem

而且蓝牙钥匙是在手机上进行操作,因此不需要额外加装电池,而传统的遥控钥匙需要使用纽扣电池进行供电

Benefits of technology

[0052] By implementing the embodiments of this application, users can share Bluetooth keys to more mobile terminals, making it convenient for users to flexibly control the vehicle terminal using different mobile terminals and improving the user's car-using experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116782189B_ABST
    Figure CN116782189B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method for sharing Bluetooth. The method comprises: obtaining a first instruction of a user for applying for a Bluetooth key; in response to the first instruction, generating a first public key and a first private key of a first terminal; sending the first public key to a server; obtaining a first symmetric key from the server; decrypting the first symmetric key according to the first private key to obtain a third public key corresponding to the first symmetric key; if the third public key is the first public key, encrypting the first symmetric key with the first private key to obtain a second symmetric key; and sending the second symmetric key to the server. The method can share the Bluetooth key to more mobile terminals, and facilitate the user to control the vehicle terminal with different mobile terminals, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the automotive field, and more particularly to a method for Bluetooth sharing. Background Technology

[0002] With many vehicles now connected to mobile apps, the concept and products of "Bluetooth keys" have emerged. Unlike traditional remote keys with limited functionality, car Bluetooth keys allow users to remotely control vehicle functions such as air conditioning and door access via their mobile phones, providing a more intelligent user experience. Furthermore, since Bluetooth keys are operated via mobile phones, they do not require additional batteries, whereas traditional remote keys use button batteries for power.

[0003] However, due to the large size of mobile phones and the rapid development of smart products, users are increasingly reluctant to carry their phones with them. Therefore, how to connect Bluetooth keys with other more convenient smart products is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] This application provides a Bluetooth sharing method that enables the use of Bluetooth keys on smaller, more portable mobile terminals.

[0005] In a first aspect, embodiments of this application provide a Bluetooth sharing method, characterized in that it is applied to a first terminal, and the method may include the following steps:

[0006] Obtain the user's first instruction, which is used to obtain a Bluetooth key from the server;

[0007] In response to the first instruction, a first public key and a first private key of the first terminal are generated, the first public key and the first private key being a key pair;

[0008] Send the first public key to the server;

[0009] Obtain the first symmetric key from the server, which is the symmetric key obtained by the server through encryption based on the first public key;

[0010] The first symmetric key is decrypted using the first private key to obtain the third public key corresponding to the first symmetric key;

[0011] If the third public key is the first public key, then the first symmetric key is encrypted using the first private key to obtain the second symmetric key;

[0012] Send the second symmetric key to the server.

[0013] Secondly, embodiments of this application provide a Bluetooth sharing method, characterized in that it is applied to a server, and the method may include the following steps:

[0014] Obtain the first public key from the user's corresponding first terminal;

[0015] The first symmetric key is generated by encrypting the first public key;

[0016] Send the first symmetric key to the first terminal;

[0017] Obtain the second symmetric key from the first terminal;

[0018] The first symmetric key is decrypted using the first symmetric key to obtain the first private key of the first terminal. The first private key and the first public key are a key pair.

[0019] Obtain the second public key of the second terminal;

[0020] The third symmetric key is obtained by encrypting the first private key using the second public key;

[0021] Send the third symmetric key and the first public key to the second terminal.

[0022] Thirdly, embodiments of this application provide a Bluetooth sharing method, characterized in that it is applied to a second terminal, and the method includes:

[0023] Generate a second public key and a second private key, which together form a key pair.

[0024] Send the second public key to the server;

[0025] Obtain the third symmetric key and the first public key from the server. The third symmetric key is the symmetric key obtained by the server encrypting the first private key based on the second public key. The first public key and the first private key are a key pair.

[0026] The third symmetric key is decrypted to obtain the first private key.

[0027] Fourthly, embodiments of this application provide a Bluetooth sharing device, characterized in that it is applied to a first terminal, and the device may include:

[0028] The first acquisition unit is used to acquire the user's first instruction for requesting Bluetooth;

[0029] The generation unit is configured to generate a first public key and a first private key for the first terminal in response to a first instruction, wherein the first public key and the first private key are a pair of keys;

[0030] The first sending unit is used to send the first public key to the server;

[0031] The second acquisition unit is used to acquire a first symmetric key from the server, which is a symmetric key obtained by the server through encryption based on the first public key;

[0032] The decryption unit is used to decrypt the first symmetric key based on the first private key to obtain the third public key corresponding to the first symmetric key;

[0033] An encryption unit is used to encrypt the first key with the first private key to obtain the second symmetric key if the third public key is the first key;

[0034] The second sending unit is used to send the second symmetric key to the server.

[0035] Fifthly, embodiments of this application provide a Bluetooth sharing device, characterized in that it is applied to a server, and the device may include:

[0036] The first acquisition unit is used to acquire the first public key from the first terminal corresponding to the user;

[0037] The first encryption unit is used to encrypt and generate a first symmetric key based on the first public key;

[0038] The first sending unit is used to send the first symmetric key to the first terminal;

[0039] The second acquisition unit is used to acquire the second symmetric key from the first terminal;

[0040] The decryption unit is used to decrypt the second symmetric key based on the first symmetric key to obtain the first private key of the first terminal, which is a key pair with the first public key;

[0041] The third acquisition unit is used to acquire the second public key of the second terminal;

[0042] The second encryption unit is used to encrypt the first private key according to the second public key to obtain the third symmetric key;

[0043] The second sending unit is used to send the third symmetric key and the first public key to the second terminal.

[0044] Sixthly, embodiments of this application provide a Bluetooth sharing device, characterized in that it is applied to a second terminal, and the device may include:

[0045] A generation unit is used to generate a second public key and a second private key, wherein the second public key and the second private key are a key pair;

[0046] The sending unit is used to send the second public key to the server;

[0047] The acquisition unit is used to acquire a third symmetric key and a first public key from the server. The third symmetric key is a symmetric key obtained by the server encrypting the first private key based on the second public key. The first public key and the first private key are a pair of keys.

[0048] The decryption unit is used to decrypt the third symmetric key to obtain the first private key.

[0049] Seventhly, embodiments of this application provide an electronic device, characterized in that the electronic device may include:

[0050] A processor, a memory, a communication interface, and one or more programs, said one or more programs being stored in the memory and configured to be executed by the processor, said programs including instructions for performing steps in the methods described in any one of the first, second, or third aspects.

[0051] Eighthly, embodiments of this application provide a computer-readable storage medium, characterized in that it stores a computer program for electronic data interchange, wherein the computer program causes a computer to perform the method as described in any one of the first, second, or third aspects.

[0052] By implementing the embodiments of this application, users can share Bluetooth keys to more mobile terminals, making it convenient for users to flexibly control the vehicle terminal using different mobile terminals and improving the user's car-using experience. Attached Figure Description

[0053] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0054] Figure 1 This is a flowchart illustrating a Bluetooth sharing method provided in an embodiment of this application;

[0055] Figure 2 This is a flowchart illustrating another Bluetooth sharing method provided in an embodiment of this application;

[0056] Figure 3 This is a flowchart illustrating another Bluetooth sharing method provided in an embodiment of this application;

[0057] Figure 4 This is a schematic diagram illustrating the composition of a Bluetooth sharing device provided in an embodiment of this application;

[0058] Figure 5 This is a schematic diagram illustrating the composition of another Bluetooth sharing device provided in an embodiment of this application;

[0059] Figure 6 This is a schematic diagram illustrating the composition of another Bluetooth sharing device provided in an embodiment of this application;

[0060] Figure 7 This is a schematic diagram of the composition of an electronic device provided in an embodiment of this application. Detailed Implementation

[0061] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0062] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0063] In this document, the term "embodiment" means that a particular feature, result, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0064] Below, in conjunction with Figure 1 and Figure 3 The steps described below provide a detailed explanation of a Bluetooth sharing method provided in the embodiments of this application.

[0065] Please see Figure 1 This is a flowchart illustrating a Bluetooth sharing method provided in an embodiment of this application, applied to a first terminal, and may include the following steps:

[0066] S101, obtain the user's first instruction.

[0067] It should be noted that this first instruction is used to obtain the Bluetooth key from the server.

[0068] S102, in response to the first instruction, generate the first public key and the first private key of the first terminal.

[0069] It should be noted that the first public key and the first private key are a key pair. The first public key and the first private key constitute the Bluetooth key information of the first terminal.

[0070] S103, send the first public key to the server.

[0071] It should be noted that after the first terminal sends the first public key to the server, the server will send the first public key to the vehicle terminal for storage, thus achieving the purpose of "applying for a Bluetooth key". Through communication verification between the first public key and the vehicle terminal using the first private key, the first terminal can remotely control the vehicle terminal.

[0072] S104, Obtain the first symmetric key from the server.

[0073] The first symmetric key is the symmetric key obtained by the server through encryption based on the first public key.

[0074] S105, decrypt the first symmetric key using the first private key to obtain the third public key corresponding to the first symmetric key.

[0075] S106, if the third public key is the first public key, then the first symmetric key is encrypted using the first private key to obtain the second symmetric key.

[0076] It should be noted that this step serves as a "certificate verification," ensuring that the encrypted communication between the first terminal and the server is correct and secure before allowing further information exchange. If the encrypted channel between the first terminal and the server is determined to be incorrect or insecure, a warning page (or error page) will pop up, interrupting communication between the two.

[0077] S107, send the second symmetric key to the server.

[0078] The second symmetric key includes information about the first private key of the first terminal. The first terminal sends the second symmetric key to the server, which facilitates the transfer of the first private key to the user's second terminal via the server as an intermediary, thus achieving the purpose of "exchanging / sharing Bluetooth keys".

[0079] Specifically, up to step S107, the method of this application embodiment achieves the purpose of transmitting the first private key of the first terminal.

[0080] In one possible implementation, the first terminal may also:

[0081] Obtain QR code information from the second terminal;

[0082] The QR code information is analyzed to determine the identity information of the second terminal;

[0083] Obtain second terminal information from the server;

[0084] Initiate the key exchange process by sending an authorization command for key exchange to the server.

[0085] Specifically, the method steps in the above embodiment are the steps of "triggering Bluetooth key sharing with the second terminal". The user can trigger Bluetooth key sharing by scanning the QR code on the second terminal with the first terminal. After triggering the Bluetooth key sharing function, the first terminal will begin transmitting the Bluetooth key (i.e., the first private key) to the second terminal through the server. The specific transmission process can be found in [reference needed]. Figure 2 and Figure 3 Implementation method steps.

[0086] It should be noted that the encryption method mentioned in the embodiments of this application is "symmetric encryption", but the key can also be obtained by "asymmetric encryption" method.

[0087] Furthermore, the "second terminal identity information" mentioned above can refer to information used to confirm the identity of the second terminal, such as the product serial number of the second terminal. The "second terminal information" mentioned above can include the name of the second terminal, the attribute information of the second terminal, etc.

[0088] For example, the first terminal can be a user's mobile phone terminal, and the second terminal can be a user's smartwatch terminal or similar convenient mobile terminal. If the user wants to authorize the Bluetooth key of the first terminal to the smartwatch, the method of the embodiments of this application can be used. More specifically, the method of the embodiments of this application focuses on a sharing method, whether it is the mobile phone terminal sharing the Bluetooth key to the smartwatch terminal or the smartwatch terminal sharing information to the mobile phone terminal, this application embodiment does not limit this.

[0089] As can be seen, by implementing the method of the embodiments of this application, the first terminal can share the Bluetooth key to the second terminal through the server, so that the second terminal can use the Bluetooth key to control the vehicle terminal, improve the user's car use experience, and provide more possibilities for the user to remotely control the vehicle.

[0090] Please see Figure 2 This is a flowchart illustrating another Bluetooth sharing method provided in an embodiment of this application, applied to a server, and may include the following steps:

[0091] S201, Obtain the first public key from the first terminal corresponding to the user.

[0092] S202, encrypt and generate a first symmetric key based on the first public key.

[0093] S203, send the first symmetric key to the first terminal.

[0094] It should be noted that the first symmetric key is used to verify whether the communication between the server and the first terminal is correct and secure.

[0095] S204, Obtain the second symmetric key from the first terminal.

[0096] S205, decrypt the second symmetric key according to the first symmetric key to obtain the first private key of the first terminal.

[0097] It should be noted that the first private key and the first public key are a key pair.

[0098] S206, Obtain the second public key of the second terminal.

[0099] The second public key represents the encryption method for information on the second terminal.

[0100] S207, encrypt the first private key using the second public key to obtain the third symmetric key.

[0101] S208, send the third symmetric key and the first public key to the second terminal.

[0102] In one possible implementation, the server may also:

[0103] The second instruction is to obtain the login QR code from the second terminal;

[0104] In response to the second instruction, the keyword of the QR code is determined and sent to the second terminal.

[0105] Furthermore, in addition to exchanging QR code information with the second terminal, the server will also exchange QR code information with the first terminal. For details on the interaction process and content, please refer to [link / reference needed]. Figure 1 The methods and steps mentioned above will not be repeated here.

[0106] As can be seen, by implementing the method of the embodiments of this application, the server can transmit the Bluetooth key shared by the first terminal to the second terminal, so that the user can control the vehicle terminal through the second terminal.

[0107] Please see Figure 3 This is a flowchart illustrating another Bluetooth sharing method provided in an embodiment of this application, applied to a second terminal, and may include the following steps:

[0108] S301, generate the second public key and the second private key.

[0109] It should be noted that the second public key and the second private key are a pair of keys.

[0110] It should be noted that after the "QR code information interaction process" between the second terminal and the first terminal is completed, the second terminal generates a second public key and a second private key, which represent the information encryption method of the second terminal.

[0111] S302, send the second public key to the server.

[0112] S303, obtain the third symmetric key and the first public key from the server.

[0113] It should be noted that the third symmetric key is the symmetric key obtained by the server encrypting the first private key using the second public key. Furthermore, the first public key and the first private key are a key pair.

[0114] S304, decrypt the third symmetric key to obtain the first private key.

[0115] It should be noted that once the second terminal obtains the first private key through encryption, it means that the second terminal possesses the Bluetooth key information of the first terminal, thus enabling the first terminal to share the Bluetooth key with the second terminal.

[0116] In one possible implementation, the second terminal may also:

[0117] Send a second instruction to the server to obtain the login QR code;

[0118] Obtain the QR code keywords from the server;

[0119] Determine the QR code information based on the QR code keywords;

[0120] Obtain a third instruction from the first terminal to scan the QR code;

[0121] In response to the third instruction, QR code information is sent to the first terminal.

[0122] The QR code keywords are determined according to the second instruction.

[0123] As can be seen, by implementing the method of the embodiments of this application, information exchange between the second terminal and the server can be realized to obtain the Bluetooth key, which helps the user to control the vehicle terminal using the Bluetooth key on the second terminal.

[0124] The apparatus involved in the embodiments of this application will now be described in conjunction with the accompanying drawings.

[0125] Please see Figure 4 This is a schematic diagram of the composition of a Bluetooth sharing device provided in an embodiment of this application. The first terminal 400 may include:

[0126] The first acquisition unit 410 can be used to acquire a first instruction from the user, which is used to obtain a Bluetooth key from the server.

[0127] The generation unit 420 can be used to generate a first public key and a first private key of the first terminal 400 in response to the first instruction mentioned above. The first public key and the first private key are a pair of keys.

[0128] The first sending unit 430 can be used to send the aforementioned first public key to the server 500.

[0129] The second acquisition unit 440 can be used to acquire a first symmetric key from the server 500, which is a symmetric key obtained by the server 500 through encryption based on the first public key.

[0130] The decryption unit 450 can be used to decrypt the first symmetric key based on the first private key to obtain the third public key of the first symmetric key.

[0131] The encryption unit 460 can be used to encrypt the first key with the first private key if the third public key is the first key, so as to obtain the second symmetric key.

[0132] The second sending unit 470 can be used to send the second symmetric key to the server 500.

[0133] Please see Figure 5 This is a schematic diagram illustrating the composition of another Bluetooth sharing device provided in this application embodiment. The server 500 may include:

[0134] The first acquisition unit 510 can be used to acquire the first public key from the first terminal 400 corresponding to the user.

[0135] The first encryption unit 520 can be used to encrypt and generate a first symmetric key based on the first public key.

[0136] The first sending unit 530 can be used to send the first symmetric key to the first terminal 400.

[0137] The second acquisition unit 540 is used to acquire the second symmetric key from the first terminal 400.

[0138] The decryption unit 550 can be used to decrypt the second symmetric key based on the first symmetric key to obtain the first private key of the first terminal 400. The first private key and the first public key are a pair of keys.

[0139] The third acquisition unit 560 can be used to acquire the second public key of the second terminal 600.

[0140] The second encryption unit 570 can encrypt the first private key based on the second public key to obtain the third symmetric key.

[0141] The second sending unit 580 can be used to send the third symmetric key and the first public key to the second terminal 600.

[0142] Please see Figure 6 Another Bluetooth sharing device provided in this application embodiment, a second terminal 600, may include:

[0143] The generation unit 610 can be used to generate a second public key and a second private key, which are a pair of keys.

[0144] The sending unit 620 can be used to send a second public key to the server 500.

[0145] The acquisition unit 630 can be used to acquire a third symmetric key and a first public key from the server. The third symmetric key is a symmetric key obtained by the server 500 by encrypting the first private key with the second public key. The first public key and the first private key are a pair of keys.

[0146] The decryption unit 640 can be used to decrypt the third symmetric key to obtain the first private key.

[0147] Please see Figure 7 This is a schematic diagram illustrating the composition of a vehicle-mounted terminal provided in an embodiment of this application, which may include:

[0148] The processor 710, memory 720, and I / O interface 730 are communicatively connected. The memory 720 is used to store instructions, and the processor 710 is used to execute the instructions stored in the memory 720 to achieve the above. Figures 1 to 3 The corresponding methods and steps.

[0149] The processor 710 executes the instructions stored in the memory 720 to control the I / O interface 730 to receive and send signals, thus completing the steps in the above method. The memory 720 may be integrated into the processor 710 or may be disposed separately from the processor 710.

[0150] The memory 720 may also include a storage system 721, a cache 722, and RAM 723. The cache 722 is a primary memory located between the RAM 723 and the CPU, composed of static RAM chips (SRAM). It has a relatively small capacity but a much higher speed than main memory, approaching the speed of the CPU. The RAM 723 is an internal memory that directly exchanges data with the CPU. It can be read and written at any time (except during refresh) and is very fast, typically serving as temporary data storage for the operating system or other running programs. The three components combine to realize the function of the memory 720.

[0151] As one implementation approach, the functionality of the I / O interface 730 can be implemented using transceiver circuitry or dedicated transceiver chips. The processor 710 can be implemented using dedicated processing chips, processing circuitry, processors, or general-purpose chips.

[0152] As another implementation, the apparatus provided in this application embodiment can be implemented using a general-purpose computer. The program code that implements the functions of processor 710 and I / O interface 730 is stored in memory 720, and the general-purpose processor implements the functions of processor 710 and I / O interface 730 by executing the code in memory 720.

[0153] For the concepts, explanations, detailed descriptions, and other steps related to the technical solutions provided in the embodiments of this application, please refer to the descriptions of the method steps performed by the device in the foregoing method or other embodiments, which will not be repeated here.

[0154] As another implementation of this embodiment, a computer-readable storage medium is provided, on which instructions are stored, which, when executed, perform the methods in the above-described method embodiments.

[0155] As another implementation of this embodiment, a computer program product containing instructions is provided, which, when executed, perform the method in the above method embodiment.

[0156] Those skilled in the art will understand that, for ease of explanation, Figure 7 Only one memory and processor are shown in the illustration. In a real terminal or server, multiple processors and memories may exist. Memory can also be called storage medium or storage device, etc., and this application does not limit this.

[0157] It should be understood that in the embodiments of this application, the processor may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0158] It should also be understood that the memory mentioned in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).

[0159] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, the memory (storage module) is integrated into the processor.

[0160] It should be noted that the memories described herein are intended to include, but are not limited to, these and any other suitable types of memories.

[0161] In addition to the data bus, this bus may also include a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled "bus" in the diagram.

[0162] It should also be understood that the first, second, third, fourth and various numerical designations used herein are merely for descriptive convenience and are not intended to limit the scope of this application.

[0163] It should be understood that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0164] In implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software. The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware processor, or by a combination of hardware and software modules in the processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method. To avoid repetition, detailed descriptions are omitted here.

[0165] In the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0166] Those skilled in the art will recognize that the various illustrative logical blocks (ILBs) and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0167] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0168] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0169] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0170] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.

[0171] This application also provides a computer storage medium storing a computer program that is executed by a processor to implement some or all of the steps of any of the account management methods described in the above method embodiments.

[0172] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the account management methods described in the above method embodiments.

[0173] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for Bluetooth sharing, characterized in that, Applied to a first terminal, the method includes: Obtain the user's first instruction, which is used to send a Bluetooth key to the server; In response to the first instruction, a first public key and a first private key of the first terminal are generated. The first public key and the first private key are a pair of keys, and the first public key and the first private key constitute the Bluetooth key information of the first terminal. Send the first public key to the server; Obtain a first symmetric key from the server, wherein the first symmetric key is a symmetric key obtained by the server through encryption based on the first public key; The first symmetric key is decrypted using the first private key to obtain the third public key corresponding to the first symmetric key; If the third public key is the first public key, then the first private key is encrypted using the first symmetric key to obtain the second symmetric key; Send the second symmetric key to the server; Obtain QR code information from the second terminal; The QR code information is parsed to determine the identity information of the second terminal; Obtain second terminal information from the server; Initiate the key exchange process by sending an authorization instruction for the key exchange process to the server.

2. A method for Bluetooth sharing, characterized in that, Applied to a server, the method includes: Obtain the first public key from the user's corresponding first terminal; A first symmetric key is generated by encrypting the first public key; Send the first symmetric key to the first terminal; Obtain the second symmetric key from the first terminal; The first symmetric key is decrypted using the first symmetric key to obtain the first private key of the first terminal. The first private key and the first public key are a pair of keys. The first public key and the first private key constitute the Bluetooth key information of the first terminal. Obtain the second public key of the second terminal; The first private key is encrypted using the second public key to obtain the third symmetric key; The third symmetric key and the first public key are sent to the second terminal.

3. The method according to claim 2, further comprising: A second instruction to obtain the login QR code from the second terminal; In response to the second instruction, the keyword of the QR code is determined and sent to the second terminal.

4. A method for Bluetooth sharing, characterized in that, Applied to a second terminal, the method includes: Generate a second public key and a second private key, wherein the second public key and the second private key are a key pair; Send the second public key to the server; Obtain a third symmetric key and a first public key from the server. The third symmetric key is a symmetric key obtained by the server encrypting the first private key based on the second public key. The first public key and the first private key are a pair of keys. The first public key and the first private key constitute the Bluetooth key information of the first terminal. The third symmetric key is decrypted to obtain the first private key; The method further includes: Send a second instruction to the server to obtain the login QR code; Obtain QR code keywords from the server, the QR code keywords being determined according to the second instruction; The QR code information is determined based on the QR code keywords; Obtain a third instruction from the first terminal to scan the QR code; In response to the third instruction, the QR code information is sent to the first terminal.

5. A Bluetooth sharing device, characterized in that, Applied to a first terminal, the device includes: The first acquisition unit is used to acquire the user's first instruction, which is used to send a Bluetooth key to the server. The generation unit is configured to generate a first public key and a first private key for the first terminal in response to the first instruction. The first public key and the first private key are a pair of keys, and the first public key and the first private key constitute the Bluetooth key information of the first terminal. The first sending unit is used to send the first public key to the server; The second acquisition unit is used to acquire a first symmetric key from the server, wherein the first symmetric key is a symmetric key obtained by the server through encryption based on the first public key; The decryption unit is used to decrypt the first symmetric key based on the first private key to obtain the third public key corresponding to the first symmetric key; An encryption unit is configured to encrypt the first private key pair with the first symmetric key if the third public key is the first public key, thereby obtaining a second symmetric key; The second sending unit is used to send the second symmetric key to the server; The device is also used to: acquire QR code information from a second terminal; parse the QR code information to determine the identity information of the second terminal; acquire second terminal information from the server; initiate a key exchange process and send an authorization instruction for the key exchange process to the server.

6. A Bluetooth sharing device, characterized in that, Applied to a server, the device includes: The first acquisition unit is used to acquire the first public key from the first terminal corresponding to the user; The first encryption unit is used to encrypt and generate a first symmetric key based on the first public key; The first sending unit is used to send the first symmetric key to the first terminal; The second acquisition unit is used to acquire the second symmetric key from the first terminal; The decryption unit is used to decrypt the second symmetric key according to the first symmetric key to obtain the first private key of the first terminal. The first private key and the first public key are a pair of keys. The first public key and the first private key constitute the Bluetooth key information of the first terminal. The third acquisition unit is used to acquire the second public key of the second terminal; The second encryption unit is used to encrypt the first private key according to the second public key to obtain the third symmetric key; The second sending unit is used to send the third symmetric key and the first public key to the second terminal.

7. A Bluetooth sharing device, characterized in that, The device, applied to a second terminal, includes: A generation unit is used to generate a second public key and a second private key, wherein the second public key and the second private key are a key pair; A sending unit, used to send the second public key to the server; The acquisition unit is used to acquire a third symmetric key and a first public key from the server. The third symmetric key is a symmetric key obtained by the server encrypting the first private key based on the second public key. The first public key and the first private key are a pair of keys. The first public key and the first private key constitute the Bluetooth key information of the first terminal. The decryption unit is used to decrypt the third symmetric key to obtain the first private key; The device is further configured to: send a second instruction to the server to obtain a login QR code; obtain QR code keywords from the server, the QR code keywords being determined according to the second instruction; determine QR code information according to the QR code keywords; obtain a third instruction from the first terminal to scan the QR code; and, in response to the third instruction, send the QR code information to the first terminal.

8. An electronic device, characterized in that, The electronic device includes: A processor, memory, I / O interface, and one or more programs, said one or more programs being stored in said memory and configured to be executed by said processor, said programs including instructions for performing the steps of the method as claimed in any one of claims 1 to 2 to 3 or 4.

9. A computer-readable storage medium, characterized in that, It stores a computer program for electronic data interchange, wherein the computer program causes the computer to perform the method as described in any one of claims 1, 2-3, or 4.

Citation Information

Patent Citations

  • Client login method, device and system, storage medium and electronic device

    CN109862078A

  • Digital key implementation method based on vehicle

    CN111200496A

  • Vehicle digital key distribution management method and device

    CN112669491A