Data transmission method and device, equipment and computing medium

By obtaining and transmitting the target font data to the security authentication device through the server, the problem of limited storage space of the security authentication device is solved, and the fonts of all character codes can be displayed without increasing the hardware cost.

CN120658723APending Publication Date: 2025-09-16BEIJING WATCH DATA SYSTEM CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510524423.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

Existing security authentication devices such as Ukey cannot meet the demand for font expansion due to limited storage space, resulting in the inability to display rare fonts. Increasing hardware costs to expand the font library will result in a waste of resources.

Method used

The server detects the connection request of the security authentication device, obtains the transaction data and determines the target character encoding that does not belong to the preset font library, obtains the target font data, and transmits it to the security authentication device so as to display each font data corresponding to the transaction data in combination with the preset font library and the target font data.

Benefits of technology

Without increasing hardware costs, the display of font data outside the preset font library is realized, and the fonts of all character codes of transaction data can be displayed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658723A_ABST
    Figure CN120658723A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and device, equipment and a computing medium, which are applied to a server side, and comprise the following steps: detecting a connection request of security authentication equipment, and obtaining transaction data, the transaction data comprising a character code of each character represented by the transaction data; determining a target character code which does not belong to a preset font library in the character codes of each character, wherein the preset font library is a font library stored by the security authentication equipment; obtaining target matrix data corresponding to the target character code; and transmitting the transaction data and the target font data to a security authentication device, so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data in combination with a preset font library and the target font data. According to the embodiment of the invention, the target font data corresponding to the character codes outside the preset font library in the transaction data is sent to the security authentication equipment at the server side, so that the security authentication equipment can display the fonts of all the character codes of the transaction data without increasing hardware cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and specifically relates to a data transmission method, device, equipment and computing medium. Background Art

[0002] In the online banking transaction signature scenario using a USB key (Ukey), a font library is stored in the Ukey to support the display of message data in GB18030 and UTF-8 encoding formats for transaction signature.

[0003] However, with the upgrade of font standards and the increasing demand for display of security information products, there is a need to display rare characters that do not exist in the Ukey font library. However, the Ukey storage space is limited. On the one hand, the existing Ukey hardware can no longer meet the additional demand for expanded fonts. On the other hand, there is a lack of small font libraries for rare characters such as 8*16, 16*16, or even 32*32. Expanding this small font library requires additional expenditure on fonts. Summary of the Invention

[0004] The present application proposes a data transmission method, apparatus, device and computing medium, which can solve the technical problem that current security authentication equipment needs to increase hardware costs in order to display the fonts of all character codes of transaction data.

[0005] The first embodiment of the present application provides a data transmission method, which is applied to a server, including:

[0006] detecting a connection request from a security authentication device, and obtaining transaction data, the transaction data including a character code of each character represented by the transaction data;

[0007] determining a target character code that does not belong to a preset font library among the character codes of each character, where the preset font library is a font library stored in the security authentication device;

[0008] Obtaining target font data corresponding to the target character encoding;

[0009] The transaction data and the target font data are transmitted to the security authentication device, so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data in combination with the preset font library and the target font data.

[0010] An embodiment of a second aspect of the present application provides a data transmission method, applied to a security authentication device, comprising:

[0011] Send a connection request to the server;

[0012] receiving transaction data and target font data sent by the server and obtained based on the connection request, wherein the transaction data includes a character encoding of each character represented by the transaction data, and the target font data is font data corresponding to a target character encoding that does not belong to a preset font library among the character encodings of each character;

[0013] Each font data corresponding to the transaction data is displayed based on the transaction data in combination with the preset font library and the target font data.

[0014] An embodiment of a third aspect of the present application provides a data transmission device, applied to a server, including:

[0015] an acquisition module, configured to detect a connection request from a security authentication device and acquire transaction data, wherein the transaction data includes a character code of each character represented by the transaction data;

[0016] a determination module, configured to determine a target character code in the character code of each character that does not belong to a preset font library, wherein the preset font library is a font library stored in the security authentication device;

[0017] The acquisition module is further configured to acquire target font data corresponding to the target character encoding;

[0018] The sending module is used to transmit the transaction data and the target font data to the security authentication device, so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data.

[0019] An embodiment of a fourth aspect of the present application provides a data transmission device, applied to a security authentication device, including:

[0020] Sending module, used to send connection request to the server;

[0021] a receiving module, configured to receive transaction data and target font data sent by the server and obtained based on the connection request, wherein the transaction data includes a character encoding of each character represented by the transaction data, and the target font data is font data corresponding to a target character encoding that does not belong to a preset font library among the character encodings of each character;

[0022] The display module is configured to display each font data corresponding to the transaction data based on the transaction data in combination with the preset font library and the target font data.

[0023] An embodiment of the fifth aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first or second aspect above.

[0024] An embodiment of the sixth aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and the program is executed by a processor to implement the method described in the first aspect or the second aspect above.

[0025] The technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:

[0026] The present application proposes a data transmission method, apparatus, device and computing medium. In an embodiment of the present application, the server detects a connection request from a security authentication device and obtains transaction data, the transaction data including the character encoding of each character represented by the transaction data; determines the target character encoding in the character encoding of each character that does not belong to a preset font library, the preset font library being a font library stored by the security authentication device; obtains target font data corresponding to the target character encoding; transmits the transaction data and the target font data to the security authentication device so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data. In an embodiment of the application, the server sends the target font data corresponding to the character encoding outside the preset font library in the transaction data to the security authentication device, so that the security authentication device can display the font data outside the preset font library without increasing hardware costs, thereby displaying fonts of all character encodings of the transaction data.

[0027] Additional aspects and advantages of the present application will be given in part in the description below and in part will become apparent from the description below or learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. Throughout the accompanying drawings, the same reference numerals are used to denote the same components.

[0029] In the attached figure:

[0030] Figure 1 A diagram showing an application scenario of a data transmission method provided by an embodiment of the present application is shown;

[0031] Figure 2 A flow chart of a data transmission method provided by an embodiment of the present application is shown;

[0032] Figure 3 A flow chart of a data transmission method provided by an embodiment of the present application is shown;

[0033] Figure 4 A schematic structural diagram of a data transmission device provided in one embodiment of the present application is shown;

[0034] Figure 5 A schematic structural diagram of a data transmission device provided in one embodiment of the present application is shown;

[0035] Figure 6 A schematic structural diagram of an electronic device provided in one embodiment of the present application is shown;

[0036] Figure 7 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0037] The following describes exemplary embodiments of the present application in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0038] It should be noted that, unless otherwise specified, the technical or scientific terms used in this application should have the common meanings understood by those skilled in the art to which this application belongs.

[0039] Following the above background technology, security authentication devices such as Ukey usually store font libraries including some common fonts, such as GB18030-2022 level2 and UTF-8 encoded font libraries due to the limited capacity of the storage device. However, due to the upgrade of font library standards and the strengthening of display requirements for security information products, transaction data may include some obscure fonts, and the font library of the security authentication device does not include these obscure fonts. Therefore, the security authentication device cannot display these obscure fonts, resulting in the inability to complete the transaction.

[0040] In order to solve the technical problem that rare fonts cannot be displayed, the relevant technology arranges an independent storage chip in the security authentication device and stores the font data in the storage chip to cover rare fonts. However, the hardware space in the security authentication device is limited and cannot meet the demand for expanding the font display. For example, in the security authentication device, the cost may increase as the capacity of the hardware flash increases. The expanded font library GB18030-2022 level3 font library may require an additional space of about 3MB compared with GB18030-2022 level2, and the font library GB18030-2022 level3 font library adds about 50,000 characters compared with GB18030-2022 level2, which requires additional payment of a larger font mold fee. In actual transaction scenarios, there are relatively few rare characters. If the font library is expanded in the above manner, it will cause a waste of resources.

[0041] In order to solve this technical problem, the present application proposes a data transmission method, apparatus, device and computing medium. In an embodiment of the present application, the server detects a connection request from a security authentication device and obtains transaction data, the transaction data including the character encoding of each character represented by the transaction data; determines the target character encoding in the character encoding of each character that does not belong to the preset font library, the preset font library being the font library stored by the security authentication device; obtains target font data corresponding to the target character encoding; transmits the transaction data and the target font data to the security authentication device so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data. In an embodiment of the application, the server sends the target font data corresponding to the character encoding outside the preset font library in the transaction data to the security authentication device, so that the security authentication device can display the font data outside the preset font library without increasing the hardware cost, thereby displaying the fonts of all character encodings of the transaction data.

[0042] First, the application scenario of the data transmission method provided in the embodiment of the present application is described. Figure 1 As shown, the scenario includes a server and a security authentication device.

[0043] The server is a service that can conduct transactions with a security authentication device, such as a bank's server. The security authentication device can be a key, dynamic token authentication system, or biometric device, a key tool used to verify user identity, protect data security, and ensure network communication security. The security authentication device also includes a display device, allowing the user to view transaction data and verify its accuracy.

[0044] Generally, the server and the security authentication device are connected through a Bluetooth interface, USB interface, Star Flash or other interface to transmit transaction data.

[0045] The server includes a display device and an operation portal so that relevant personnel can view and input transaction data, and the server can access the Internet to obtain obscure fonts in the transaction data.

[0046] The security authentication device includes a main control chip, display component, storage component, and key components. The main control chip is responsible for processing the security chip's operating system (COS) and controlling the display buttons. The display component can display the font data corresponding to the transaction data for users to review and verify the accuracy of the transaction data. The storage component can be Flash memory, etc., to store a preset font library and the driver package program used to ensure the security of the transaction process.

[0047] The above-mentioned server can be a single server, multiple servers, a server cluster, a cloud computing platform, etc.

[0048] The following describes a data transmission method, device, equipment and computing medium proposed according to an embodiment of the present application in conjunction with the accompanying drawings. This application only illustrates a data transmission method for transaction data. The execution terminal of the embodiment of the present application can be a server.

[0049] The embodiment of the present application is described by using a display-type password key to conduct transactions with a server.

[0050] See also Figure 2 , the method specifically comprises the following steps:

[0051] S201: Detect a connection request from a security authentication device and obtain transaction data.

[0052] The transaction data includes the character code of each character represented by the transaction data.

[0053] Character encoding is a rule for mapping characters into computer-readable digital codes. Common character encodings include ASCII, GB2312, GBK, and Unicode. Font data refers to the graphical information used to display characters. It defines the specific shape and strokes of the characters when displayed on a screen or printer. Font data is typically stored in the form of a dot matrix, with each dot corresponding to a pixel.

[0054] Generally speaking, a character encoding is a fixed numeric code. For example, ASCII uses 1 byte (8 bits) to represent each character, while Unicode (UTF-8) uses 1 to 4 bytes. Font data is typically stored in a dot matrix format, with each character's font data containing a large amount of pixel information. For example, a 16×16 dot matrix of Chinese characters requires 256 pixels of information, with each pixel potentially occupying 1 bit (for black and white display) or more bits (for color display).

[0055] It is understandable that, in order to improve transmission efficiency, corresponding font data is generally represented by character encoding in transaction data.

[0056] In some embodiments, detecting a connection request from a security authentication device and obtaining transaction data includes: detecting a connection request from a security authentication device and displaying an operation interface; and receiving transaction data input by a user on the operation interface.

[0057] Optionally, the server is connected to the security authentication device through a Bluetooth interface, USB interface, Star Flash or other interface. After the connection is completed, an operation interface can be displayed on the server so that relevant personnel can enter transaction data, thereby receiving the transaction data entered by the user on the operation interface.

[0058] S202: Determine the target character code that does not belong to the preset font library in the character code of each character.

[0059] The default font library is the font library stored in the security authentication device.

[0060] In some embodiments, after the server and the security authentication device are connected, the security authentication device can send the stored preset font library to the server, so that the server can determine the font library to which the character encoding of each character represented by the transaction data belongs, and determine the target character encoding that does not belong to the preset font library.

[0061] It can be understood that each character encoding corresponds one-to-one to the font data, and the font library to which the font data belongs is fixed. Therefore, the font data determined by the character encoding can be determined, and then the font library corresponding to the font data can be determined. When the font library is not a preset font library, the character encoding is determined to be the target character encoding.

[0062] S203: Obtain target font data corresponding to the target character code.

[0063] As mentioned above, character encoding corresponds to font data one by one, and the target font data corresponding to the target character encoding can be determined through the Internet.

[0064] S204: Transmit the transaction data and the target font data to the security authentication device, so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data.

[0065] In some embodiments, the transaction data includes the character encoding of each character represented by the transaction data, that is, the transaction data includes the character encoding of the font data corresponding to the preset font library, and also includes the character encoding of the font data that does not correspond to the preset font library, that is, the target character encoding.

[0066] It is understood that upon receiving transaction data, the security authentication device obtains each character code of the transaction data, further determines the font library corresponding to each character code, and if the font library is determined to be a preset font library, searches the preset font library for font data corresponding to the character code. If the font library is determined not to be a preset font library, the device searches the target font data for font data corresponding to the character code. This allows the display of each font data corresponding to the transaction data without adding additional hardware.

[0067] The present application proposes a data transmission method, apparatus, device and computing medium. In an embodiment of the present application, the server detects a connection request from a security authentication device and obtains transaction data, the transaction data including the character encoding of each character represented by the transaction data; determines the target character encoding in the character encoding of each character that does not belong to a preset font library, the preset font library being a font library stored by the security authentication device; obtains target font data corresponding to the target character encoding; transmits the transaction data and the target font data to the security authentication device so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data. In an embodiment of the application, the server sends the target font data corresponding to the character encoding outside the preset font library in the transaction data to the security authentication device, so that the security authentication device can display the font data outside the preset font library without increasing hardware costs, thereby displaying fonts of all character encodings of the transaction data.

[0068] In some embodiments, the method further includes: generating a first summary value corresponding to the transaction data; sending the first summary value to a security authentication device so that the security authentication device generates a second summary value corresponding to the transaction data, and determining whether to display each font data corresponding to the transaction data based on the first summary value and the second summary value.

[0069] In some embodiments, during the transaction between the server and the security authentication device, data tampering may occur, and therefore the integrity of the transaction data needs to be verified.

[0070] The digest value is a fixed-length digital summary generated by processing data using a specific hash algorithm (such as MD5, SHA-1, SHA-256, etc.) and is widely used in computer science and information security.

[0071] Since the hash algorithm is one-way and collision-resistant, even if one bit in the data changes, the generated summary value will be completely different.

[0072] Therefore, a first summary value of the transaction data can be generated on the server side, and the security authentication device generates a second summary value of the transaction data when receiving the transaction data. If the first summary value and the second summary value are consistent, it means that the transaction data has not been tampered with and the transaction data is complete. If the first summary value and the second summary value are consistent, it means that the transaction data is incomplete and the transaction data may have been tampered with.

[0073] In some embodiments, the method further includes: encrypting the target font data using a public key obtained from a security authentication device; transmitting the encrypted target font data to the security authentication device so that the security authentication device decrypts the encrypted target font data using a private key to obtain the target font data, and the private key and the public key belong to the same key pair.

[0074] In some embodiments, in order to prevent the target font data from being illegally obtained by a third party, an encryption algorithm is generally used to encrypt the target font data.

[0075] The embodiment of the present application encrypts the target font data through an asymmetric encryption algorithm.

[0076] First, the security authentication device uses an asymmetric encryption algorithm (such as RSA, ECC, etc.) to generate a pair of keys, including a public key and a private key. The public key is publicly distributed to the user or system (the server in this embodiment) that needs to communicate with it, while the private key is kept by the key owner and never made public.

[0077] After receiving the public key, the server will use the public key to encrypt the target font data to obtain the encrypted target font data. Further, the security authentication device will use the private key to decrypt the encrypted target font data to obtain the target font data.

[0078] The following describes a data transmission method, apparatus, device and computing medium proposed according to an embodiment of the present application in conjunction with the accompanying drawings. This application only illustrates a data transmission method for transaction data. The execution terminal of the embodiment of the present application can be a security authentication device.

[0079] See also Figure 3 , the method specifically comprises the following steps:

[0080] S301: Send a connection request to the server.

[0081] S302: Receive transaction data and target font data sent by the server and obtained based on the connection request.

[0082] The transaction data includes the character encoding of each character represented by the transaction data. The target font data is the font data corresponding to the target character encoding of each character that does not belong to the preset font library. The preset font library is the font library stored in the security authentication device.

[0083] Optionally, the server is connected to the security authentication device via a Bluetooth interface, a USB interface, a Star Flash interface, or other interfaces. After the connection is established, an operation interface can be displayed on the server to allow relevant personnel to enter transaction data, thereby receiving the transaction data entered by the user on the operation interface. In some embodiments, after the server and the security authentication device are connected, the security authentication device can send a stored preset font library to the server, so that the server can determine the font library to which the character encoding of each character represented by the transaction data belongs, and determine the target character encoding that does not belong to the preset font library.

[0084] It can be understood that each character encoding corresponds one-to-one to the font data, and the font library to which the font data belongs is fixed. Therefore, the font data determined by the character encoding can be determined, and then the font library corresponding to the font data can be determined. When the font library is not a preset font library, the character encoding is determined to be the target character encoding.

[0085] S303 : Display each font data corresponding to the transaction data based on the transaction data in combination with the preset font library and the target font data.

[0086] In some embodiments, the transaction data includes the character encoding of each character represented by the transaction data, that is, the transaction data includes the character encoding of the font data corresponding to the preset font library, and also includes the character encoding of the font data that does not correspond to the preset font library, that is, the target character encoding.

[0087] It is understood that upon receiving transaction data, the security authentication device obtains each character code of the transaction data, further determines the font library corresponding to each character code, and if the font library is determined to be a preset font library, searches the preset font library for font data corresponding to the character code. If the font library is determined not to be a preset font library, the device searches the target font data for font data corresponding to the character code. This allows the display of each font data corresponding to the transaction data without adding additional hardware.

[0088] The present application proposes a data transmission method, apparatus, device and computing medium. In an embodiment of the present application, the server detects a connection request from a security authentication device and obtains transaction data, the transaction data including the character encoding of each character represented by the transaction data; determines the target character encoding in the character encoding of each character that does not belong to a preset font library, the preset font library being a font library stored by the security authentication device; obtains target font data corresponding to the target character encoding; transmits the transaction data and the target font data to the security authentication device so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data. In an embodiment of the application, the server sends the target font data corresponding to the character encoding outside the preset font library in the transaction data to the security authentication device, so that the security authentication device can display the font data outside the preset font library without increasing hardware costs, thereby displaying fonts of all character encodings of the transaction data.

[0089] In some embodiments, each font data corresponding to the transaction data is displayed based on the transaction data in combination with a preset font library and target font data, including: determining each character code of the transaction data; determining a first character code belonging to the preset font library and a second character code that does not belong to the preset font library in each character code; selecting first font data corresponding to the first character code from the preset font library; and when the second font data corresponding to the second character code is consistent with the target font data, displaying each font data corresponding to the transaction data based on the first font data and the target font data.

[0090] It can be understood that after determining the first character code belonging to the preset font library and the second character code that does not belong to the preset font library in each character code; the first font data corresponding to the first character code is selected from the preset font library, and further, the second font data corresponding to the second character code is determined. When the second font data is consistent with the target font data, it means that the target font data has not been tampered with during the transmission process, so that each font data corresponding to the transaction data can be displayed based on the first font data and the target font data.

[0091] In some embodiments, the process of determining whether the second font data corresponding to the second character code is consistent with the target font data can be implemented as follows:

[0092] Since the character code corresponds to the font data one-to-one, after determining the second character code, it can be determined whether the second font data corresponding to all the second character codes are included in the target font data. If the second font data is consistent with the target font data, it means that the target font data has not been tampered with during the transmission process, so that each font data corresponding to the transaction data can be displayed based on the first font data and the target font data.

[0093] In some embodiments, the method further includes: receiving a first summary value corresponding to the transaction data; generating a second summary value corresponding to the transaction data, and when the first summary value and the second summary value are consistent, displaying each font data corresponding to the transaction data based on the transaction data combined with a preset font library and target font data.

[0094] In some embodiments, a first summary value of the transaction data can be generated on the server side, and the security authentication device generates a second summary value of the transaction data when receiving the transaction data. If the first summary value and the second summary value are consistent, it means that the transaction data has not been tampered with and the transaction data is complete. If the first summary value and the second summary value are consistent, it means that the transaction data is incomplete and the transaction data may have been tampered with.

[0095] In some embodiments, the method further includes: sending a public key to a server; receiving target font data encrypted by the public key from the server; decrypting the encrypted target font data using a private key to obtain the target font data, wherein the private key and the public key belong to the same key pair.

[0096] In some embodiments, to ensure transmission security, the security authentication device uses an asymmetric encryption algorithm (such as RSA, ECC, etc.) to generate a pair of keys, including a public key and a private key. The public key is publicly distributed to the user or system (the server in this embodiment) that needs to communicate with it, while the private key is kept by the key owner and never made public.

[0097] After receiving the public key, the server will use the public key to encrypt the target font data to obtain the encrypted target font data. Further, the security authentication device will use the private key to decrypt the encrypted target font data to obtain the target font data.

[0098] In some embodiments, the method further includes: receiving a determination operation for each font data corresponding to the transaction data; signing the transaction data; and sending the signed transaction data to the server so that the server can verify the signed transaction data.

[0099] After the security authentication device displays each font data corresponding to the transaction data, the relevant personnel will check whether the transaction data is correct. Upon receiving the confirmation operation for each font data corresponding to the transaction data, it means that the transaction data is correct. The transaction data will be signed and sent to the server so that the server can verify the signed transaction data.

[0100] The embodiment of the present application also provides a data transmission device, which is applied to the server and is used to perform the above Figure 2 The data transmission method provided in the embodiment. Figure 4As shown, the device includes: an acquisition module 401, a determination module 402 and a sending module 403.

[0101] An acquisition module 401 is configured to detect a connection request from a security authentication device and acquire transaction data, wherein the transaction data includes a character code of each character represented by the transaction data;

[0102] A determination module 402 is configured to determine a target character encoding that does not belong to a preset font library in the character encoding of each character, where the preset font library is a font library stored in the security authentication device;

[0103] The acquisition module 401 is further configured to acquire target font data corresponding to the target character encoding;

[0104] The sending module 403 is used to transmit the transaction data and the target font data to the security authentication device, so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data.

[0105] The present application proposes a data transmission method, apparatus, device and computing medium. In an embodiment of the present application, the server detects a connection request from a security authentication device and obtains transaction data, the transaction data including the character encoding of each character represented by the transaction data; determines the target character encoding in the character encoding of each character that does not belong to a preset font library, the preset font library being a font library stored by the security authentication device; obtains target font data corresponding to the target character encoding; transmits the transaction data and the target font data to the security authentication device so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data. In an embodiment of the application, the server sends the target font data corresponding to the character encoding outside the preset font library in the transaction data to the security authentication device, so that the security authentication device can display the font data outside the preset font library without increasing hardware costs, thereby displaying fonts of all character encodings of the transaction data.

[0106] In some embodiments, the above apparatus further comprises:

[0107] A generating module, configured to generate a first digest value corresponding to the transaction data;

[0108] The sending module 403 is also used to send the first summary value to the security authentication device so that the security authentication device generates a second summary value corresponding to the transaction data, and determines whether to display each font data corresponding to the transaction data based on the first summary value and the second summary value.

[0109] In some embodiments, the above apparatus further comprises:

[0110] An encryption module, configured to encrypt the target font data using a public key obtained from the security authentication device;

[0111] The sending module 403 is further configured to transmit the encrypted target font data to the security authentication device so that the security authentication device decrypts the encrypted target font data using a private key to obtain the target font data, wherein the private key and the public key belong to the same key pair.

[0112] In some embodiments, the acquisition module 401 is specifically configured to:

[0113] Detects a connection request from a security authentication device and displays an operation interface;

[0114] Receive transaction data input by the user on the operation interface.

[0115] The data transmission device provided in the embodiment of the present application and the data transmission method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.

[0116] The embodiment of the present application also provides a data transmission device, which is applied to a first terminal and is used to perform the above Figure 3 The data transmission method provided in the embodiment. Figure 5 As shown, the device includes: a sending module 501, a receiving module 502 and a display module 503.

[0117] The sending module 501 is used to send a connection request to the server;

[0118] a receiving module 502 configured to receive transaction data and target font data sent by the server and obtained based on the connection request, wherein the transaction data includes a character encoding of each character represented by the transaction data, and the target font data is font data corresponding to a target character encoding that does not belong to a preset font library among the character encodings of each character;

[0119] The display module 503 is configured to display each font data corresponding to the transaction data based on the transaction data in combination with the preset font library and the target font data.

[0120] The present application proposes a data transmission method, apparatus, device and computing medium. In an embodiment of the present application, the server detects a connection request from a security authentication device and obtains transaction data, the transaction data including the character encoding of each character represented by the transaction data; determines the target character encoding in the character encoding of each character that does not belong to a preset font library, the preset font library being a font library stored by the security authentication device; obtains target font data corresponding to the target character encoding; transmits the transaction data and the target font data to the security authentication device so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data. In an embodiment of the application, the server sends the target font data corresponding to the character encoding outside the preset font library in the transaction data to the security authentication device, so that the security authentication device can display the font data outside the preset font library without increasing hardware costs, thereby displaying fonts of all character encodings of the transaction data.

[0121] In some embodiments, the display module 503 is specifically configured to:

[0122] Determining each character encoding of the transaction data;

[0123] Determining, in each of the character codes, a first character code belonging to a preset font library and a second character code not belonging to the preset font library;

[0124] Selecting first font data corresponding to the first character code from the preset font library;

[0125] When the second font data corresponding to the second character code is consistent with the target font data, each font data corresponding to the transaction data is displayed based on the first font data and the target font data.

[0126] In some embodiments, the receiving module 502 is further configured to:

[0127] receiving a first digest value corresponding to the transaction data;

[0128] The above-mentioned device also includes a generation module for generating a second summary value corresponding to the transaction data. When the first summary value and the second summary value are consistent, each font data corresponding to the transaction data is displayed based on the transaction data combined with the preset font library and the target font data.

[0129] In some embodiments, the sending module 501 is further configured to:

[0130] Sending the public key to the server;

[0131] The receiving module 502 is further configured to receive the target font data encrypted by the public key and sent by the server;

[0132] The above-mentioned device further includes a decryption module, which is used to decrypt the encrypted target font data using a private key to obtain the target font data, and the private key and the public key belong to the same key pair.

[0133] In some embodiments,

[0134] The receiving module 502 is further configured to receive a determination operation for each font data corresponding to the transaction data;

[0135] A signature module, used to sign the transaction data;

[0136] The sending module 501 is further configured to send the signed transaction data to a server so that the server can verify the signed transaction data.

[0137] The present application also provides an electronic device to perform the above data transmission method. Figure 6 It shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 6 As shown, the electronic device 7 includes: a processor 700, a memory 701, a bus 702 and a communication interface 703. The processor 700, the communication interface 703 and the memory 701 are connected via the bus 702; the memory 701 stores a computer program that can be run on the processor 700, and when the processor 700 runs the computer program, it executes the data transmission method provided in any of the aforementioned embodiments of the present application.

[0138] The memory 701 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is achieved through at least one communication interface 703 (which may be wired or wireless), and may use the Internet, a wide area network, a local area network, a metropolitan area network, etc.

[0139] Bus 702 may be an ISA bus, a PCI bus, or an EISA bus. Buses may be classified as address buses, data buses, and control buses. Memory 701 is used to store programs, and processor 700 executes the programs upon receiving execution instructions. The data transmission method disclosed in any of the aforementioned embodiments of the present application may be applied to or implemented by processor 700.

[0140] The processor 700 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 700 or by software instructions. The processor 700 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 701 , and the processor 700 reads the information in the memory 701 and completes the steps of the above method in combination with its hardware.

[0141] The electronic device provided in the embodiment of the present application and the data transmission method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented by them.

[0142] The present application also provides a computer-readable storage medium corresponding to the data transmission method provided in the above embodiment. Figure 7 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, it executes the data transmission method provided by any of the aforementioned embodiments.

[0143] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0144] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the data transmission method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0145] It should be noted that:

[0146] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.

[0147] Similarly, it should be understood that in order to streamline the present application and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed application requires more features than the features expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims following the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present application.

[0148] Furthermore, those skilled in the art will appreciate that although some embodiments herein include certain features included in other embodiments but not other features, combinations of features from different embodiments are intended to be within the scope of this application and to form different embodiments. For example, in the claims below, any of the claimed embodiments may be used in any combination.

[0149] The above are merely preferred embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A data transmission method, characterized in that: Applied to the server, including: detecting a connection request from a security authentication device, and obtaining transaction data, the transaction data including a character code of each character represented by the transaction data; determining a target character code that does not belong to a preset font library among the character codes of each character, where the preset font library is a font library stored in the security authentication device; Obtaining target font data corresponding to the target character encoding; The transaction data and the target font data are transmitted to the security authentication device, so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data in combination with the preset font library and the target font data.

2. The method according to claim 1, characterized in that The method further comprises: generating a first digest value corresponding to the transaction data; The first summary value is sent to the security authentication device so that the security authentication device generates a second summary value corresponding to the transaction data, and determines whether to display each font data corresponding to the transaction data based on the first summary value and the second summary value.

3. The method according to claim 1, characterized in that The method further comprises: encrypting the target font data using the public key obtained from the security authentication device; The encrypted target font data is transmitted to the security authentication device so that the security authentication device decrypts the encrypted target font data using a private key to obtain the target font data, wherein the private key and the public key belong to the same key pair.

4. The method according to claim 1, wherein The detecting a connection request from a security authentication device and obtaining transaction data includes: Detects a connection request from a security authentication device and displays an operation interface; Receive transaction data input by the user on the operation interface.

5. A data transmission method, characterized in that: Applied to security authentication equipment, including: Send a connection request to the server; receiving transaction data and target font data sent by the server and obtained based on the connection request, wherein the transaction data includes a character encoding of each character represented by the transaction data, and the target font data is font data corresponding to a target character encoding that does not belong to a preset font library among the character encodings of each character; Each font data corresponding to the transaction data is displayed based on the transaction data in combination with the preset font library and the target font data.

6. The method according to claim 5, characterized in that The display of each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data includes: Determining each character encoding of the transaction data; Determining, in each of the character codes, a first character code belonging to a preset font library and a second character code not belonging to the preset font library; Selecting first font data corresponding to the first character code from the preset font library; When the second font data corresponding to the second character code is consistent with the target font data, each font data corresponding to the transaction data is displayed based on the first font data and the target font data.

7. The method according to claim 5, characterized in that The method further comprises: receiving a first digest value corresponding to the transaction data; A second digest value corresponding to the transaction data is generated, and when the first digest value and the second digest value are consistent, each font data corresponding to the transaction data is displayed based on the transaction data in combination with the preset font library and the target font data.

8. The method according to claim 5, characterized in that The method further comprises: Sending the public key to the server; Receiving the target font data encrypted by the public key sent by the server; The encrypted target font data is decrypted using a private key to obtain the target font data, wherein the private key and the public key belong to the same key pair.

9. The method according to claim 5, characterized in that The method further comprises: receiving a determination operation for each font data corresponding to the transaction data; Signing the transaction data; The signed transaction data is sent to the server so that the server can verify the signed transaction data.

10. A data transmission device, characterized in that: Applied to the server, including: an acquisition module, configured to detect a connection request from a security authentication device and acquire transaction data, wherein the transaction data includes a character code of each character represented by the transaction data; a determination module, configured to determine a target character code in the character code of each character that does not belong to a preset font library, wherein the preset font library is a font library stored in the security authentication device; The acquisition module is further configured to acquire target font data corresponding to the target character encoding; The sending module is used to transmit the transaction data and the target font data to the security authentication device, so that the security authentication device displays each font data corresponding to the transaction data based on the transaction data combined with the preset font library and the target font data.

11. A data transmission device, characterized in that: Applied to the target operator's server, including: Sending module, used to send connection request to the server; a receiving module, configured to receive transaction data and target font data sent by the server and obtained based on the connection request, wherein the transaction data includes a character encoding of each character represented by the transaction data, and the target font data is font data corresponding to a target character encoding that does not belong to a preset font library among the character encodings of each character; The display module is configured to display each font data corresponding to the transaction data based on the transaction data in combination with the preset font library and the target font data.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor runs the computer program to implement the method according to any one of claims 1 to 4 or 5 to 9.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 4 or 5 to 9.