Information transmission method, electronic equipment and computer readable storage medium
Transmitting plain text information through QR codes solves the problem of opaque information transmission between user equipment and security equipment in blockchain business, realizes the transparency and accuracy of information transmission, meets the trust needs of users, and supports large data volume transmission.
Patent Information
- Application Number
- CN202411120182.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-26
AI Technical Summary
In blockchain business, the information transmission between user equipment and security equipment is opaque, making it difficult for users to judge whether there is a risk of phishing or password leakage in information.
Use QR code to transmit plain text information, separate preset format information segments and custom symbols to generate multi-page QR codes. Users can directly read and judge the information content by scanning the code to ensure the transparency and accuracy of information transmission. .
The transparency of information transmission between user equipment and security equipment is achieved. Users can easily judge whether there are abnormalities in the information, meet trust needs, and support accurate transmission of information with large amounts of data.
Smart Images

Figure CN119030763A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of information transmission, and in particular, relates to an information transmission method, an electronic device, and a computer-readable storage medium. Background Art
[0002] In blockchain business, since there is no central organization, each user's password is only protected by the user himself. Therefore, the business platform will provide a security device held by the user. The security device cannot be connected to the Internet and has a security chip inside to protect the user's password. Therefore, when the user conducts transactions through the user device (such as a mobile phone), the user device and the security device need to interact. For example, before the user device sends information to the outside, the information needs to be signed by the security device using a password.
[0003] Currently, the way to transmit information between user devices and security devices is usually Bluetooth transmission or bytecode transmission such as protobuf. The transmitted information is invisible to the user, which creates trust issues for the user. The user is not sure whether the information sent to the security device by the transaction app of the user device contains phishing information, nor is it clear whether the information sent to the user device by the security device will leak the password. Summary of the invention
[0004] Based on this, in order to solve the above technical problems, an information transmission method, an electronic device and a computer-readable storage medium are provided.
[0005] The technical solution adopted by the present invention is as follows:
[0006] As a first aspect of the present invention, there is provided an information transmission method, which is applied to an information sending device in an interaction process between a user device and a security device, and is characterized by comprising:
[0007] According to the preset character capacity of the QR code, the original plaintext information to be sent is divided into n plaintext information segments in sequence, where n is greater than or equal to 1;
[0008] Convert each plaintext information segment into an information segment of a preset format, wherein the information segment of the preset format includes an information header and an information body, wherein the information header includes a current page number, a total page number, and an information type identification code, and the information body includes a plaintext information segment, wherein the total page number is n, and the current page number is taken from 1 to n according to the order of the plaintext information segments;
[0009] N QR codes are generated by n information segments in preset formats and displayed.
[0010] As a second aspect of the present invention, there is provided an information transmission method, which is applied to an information receiving device in an interaction process between a user device and a security device, and is characterized by comprising:
[0011] In response to the user's scanning operation, the scanning program reads the n information segments of the preset format corresponding to the n QR codes displayed by the information sender's device respectively, and displays them;
[0012] The information segment of the preset format includes an information header and an information body, the information header includes the current page number, the total page number and the information type identification code, the information body includes a plaintext information segment, the plaintext information segment is formed by the information sender device dividing the original plaintext information to be sent in sequence according to the preset two-dimensional code character capacity, and there are n plaintext information segments in total, the total page number is n, and the current page number is taken from 1 to n according to the order of the plaintext information segments, and n is greater than or equal to 1;
[0013] According to the current page number in the n information segments of the preset format read, the n plaintext information segments are restored to the original plaintext information.
[0014] As a third aspect of the present invention, there is provided an electronic device, characterized in that it comprises a storage module, wherein the storage module comprises instructions loaded and executed by a processor, wherein when the instructions are executed, the processor executes an information transmission method of the first aspect or the second aspect.
[0015] As a fourth aspect of the present invention, a computer-readable storage medium is provided, which stores one or more programs, and is characterized in that when the one or more programs are executed by a processor, an information transmission method of the first aspect or the second aspect is implemented.
[0016] The information sender of the present invention transmits plain text information to the information receiver in the form of a QR code. This information transmission method is transparent to the user. The user can easily and directly see the plain text information, thereby judging whether there is any abnormal information other than the user's known information in the information, thereby meeting the user's trust requirements.
[0017] In addition, based on the customized format, information with large amounts of data can be accurately transmitted through multi-page QR codes. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments:
[0019] Figure 1 A flowchart of an information transmission method provided by an embodiment of the present invention;
[0020] Figure 2 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The following will illustrate the implementation methods of the present invention in conjunction with the drawings in the specification. It should be noted that the implementation methods involved in this specification are not exhaustive and do not represent the only implementation methods of the present invention. The following corresponding embodiments are only for the purpose of clearly illustrating the invention content of the patent of the present invention, and are not intended to limit its implementation methods. For ordinary technicians in this field, different forms of changes and modifications can be made on the basis of the description of this embodiment. All obvious changes or modifications that belong to the technical concept and invention content of the present invention are also within the scope of protection of the present invention.
[0022] The embodiment of the present application provides an information transmission method, which is applied to the information transmission in the process of interaction between user equipment and security equipment in blockchain business. The user equipment can be a mobile phone, or other equipment with display, code scanning and networking functions, and the security equipment is a device with display and code scanning functions, but does not have networking functions, and has a security chip for protecting the user's password.
[0023] During the interaction between the user device and the security device, either party can be the information sender or the information receiver.
[0024] like Figure 1 As shown, the specific process of the method of the embodiment of the present application is as follows:
[0025] S101. The information sending device divides the original plaintext information to be sent into n plaintext information segments in sequence according to the preset QR code character capacity, where n is greater than or equal to 1.
[0026] In this embodiment, since the QR code screen will not be damaged or blocked in actual application scenarios, the fault tolerance of the QR code is set to L. The QR code version is selected as 10-15, and the amount of information that can be transmitted (QR code character capacity) is 271-520 characters.
[0027] S102: The information sending device converts each plaintext information segment into an information segment in a preset format.
[0028] The information segment of the preset format includes an information header and an information body. The information header includes the current page number, the total page number and the information type identification code. The information body includes a plaintext information segment and a CRC (Cycl icRedundancy Check) check code used to verify the plaintext information segment. The total page number is n, and the current page number is taken from 1 to n according to the order of the plaintext information segments.
[0029] The information type identification code is used to identify the type of plain text information in the information body. For example, sync represents that the transmitted plain text information is synchronization information, and sign represents that the transmitted plain text information is signature information.
[0030] Different custom symbols are used to separate the information header and the information body, different types of information in the information header, and different types of information in the information body, so as to facilitate efficient transmission, identification, and differentiation of different information, and then restore multiple information segments to original plaintext information, as follows:
[0031] Each information segment of the preset format starts with the current page number, which is separated from the total page number by " / ", and the total page number and the information type identification code are separated by "&".
[0032] The message header and message body are separated by ";".
[0033] The following symbols are used to separate the corresponding types of information in the information body:
[0034] “?” is used to separate product information, that is, the product information is after “?”;
[0035] “#” is used to separate version numbers, that is, the version number is after “#”;
[0036] “:” is used to separate device information, that is, the device information is after “:”;
[0037] “*” is used to separate the extended public key information of the synchronized wallet, that is, the extended public key information of the synchronized wallet follows “*”;
[0038] “%” is used to separate special transaction information, that is, the special transaction information is after “%”;
[0039] “$” is used to separate transaction information, that is, the transaction information is after “$”;
[0040] “@” is used to separate signature information, that is, the signature information is after “@”;
[0041] "!" is used to separate the device verification information, that is, the device verification information is after "!";
[0042] “<” is used to separate the CRC check code, that is, the CRC check code is after “<”;
[0043] "{" is used to separate the root public key, that is, the root public key is after "{".
[0044] In addition, the nested information in the information body is combined through custom nested symbols. When there is only one layer of nested logic, the "&" symbol is used to connect the information. When there are multiple layers of nested logic, the "[" and "]" symbols are used to connect the information. For example, a&b&c, abc are the same layer of information, [1a&2a&3a][1b&2b&3b], 1a&2a&3a and 1b&2b&3b are the same layer of information; [[1a&2a][1b&2b]][[4c&6d]]
[0045] [1a&2a][1b&2b] and [4c&6d] are the same layer information.
[0046] Take product information as an example, it includes product model and sn, which means
[0047] GSHQ01&HSB2BS247C1AEDA7, where the product model is GSHQ01 and the sn is HSB2BS247C1AEDA7.
[0048] S103: The information sending device generates n QR codes using n information segments in preset formats, and displays them.
[0049] It should be pointed out that since the information that can be stored in a QR code is limited, if the information segment in JSON format is used, it will result in a large number of ", { symbols, and key fields, resulting in redundant information and increasing the amount of information that needs to be transmitted.
[0050] S104. In response to the user's scanning operation, the information receiving device reads the n information segments of the preset format corresponding to the n QR codes displayed by the information sending device through the scanning program and displays them.
[0051] Since the displayed information segments are all plain text information, users can judge whether there is any abnormal information other than the user's known information based on the plain text information, thereby judging whether there is phishing information in the information sent to the security device by the transaction app of the user's device, and whether the information sent to the user's device by the security device will leak the password.
[0052] Among them, during the reading process, the content of the information header can be quickly used to determine how many pages have not been scanned, and whether the identification codes of each page are consistent. If they are inconsistent, an error prompt will be given. The page numbers that have not been scanned can also be quickly distinguished and prompts will be given on the page. At the same time, the information segment is verified through the CRC check code to ensure that there are no errors in the transmission of multiple pages of information, thereby ensuring that n information segments are read accurately and efficiently.
[0053] Five pre-set formats of information segments are shown below:
[0054] 1 / 5&sync;?GSHQ01&HSB2BS247C1AEDA7#1.1.0&1.1.0:tHXVGAeu&baby&*[m-44'-0'-0'&xpub6CvMKkKRKMEMHpVbYH7Y4Q4tCAsoZ1z9v2AnQrX1v77CNFFD3xU5cpfC4VfkF3wCCg16EjofL9t j 3J1 jGM6cav6bCra2ko8CtwGk54CmztH&[BTC&0]][m-44'-2'-0'&Ltub2Yr1kLk5Uo51mtfDZh7WyzBkmN7WiL2h3gmiXw8nJhgvn ywUJrYfLz2jtzpfHCDF3tztpe1RLBTXUj iB9Z5a3BBhrTM1SNFAVepE5gt2ngw&[LTC&0]][m-44'-3'-0'&dgub8sRke9FP6Gtu7cCrQf2aYbGMavFK92T5uWzLQH6UNP ifFa2nLDMrb
[0055] 2 / 5&sync;dm9GZRwmQFPNwErYXXS5WJcwmyQYWq5LxSgHHENRafZMasyfSoPF jJ&[DOGE&0]][m-44'-145'-0'&xpub6C2jVeJU2oZTjzsWUN1LWXdogRv9V4H3S3bawZ2ZnDRQt jfS5tb4W4biDV7FgznUSRhvjWA3Yd7Fi 8Sdkos tCVGgnYY91YyMuJf vPmH8Bpc&[BCH&0]][m-44'-5353'-0'&xpub6Bmimnwu58UsXbnvqK1hLT9ciXR4e5yBHH5JycbQecxWU1s tss6Lk4ZzmA9H3RuYwXZZ6hEMGYvnCpp5dz5ApEMpeQAqv Kx8qgBHHPDGPsC&[HNS&0]][m-44'-60'-0'&xpub6DWeHpnZvqWtLZcWBcC9hAAJ 36vemWL8NM1hD1 i 1TQzPWgB7oEqRfU4AGonpnjuNgZaN95WXnbh8WQVDLBHecKpm5vr4MhQM77HvxtNt1
[0056] 3 / 5&sync;BY&[eth&0&[PEPE&0][0xBTC&0][0xMR&0][1INCH&0][1MIL&0][2KEY&0][8PAY&0][aAAVE&0][aAAVEv1&0][AAVE&0]][bnb&0[aBY&0] c&0][ACH&0][ADA&0][ADX&0][ALICE&0][ALPA&0][ALPACA&0][ALPHA&0][AMP L&0]][polygon&0&[USDT&0]][arbi trum&0&[AIDOGE&0][ARB&0][0xBTC&0][ALCH&0][ALN&0][AUC&0][BAC&0][BADGER&0][BAL&0][BLANK&0]][opt imi sm&0&[0xBTC&0][AAVE&0][aCRV&0][ACX&0][AELIN&0][BAL&0][BANK&0][BAXA&0][Bi tANT&0][Bi tBTC&0]][ava lanche&0&[1INCH.e&0][AAVE&0&0&[ALPHA&0].
[0057] 4 / 5&sync;0][ANY&0][APE-X&0][BAT.e&0][BIFI&0][BNB&0][BUSD.e&0][BUSDbs&0]][phantom& 0&[BTC&0][CRV&0][DAI&0][FRAX&0][HEC&0][LINK&0][MIN&0][SNX&0]][zksync&0&[HUSH&0][L USD&0][MUTE&0][MVX&0][PERP&0][SIS&0][USD+&0][USDC&0]][base&0&[USDbC&0]][ton&0&[o USDC&0][oUSDT&0]]][m-44'-195'-0'&0&xpub6CCz8r6y9ELVk3tgm9aSr1FKpphWr5DsnEZaHRqvSW YL2AKw31XNmBDRVDatGKNPXoMCFntNFJtxbYHS56e4GvE1P3ZJew3eMGBMProBeVB&[888&0][BTE&0][BTT&0][BYT&0][DFG&0][DICE&0][DIVS&0][HT&0][J&ST&0]
[0058] 5 / 5&sync;0][LIVE&0]][m-44'-118'-0'&xpub6CMDVQ22 tNZpF67uMXJB93QaEkzr2cuuHBfoQ1RiaC1KNXYuvqyoHT7RWSzp5KQRHfmH92XpHAB92UVPhjoRvF EqcYR8iwNH8PH5NSx5o7u&[ATOM&0][SEI&0]][m-44'-459'-0'&xpub6CLK9z7eqFPRUn5tEm1qKpiWYahpbJ9FyuTkYusbMrKnPQGyubMSEuZJE1vKMVz3yeADGfDFL p82fUpmHHfvUYCC3zkpgY5P1pLJPKTBRPJ&[KAVA&0]][m-44'-501'-0'&xpub6DFYZRfyCLxQmcjziwzCB21s9ak2q8Q5UYDsFncnw9NaTKNiKvCG6gfQMR7rmDnMWUp X6BbchEQVKvDLeqyyNPCPsvQCDGW66fj1BJ3Xw14&[SOL&0&[USDC&0][USDT&0]]]<88d7
[0059] S105 . According to the current page number in the n information segments of the preset format read, the n plaintext information segments are restored to the original plaintext information.
[0060] Taking the five information segments in preset formats shown above as an example, the information segments of pages 1-5 are restored to corresponding plaintext information segments according to the current page number, and then the plaintext information segments are spliced into original plaintext information in sequence, and the original plaintext information can be further processed, such as signing.
[0061] From the above, it can be seen that in the information transmission method provided in the embodiment of the present application, the information sender transmits plain text information to the information receiver in the form of a QR code. This information transmission method is transparent to the user. The user can conveniently and directly see the plain text information, thereby judging whether there is any abnormal information in the information other than the user's known information, thereby meeting the user's trust requirements.
[0062] Taking into account the capacity limitation of the QR code, the embodiment of the present application separates different information by custom symbols to ensure that the QR code is short enough.
[0063] In addition, based on the customized format, information with large amounts of data can be accurately transmitted through multi-page QR codes.
[0064] Same as above idea, Figure 2A schematic block diagram of the structure of an electronic device provided by an embodiment of the present invention is shown.
[0065] like Figure 2 As shown, the electronic device may include a storage module 21 and a processor 22 , wherein the storage module 21 includes instructions loaded and executed by the processor 22 .
[0066] In one example, when the instructions are executed, the processor 22 implements the functions of the information sender device in the above-mentioned embodiment method.
[0067] In one example, when the instructions are executed, the processor 22 implements the functions of the information receiving device in the above-mentioned embodiment method.
[0068] It should be understood that the processor 22 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors, or a plurality of other processors.
[0069] (Digital Signal Processor, DSP), Application Specific Integrated Circuit
[0070] (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0071] A computer-readable storage medium is also provided in an embodiment of the present invention. The computer-readable storage medium stores one or more programs. When the one or more programs are executed by a processor, the functions of the information sending device or the information receiving device in the above-mentioned embodiment method are implemented.
[0072] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer-readable storage medium (or a non-transitory medium) and a communication medium (or a temporary medium).
[0073] As is known to those of ordinary skill in the art, the term computer-readable storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.
[0074] Exemplarily, the computer-readable storage medium may be an internal storage module of the electronic device of the aforementioned embodiment, such as a hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device.
[0075] The electronic device and computer-readable storage medium provided in the aforementioned embodiments enable the information sender to transmit plain text information to the information receiver in the form of a QR code. This information transmission method is transparent to the user, and the user can conveniently and directly see the plain text information, thereby determining whether there is any abnormal information in the information other than the user's known information, thereby satisfying the user's trust requirements.
[0076] Taking into account the capacity limitation of the QR code, the embodiment of the present application separates different information by custom symbols to ensure that the QR code is short enough.
[0077] In addition, based on the customized format, information with large amounts of data can be accurately transmitted through multi-page QR codes.
[0078] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. An information transmission method, applied to an information sending device in the process of interaction between a user device and a security device, It is characterized in that include: According to the preset character capacity of the QR code, the original plaintext information to be sent is divided into n plaintext information segments in sequence, where n is greater than or equal to 1; Convert each plaintext information segment into an information segment of a preset format, wherein the information segment of the preset format includes an information header and an information body, wherein the information header includes a current page number, a total page number, and an information type identification code, and the information body includes a plaintext information segment, wherein the total page number is n, and the current page number is taken from 1 to n according to the order of the plaintext information segments; N QR codes are generated by n information segments in preset formats and displayed.
2. An information transmission method according to claim 1, It is characterized in that The information header and the information body, different types of information in the information header, and different types of information in the information body are separated by different custom symbols.
3. An information transmission method according to claim 2, It is characterized in that The nested information in the information body is combined by using custom nested symbols.
4. The information transmission method according to claim 1, It is characterized in that The information body also includes a verification code for verifying the corresponding plaintext information segment.
5. An information transmission method, applied to an information receiving device in the process of interaction between a user device and a security device, It is characterized in that include: In response to the user's scanning operation, the scanning program reads the n information segments of the preset format corresponding to the n QR codes displayed by the information sender's device respectively, and displays them; The information segment of the preset format includes an information header and an information body, the information header includes the current page number, the total page number and the information type identification code, the information body includes a plaintext information segment, the plaintext information segment is formed by the information sender device dividing the original plaintext information to be sent in sequence according to the preset two-dimensional code character capacity, and there are n plaintext information segments in total, the total page number is n, and the current page number is taken from 1 to n according to the order of the plaintext information segments, and n is greater than or equal to 1; According to the current page number in the n information segments of the preset format read, the n plaintext information segments are restored to the original plaintext information.
6. An information transmission method according to claim 5, It is characterized in that The information header and the information body, different types of information in the information header, and different types of information in the information body are separated by different custom symbols.
7. An information transmission method according to claim 6, It is characterized in that The nested information in the information body is combined by using custom nested symbols.
8. An information transmission method according to claim 5, It is characterized in that The information body also includes a verification code for verifying the corresponding plaintext information segment.
9. An electronic device, It is characterized in that It comprises a storage module, wherein the storage module comprises instructions loaded and executed by a processor, and when the instructions are executed, the processor executes an information transmission method according to any one of claims 1-8.
10. A computer-readable storage medium storing one or more programs, It is characterized in that When the one or more programs are executed by a processor, an information transmission method as described in any one of claims 1 to 8 is implemented.
