CN105005733B - Word stock initialization method, character display method and system and intelligent key equipment - Google Patents

Word stock initialization method, character display method and system and intelligent key equipment Download PDF

Info

Publication number
CN105005733B
CN105005733B CN201510319777.9A CN201510319777A CN105005733B CN 105005733 B CN105005733 B CN 105005733B CN 201510319777 A CN201510319777 A CN 201510319777A CN 105005733 B CN105005733 B CN 105005733B
Authority
CN
China
Prior art keywords
character information
character
key
information packet
displayed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510319777.9A
Other languages
Chinese (zh)
Other versions
CN105005733A (en
Inventor
李东声
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tendyron Corp
Original Assignee
Tendyron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tendyron Corp filed Critical Tendyron Corp
Priority to CN201510319777.9A priority Critical patent/CN105005733B/en
Publication of CN105005733A publication Critical patent/CN105005733A/en
Application granted granted Critical
Publication of CN105005733B publication Critical patent/CN105005733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/34User authentication involving the use of external additional devices, e.g. dongles or smart cards
    • G06F21/35User authentication involving the use of external additional devices, e.g. dongles or smart cards communicating wirelessly
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention provides a word stock initialization method, a character display method and system, initialization equipment and intelligent key equipment, wherein the optional character display method comprises the following steps: the terminal selects a character information packet containing character information corresponding to the character to be displayed from the character information packets according to the character information corresponding to the character to be displayed, and sends the character information packet to the intelligent key device, wherein the character information packet contains at least two pieces of character information; the intelligent key equipment verifies the received character information packet according to the locally stored key, if the verification is passed, character information corresponding to the character to be displayed is selected from the received character information packet, and the character to be displayed is displayed according to the selected character information. The invention does not store the word stock in the intelligent key device, releases the storage space of the chip of the intelligent key device, and ensures that the character information data imported from the outside is accurate and legal by checking the character information packet and displaying the character to be displayed after the check is passed.

Description

Word stock initialization method, character display method and system and intelligent key equipment
Technical Field
The invention relates to the technical field of electronics, in particular to a word stock initialization method and system, a character display method and system, initialization equipment and intelligent key equipment.
Background
In conventional smart key devices (e.g., USBKEY), characters (including Chinese characters, numbers, letters, symbols, etc.) are represented, exchanged, and processed in the form of internal codes. When the characters need to be displayed, the intelligent secret key equipment converts the internal codes of the characters to be displayed into zone bit codes, extracts the character matrixes of the characters to be displayed from the character library stored in the intelligent secret key equipment by utilizing the zone bit codes, and displays the characters on a screen in a dot matrix mode according to character matrix information. The matrix is the code corresponding to the character displayed on the dot matrix. The graph or the character is stored in a mode of a character die, each point needs one bit to be stored, the bit is 0 to represent that the pixel point is not displayed, and the bit is 1 to represent display. Thus, one byte can store the display condition of 8 pixels. Characters with the size of four in Song body are generally used for display, and one English character just occupies 8 × 16 pixels; whereas a chinese character requires twice, i.e. 16 x 16 pixels to display a chinese character. Thus, storing an english character requires 1 byte of storage per line of 8 dots for a total of 16 lines.
In this case, the smart key device requires a large storage space because all the matrices corresponding to the characters to be displayed need to be stored. The memory of the security chip in a general smart key device cannot meet the requirement of storing such a large word stock, and therefore, a memory extended outside the security chip is mostly used to store the word stock. However, extending a memory external to the security chip to store the word stock increases the cost of the smart key device.
Disclosure of Invention
The present invention is directed to solving one of the problems set forth above.
An object of the present invention is to provide a font library initialization method;
another object of the present invention is to provide a character display method;
another object of the present invention is to provide an initialization apparatus;
it is another object of the present invention to provide a smart key device;
it is another object of the present invention to provide a character initialization system;
it is still another object of the present invention to provide a character display system.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a font library initialization method in a first aspect, which comprises the following steps: the method comprises the steps that initialization equipment groups character information in a word stock according to a preset strategy to generate one or more character information packets, wherein the character information packets comprise at least two pieces of character information; the initialization equipment acquires a secret key, calculates a check code corresponding to each character information packet of the word stock according to the secret key, and sends the secret key and the corresponding check code to intelligent secret key equipment; the intelligent key equipment receives and stores the key and the check code corresponding to each character information packet in the word stock; or the initialization equipment sends each character information packet in the word stock to the intelligent key equipment; and the intelligent key equipment calculates and stores the check code corresponding to each character information packet of the word stock according to the locally stored key.
Optionally, the number of the smart key devices is at least two, and the keys received by each smart key device are the same key or different keys.
Optionally, the initializing device generates one or more character information packets for all the character information in the word stock according to a preset policy group, where the method includes at least one of the following ways:
the initialization equipment sets the number of character information forming one character information packet or the total number of the character information packets, and divides all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
the initialization equipment classifies character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and divides the character information with the same category into a group;
the initialization equipment divides character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
the initialization equipment divides all Chinese characters in the character library into a plurality of character roots, and divides character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value into a group.
Optionally, the character information includes: the character corresponds to the type matrix and the code.
The second aspect of the present invention provides a font library initialization method, including: the method comprises the steps that initialization equipment generates one or more character information packets for all character information in a word stock according to a preset strategy in a grouping mode, wherein the character information packets comprise at least two character information; and the initialization equipment acquires a secret key and calculates to-be-verified information of each character information packet of the word stock according to the secret key.
Optionally, the method further includes: the initialization equipment also sends the verification key related to the key to the intelligent key equipment, and the intelligent key equipment receives and stores the verification key related to the key sent by the initialization equipment.
Optionally, the initializing device generates one or more character information packets for all the character information in the word stock according to a preset policy group, where the method includes at least one of the following ways:
the initialization equipment sets the number of character information forming one character information packet or the total number of the character information packets, and divides all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
the initialization equipment classifies character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and divides the character information with the same category into a group;
the initialization equipment divides character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
the initialization equipment divides all Chinese characters in the character library into a plurality of character roots, and divides character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value into a group.
Optionally, the character information includes: the character corresponds to the type matrix and the code.
A third aspect of the present invention provides a character display method, including:
the method comprises the steps that intelligent secret key equipment receives a character information packet sent by a terminal, wherein the character information packet comprises at least two pieces of character information; the intelligent key equipment verifies the character information packet according to the locally stored key, if the verification is passed, character information corresponding to the character to be displayed is selected from the received character information packet, and the character to be displayed is displayed according to the selected character information.
A fourth aspect of the present invention provides a character display method, including: the terminal selects a character information packet containing character information corresponding to the character to be displayed from the character information packets according to the character information corresponding to the character to be displayed, and sends the character information packet to the intelligent key device, wherein the character information packet contains at least two pieces of character information; the intelligent key equipment receives the character information packet sent by the terminal, verifies the character information packet according to the locally stored key, selects character information corresponding to the character to be displayed from the received character information packet if the verification is passed, and displays the character to be displayed according to the selected character information.
Optionally, the verifying, by the smart key device, the character information packet according to the locally stored key includes: the intelligent secret key equipment calculates the check code of the character information packet sent by the terminal according to the secret key stored locally; and the intelligent key equipment compares the calculated check code of the character information packet with the locally stored check code of the corresponding character information packet, and if the comparison is consistent, the verification is passed.
Optionally, the method further comprises: the intelligent key equipment receives information to be verified of a character information packet sent by a terminal; the intelligent secret key equipment verifies the character information packet according to the secret key stored locally, and the method comprises the following steps: and the intelligent key equipment verifies the information to be verified of the character information packet according to the locally stored key.
Optionally, the character information includes: the character module and the code corresponding to the character; selecting character information corresponding to the character to be displayed from the received character information packet, and displaying the character to be displayed according to the selected character information, wherein the character information comprises the following components: and selecting a font corresponding to the character to be displayed from the received character information packet according to the code corresponding to the character to be displayed, and displaying the character to be displayed according to the font.
Optionally, before the smart key device receives the character information packet sent by the terminal, the method further includes: the intelligent key equipment sends a code corresponding to the character to be displayed to the terminal; and the terminal sends a character information packet containing a matrix corresponding to the character to be displayed to the intelligent key equipment according to the code corresponding to the character to be displayed.
Optionally, the method further includes: the terminal also sends the identifier of the character information packet containing the character information corresponding to the character to be displayed to the intelligent key equipment.
A fifth aspect of the present invention provides an initialization apparatus, comprising: the sub-packaging module is used for grouping all character information in the word stock according to a preset strategy to generate one or more character information packages, and each character information package comprises at least two pieces of character information; the generating module is used for acquiring a secret key and calculating a check code corresponding to each character information packet in the word stock according to the secret key; and the sending module is used for sending the key and the corresponding check code to the intelligent key equipment.
Optionally, the key includes the same key or a plurality of different keys, and the smart key device includes at least two keys; the sending module is configured to send the key and the corresponding check code to the smart key device, and includes: the sending module is used for sending the same key and the corresponding check code to each intelligent key device; or, a plurality of different keys and corresponding check codes are sent to the respective smart key devices.
Optionally, the sub-packaging module groups all the fonts in the font library according to a preset strategy to generate one or more character information packages by at least one of the following methods:
setting the number of character information forming one character information packet or the total number of the character information packets, and dividing all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
classifying character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and dividing the character information with the same category into a group;
dividing character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
and splitting all Chinese characters in the character library into a plurality of character roots, and dividing character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value into a group.
Optionally, the character information includes: the character corresponds to the type matrix and the code.
A sixth aspect of the present invention provides an initialization apparatus comprising: the sub-packaging module is used for grouping all character information in the word stock according to a preset strategy to generate one or more character information packages, and each character information package comprises at least two pieces of character information; and the sending module is used for sending each character information packet in the word stock to the intelligent key equipment.
Optionally, the sub-packaging module groups all the fonts in the font library according to a preset strategy to generate one or more character information packages by at least one of the following methods:
setting the number of character information forming one character information packet or the total number of the character information packets, and dividing all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
classifying character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and dividing the character information with the same category into a group;
dividing character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
and splitting all Chinese characters in the character library into a plurality of character roots, and dividing character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value into a group.
Optionally, the character information includes: the character corresponds to the type matrix and the code.
A seventh aspect of the present invention provides an initialization apparatus, comprising: the sub-packet module is used for grouping all character information in the word stock according to a preset strategy to generate one or more character information packets and storing the word stock consisting of the one or more character information packets, wherein the character information packets comprise at least two pieces of character information; and the generating module is used for acquiring a secret key and calculating to-be-verified information of each character information packet of the word stock according to the secret key.
Optionally, the initialization apparatus further includes: and the sending module is used for sending the verification key related to the key to the intelligent key equipment.
Optionally, the sub-packaging module groups all the fonts in the font library according to a preset strategy to generate one or more character information packages by at least one of the following methods:
setting the number of character information forming one character information packet or the total number of the character information packets, and dividing all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
classifying character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and dividing the character information with the same category into a group;
dividing character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
and splitting all Chinese characters in the character library into a plurality of character roots, and dividing character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value into a group.
Optionally, the character information includes: the character corresponds to the type matrix and the code.
An eighth aspect of the present invention provides an intelligent key device, including: the receiving module is used for receiving a character information packet sent by a terminal, and the character information packet comprises at least two pieces of character information; the verification module is used for verifying the character information packet according to the locally stored key; and the display module is used for selecting the character information corresponding to the character to be displayed from the received character information packet after the verification is passed, and displaying the character to be displayed according to the selected character information.
Optionally, the verifying module is configured to verify the character information packet according to a locally stored key, and includes: calculating a check code of a character information packet sent by the terminal according to a locally stored key; and comparing the calculated check code of the character information packet with the locally stored check code of the corresponding character information packet, and if the comparison is consistent, the verification is passed.
Optionally, the receiving module is further configured to receive information to be verified of the character information packet sent by the terminal; the verification module is used for verifying the character information packet according to the locally stored key, and comprises: and verifying the information to be verified of the character information packet according to the locally stored key.
Optionally, the character information includes: the character module and the code corresponding to the character; the display module is used for selecting character information corresponding to the character to be displayed from the received character information packet and displaying the character to be displayed according to the selected character information, and comprises: and selecting a font corresponding to the character to be displayed from the received character information packet according to the code corresponding to the character to be displayed, and displaying the character to be displayed according to the font.
Optionally, the sending module is configured to send the code corresponding to the character to be displayed to the terminal.
A ninth aspect of the present invention provides a character initialization system, including: an initialization device as provided in the fifth aspect and one or more smart key devices as provided in the eighth aspect; wherein: and the intelligent key equipment is also used for receiving and storing the key and the check code corresponding to each character information packet in the word stock.
A tenth aspect of the present invention provides a character initialization system, including: an initialization device as provided in the sixth aspect and one or more smart key devices as provided in the eighth aspect; wherein: and the intelligent key device is also used for receiving each character information packet in the word stock sent by the initialization device, calculating a check code corresponding to each character information packet in the word stock according to a locally stored key, and storing the check code.
An eleventh aspect of the present invention provides a character initialization system, including: an initialization device as provided in the seventh aspect and one or more smart key devices as provided in the eighth aspect; wherein: the intelligent key device is further configured to receive and store the verification key related to the key sent by the initialization device.
A twelfth aspect of the present invention provides a character display system comprising: a terminal and a smart key device as provided in the eighth aspect; wherein:
and the terminal is used for selecting a character information packet containing the character information corresponding to the character to be displayed from the character information packets according to the character information corresponding to the character to be displayed and sending the character information packet to the intelligent key equipment, wherein the character information packet contains at least two pieces of character information.
Optionally, the character information includes: the character module and the code corresponding to the character; the terminal is used for selecting a character information packet containing character information corresponding to the characters to be displayed from the character information packets according to the character information corresponding to the characters to be displayed, and sending the character information packet to the intelligent key device, and comprises: and the terminal sends a character information packet containing a matrix corresponding to the character to be displayed to the intelligent key equipment according to the code corresponding to the character to be displayed received from the intelligent key equipment.
Optionally, the terminal is further configured to send an identifier of a character information packet containing character information corresponding to the character to be displayed to the smart key device.
According to the technical scheme provided by the invention, the invention provides a font library initialization method and system, a character display method and system, initialization equipment and intelligent key equipment, wherein the font library is not stored in the intelligent key equipment, so that the storage space of an intelligent key equipment chip is greatly released; furthermore, the invention ensures that the character information data imported from the outside is accurate and legal by verifying the character information packet without only storing a word stock in the intelligent key device.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a word stock initialization system provided in embodiments 1 and 2 of the present invention;
fig. 2 is a schematic structural diagram of an initialization apparatus provided in embodiments 1 and 2 of the present invention;
fig. 3 is a schematic structural diagram of an intelligent key device provided in embodiments 1 and 2 of the present invention;
fig. 4 is a schematic structural diagram of a character display system according to embodiment 3 of the present invention;
fig. 5 is a schematic structural diagram of an intelligent key device according to embodiment 3 of the present invention;
fig. 6 is a flowchart of a font library initialization method according to embodiment 4 of the present invention;
fig. 7 is a flowchart of another word stock initialization method provided in embodiment 4 of the present invention;
fig. 8 is a flowchart of another word stock initialization method provided in embodiment 4 of the present invention;
fig. 9 is a flowchart of a character display method according to embodiment 5 of the present invention;
fig. 10 is a flowchart of a character display method according to embodiment 6 of the present invention;
fig. 11 is a flowchart of a character display method according to embodiment 7 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or quantity or location.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Example 1
The present embodiment provides a word stock initialization system 10, as shown in fig. 1, which includes: an initialization device 11 and a smart key device 12 (e.g., a workman U shield, a farm K treasure, etc.).
In this embodiment, the initialization device 11 is configured to group all character information in the word stock according to a preset policy to generate one or more character information packets, where each character information packet includes character information corresponding to at least two characters; the intelligent key equipment is also used for acquiring a key, calculating a check code corresponding to each character information packet of the word stock according to the key, and sending the key and the corresponding check code to the intelligent key equipment; the smart key device 12 receives and stores the key and the check code corresponding to each character information packet in the word stock.
Or the initialization equipment sends each character information packet in the word stock to the intelligent key equipment; and the intelligent key equipment calculates and stores the check code corresponding to each character information packet of the word stock according to the locally stored key.
By the word stock initialization system provided by the embodiment of the invention, the word stock is not stored in the intelligent secret key equipment, but is stored in the initialization equipment, so that the storage space of the intelligent secret key equipment chip is greatly released; furthermore, since the initialization device stores the character information in the word stock in a packet manner, the intelligent key device only stores the check codes corresponding to the character information packets, namely, a plurality of pieces of character information (the plurality of pieces of character information form one character information packet) share one check code, so that the storage space of the intelligent key device is further saved.
In an alternative implementation manner of this embodiment, as shown in fig. 2, the initialization apparatus 11 includes: a packetization module 111, a generation module 112, and a transmission module 113, wherein:
the sub-packaging module 111 is configured to generate one or more character information packages by grouping all character information in the word stock according to a preset policy, where the character information packages include at least two pieces of character information;
a generating module 112, configured to obtain a secret key, and calculate, according to the secret key, a check code corresponding to each character information packet in the word stock;
a sending module 113, configured to send the key and the corresponding check code to the smart key device.
In an optional implementation manner of this embodiment, the key includes a same key or multiple different keys, and the smart key device includes at least two keys;
the sending module 113 is configured to send the key and the corresponding check code to the smart key device, and includes:
the sending module 113 is configured to send the same key and the corresponding check code to each smart key device; or, a plurality of different keys and corresponding check codes are sent to the respective smart key devices.
In this alternative embodiment, the plurality of smart key devices in the library initialization system 10 may share one key, or may use different keys, and the characters may include: chinese characters (complex form, simplified form, etc.), numbers, letters, symbols, special characters, etc. The character information includes: the characters correspond to a type matrix and codes, and each character can be identified by the codes.
In an alternative implementation of this embodiment, as shown in FIG. 3, smart key device 12 includes: a receiving module 121 and a storing module 123, wherein:
the receiving module 121 is configured to receive the key sent by the initialization device 11 and the check code corresponding to each character information packet in the word stock;
the storage module 123 is configured to store the key and the check code corresponding to each character information packet in the word stock.
In this embodiment, specifically, the storage module 123 of the smart key device may form a check code library, where the check code library corresponds to each character information packet in the word library.
In this alternative embodiment, the generation key and the check code library are computed by an external device (initialization device) of the smart key device.
In an alternative implementation manner of this embodiment, the initialization device 11 (not shown in the figure) of the word stock initialization system 10 only includes: a packetization module 111 and a sending module 113, wherein:
the sub-packaging module 111 is configured to generate one or more character information packages by grouping all character information in the word stock according to a preset policy, where the character information packages include at least two pieces of character information;
a sending module 113, configured to send each character information packet in the word stock to the smart key device.
In an alternative implementation of this embodiment, smart key device 12 (not shown) of library initialization system 10 includes: a generation module 125 and a storage module 123, wherein:
the generating module 125 is configured to calculate, according to a locally stored key, a check code corresponding to each character information packet in a word stock of the initialization device; the initialization device may first send each character information packet in the word stock to the intelligent key device 12, and the generation module 125 deletes each character information packet in the word stock sent by the initialization device after calculating the check code corresponding to each character information packet;
the storage module 123 is configured to store the check code corresponding to each character information packet in the word stock.
In this alternative embodiment, the check code library is generated by the smart key device itself, and the external device (initialization device 11) merely provides the word library.
In this embodiment, the key locally stored in each smart key device and the check code library calculated according to the key may be generated by each smart key device itself, or generated by the initialization device terminal and sent to each smart key device. For each smart key device, the key of each smart key device may be different, and the adopted preset algorithm may also be different, so that each smart key device may form a different check code library and store the check code library in the storage module 123. In addition, optionally, the storage module 123 of each smart key device may further configure a mapping relationship table of the check code and the character information packet or the character information, in the mapping relationship table, a corresponding check code may be found according to the identifier of the character information packet or the character information, each check code corresponds to one character information packet, and a plurality of character information included in the corresponding character information packet, that is, a plurality of character information (one character information packet) share one check code.
In an optional implementation manner in this embodiment, the key stored locally by the smart key device is generated as follows:
the intelligent key device calculates a random key as a locally stored key through a preset algorithm according to the sequence code of the intelligent key device, and stores the random key in the storage module 123; or
The intelligent key device sets a random number generator, takes a random number generated by the random number generator as a random key, and stores the random number in the storage module 123; or
The intelligent key equipment is provided with a random number generator, and a random key is calculated as a locally stored key through a preset algorithm according to a random number generated by the random number generator and the sequence code of the intelligent key equipment; or
The random number generated by the random number generator of the initialization device is used as the key of each smart key device and is sent to each smart key device, for example, a random number is generated, and each smart key device shares the random number, or a plurality of random numbers are generated, and a random number is allocated to each smart key device, that is, the keys received by each smart key device may be the same or different, and the storage module 123 of each smart key device stores the respective key received from the initialization device as a locally stored key; or
The random number calculated by the random number generator of the initialization device through a preset algorithm according to the respective sequence code of the intelligent key device serves as the key of each intelligent key device and is sent to each intelligent key device, and the storage module 123 of each intelligent key device stores the respective key received from the initialization device as a locally stored key; or
The random number generated by the random number generator of the initialization device, combined with the random number calculated by the respective sequence code of the smart key device through a preset algorithm, is used as the key of each smart key device and is sent to each smart key device, and the storage module 123 of each smart key device stores the respective key received from the initialization device as the locally stored key.
In an optional implementation manner in this embodiment, the generation module 112 of the initialization device 11 calculates the check code corresponding to each character information packet in the word library according to the key, or the generation module 125 of the smart key device 12 calculates the check code corresponding to each character information packet according to the key by at least one of the following manners:
the first method is as follows: calculating the check code of the character information packet through a CRC algorithm according to the secret key;
in this embodiment, a CRC (cyclic Redundancy Check) value of each character information packet is calculated in advance through a CRC algorithm, when the CRC value of each character information packet is calculated, all character information in the character information packet is combined into a bit sequence, and then the CRC value is calculated for the bit sequence, and then, a Check code library is formed by combining a key and the CRC value of each character information packet and using a value calculated through a preset algorithm as a Check code, and the Check code library is stored in the storage module 123 of each smart key device regardless of whether the Check code library is generated by an initialization device or a smart key device, where the storage module 123 may be a security chip. The check code library corresponds to each character information packet in the character library.
The second method comprises the following steps: calculating a check code of the character information packet by calculating an MAC value of the character information according to the secret key;
in this embodiment, the MAC value of each character packet is calculated in advance by calculating a MAC (Message Authentication Code) value of each character packet, when calculating the MAC value of each character packet, all the character information in the character packet is combined into a bit sequence, the MAC value of the bit sequence is calculated, the MAC value of each character packet is combined with a key, and the value calculated according to a preset algorithm is used as a check Code to form a check Code library, and the check Code library is stored in the storage module 123 of the smart key device regardless of whether the check Code library is generated by an initialization device or the smart key device itself, and the storage module 123 may be a security chip. The check code library corresponds to each character information packet in the character library.
The third method comprises the following steps: calculating the check code of the character information packet through a hash algorithm according to the secret key;
in this embodiment, the HASH value of each character information packet is calculated in advance through a HASH Algorithm (for example, MD5, Message Digest Algorithm, fifth version of Message Digest Algorithm), when calculating the HASH value of each character information packet, all the character information in the character information packet is combined into a bit sequence, then the HASH value is calculated for the bit sequence, the HASH value of each character information packet is combined with a key to form a check code according to a value calculated by a preset Algorithm, and the check code library is stored in the storage module 123 of the smart key device, where the storage module 123 may be a security chip. The check code library corresponds to each character information packet in the character library.
The method is as follows: and calculating the check code of the character information packet through an HOTP algorithm according to the key.
In this embodiment, the hot value of each character information packet is calculated in advance through an hot algorithm, when the hot value of each character information packet is calculated, all character information in the character information packet is combined into a bit sequence, then the hot value is calculated for the bit sequence, a check code library is formed by combining a key according to the hot value or by intercepting a part of the hot value of each character information packet and combining the key with a value calculated according to a preset algorithm, and the value is stored in the storage module 123 of the smart key device, where the storage module 123 may be a security chip. The check code library corresponds to each character information packet in the character library.
In an optional implementation manner in this embodiment, the packetizing module 111 generates one or more character information packets by grouping the character information in the word stock according to a preset policy by at least one of the following manners:
the first method is as follows: setting the number of character information forming one character information packet or the total number of the character information packets, and dividing all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
in the first mode, for example, assuming that the word library has 210 character information, it can be set that each character information packet contains 20 character information on average, and the word library is divided into 11 character information packets, and the last character information packet has 10 character information. Alternatively, the total number of character packets may be set to 10, and then, there are 21 character information per character packet on average. During the division, the character information can be divided into packets in sequence from 1 to 210, each character information packet can be randomly selected and formed, and the packets can be divided into packets in sequence according to strokes of Chinese characters.
The second method comprises the following steps: classifying character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and dividing the character information with the same category into a group;
in the second mode, for example, the word stock may be divided into 5 character information packets, where one character information packet includes character information corresponding to chinese characters, one character information packet includes character information corresponding to numeric characters, one character information packet includes character information corresponding to english alphabetic characters, one character information packet includes character information corresponding to symbols, and the last character information packet includes character information corresponding to special characters. In addition, if the Chinese characters are divided into simplified and traditional Chinese characters, the Chinese characters can be further divided into 6 character information packets, the character information corresponding to the simplified Chinese characters is divided into one character information packet, and the character information corresponding to the traditional Chinese characters is divided into another character information packet.
The third method comprises the following steps: dividing character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
in the third mode, for example, in the financial industry application, the frequency of displaying the combination of the two characters of the "gold" character and the "amount" character is very high (higher than the use of a preset threshold value, for example, the probability of the two characters of the "gold" and the "amount" appearing at the same time is greater than 40%), and when the character information in the word stock is packaged, the character information corresponding to the two kanji characters can be divided into one character information package. Similarly, there are "account", "number", "confirmation", etc., which are only illustrated here, and the embodiment is not limited specifically.
In actual transaction application, the intelligent key device sends the identification of the character information (the 'gold' word and the 'amount' word) to be displayed to the terminal. When finding that the character information (the golden character and the quota character) is in the same character information packet, the terminal only issues the character information packet to the intelligent key device, after receiving the character information packet, the intelligent key device verifies the received character information packet by using the locally stored key, and if the verification is passed, the terminal selects the character information of the golden character and the quota character to be displayed from the character information packet, and then the character information can be displayed according to the character information. By applying the sub-packaging mode under the strategy, the terminal only needs to send a character information packet, the transmission data volume is small, and the intelligent key equipment only needs to check one check code after receiving the character information packet, so that the operation can be completed, and the efficiency is higher. Specifically, the terminal may be a PC, a mobile terminal such as a mobile phone, or a remote background, the intelligent key device communicates with the terminal during a transaction, and each character information packet in the installed word stock may be downloaded in advance on the terminal.
The method is as follows: all Chinese characters in a character library are divided into a plurality of character roots, and character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value is divided into a group.
In the fourth mode, for example, all the Chinese characters can be divided into a plurality of radicals (e.g. a plurality of radicals, or a plurality of parts). The radicals with higher combination frequency (higher than the combination preset threshold value, for example, the combination frequency is greater than 40%) are combined in one character information packet, so that the individual character information in one character information packet can form a plurality of combinations to display a plurality of Chinese characters. For example, the Chinese characters ' Zhi ' Qing ' and ' Zheng ' are combined in a character information packet, so that the character information packet only occupies 1.5 Chinese characters, but can meet the display requirements of ' clear ' and ' quiet ' of 2 Chinese characters, thereby further saving space and improving efficiency. By the method, under the condition of meeting the display requirements of the same number of Chinese characters, the data volume of the character information packet can be greatly reduced.
In this embodiment, the initialization device performs packet combination on all the character information in the word stock, and the intelligent optimized combination mode provided by this embodiment can improve the efficiency of extracting the word stock by the intelligent key device, and at the same time, reduce the data amount transmitted between the terminal and the intelligent key device, and improve the transmission speed. Of course, the present embodiment excludes other ways of grouping and combining the character information in the word stock, and this is only an example.
Example 2
The present embodiment provides another word stock initialization system 10, as shown in fig. 1, which includes: an initialization device 11, and a smart key device 12 (e.g., workman U shield, farm K bank, etc.).
The difference between the present embodiment 2 and the word stock initialization system 10 provided in embodiment 1 is that: because the verification mode of the intelligent key device 12 for the character information packet is changed, the initialization device 11 only sends the public key of itself to the intelligent key device 12, the intelligent key device 12 stores the public key for verifying the character information packet, in addition, the initialization device 11 also needs to calculate each character information packet in the word stock according to the private key of itself to obtain the information to be verified, so that when the intelligent key device receives the character information packet and the corresponding information to be verified, the information to be verified can be verified.
As shown in fig. 2, the initialization apparatus 11 includes: a packetization module 111, a generation module 112, and a transmission module 113, wherein:
the sub-packet module 111 is configured to group all character information in the word stock according to a preset policy to generate one or more character information packets, and store the word stock composed of the one or more character information packets, where each character information packet includes at least two pieces of character information;
and the generating module 112 is configured to obtain a key, and calculate to-be-verified information of each character information packet of the word stock according to the key. Specifically, the secret key may be a private key of the initialization device 11, and the generation module 112 generates information to be verified for each character information packet in the word library by using the private key, where each character information packet corresponds to corresponding information to be verified, and when issuing each character information packet, the information to be verified and the corresponding information to be verified are issued to the smart key device.
A sending module 113, configured to send the authentication key associated with the key to the smart key device. Specifically, the verification key is a public key of the initialization device 11 and a private key pair, and the intelligent key device verifies the received information to be verified when the characters to be displayed need to be displayed.
The structure of the smart key device 12 in this embodiment is shown in fig. 3, where the receiving module 121 in the smart key device 12 is further configured to receive the public key sent by the initialization device 11, and the storing module 123 is further configured to store the public key.
In addition, other descriptions of the initialization device 11 and the smart key device 12 in the library initialization system 10 in embodiment 2 are similar to those in embodiment 1, and refer to the description in embodiment 1 specifically.
Example 3
The present embodiment provides a character display system 20, as shown in fig. 4, which includes: a terminal 13, and a smart key device 12 (e.g., a work station U shield, a farm K bank, etc.).
In this embodiment, the terminal 13 is configured to select, from multiple character information packets according to character information corresponding to a character to be displayed, a character information packet containing the character information corresponding to the character to be displayed, and send the character information packet to the smart key device 12, where the character information includes a matrix and a code corresponding to the character; the system includes one or more smart key devices 12, and at this time, terminal 13 may send a character packet only to one or some of several smart key devices 12, or may send a character packet to all smart key devices 12, and the terminal may send a character packet according to a request of a user or a request of a smart key device that needs to display characters. Specifically, the terminal may be a computer, a mobile phone, or a remote initialization device (such as a bank background). The intelligent key device communicates with the terminal in the transaction process, and each character information packet in the installed word stock can be downloaded in advance on the terminal.
And the intelligent key device 12 is configured to receive a character information packet sent by the terminal, verify the character information packet according to a locally stored key, select character information corresponding to a character to be displayed from the received character information packet if the verification is passed, and display the character to be displayed according to the selected character information.
FIG. 5 is a schematic diagram of a structure of one smart key device 12 of the several smart key devices in this embodiment, and as shown in FIG. 5, the smart key device 12 includes: a receiving module 121, a verification module 122, and a display module 124.
In this embodiment, the receiving module 121 is configured to receive a character information packet sent by the terminal 13, where the character information packet includes at least two pieces of character information; the verification module 122 is configured to verify the character information packet according to a locally stored key; and the display module 124 is configured to select character information corresponding to the character to be displayed from the received character information packet after the verification is passed, and display the character to be displayed according to the selected character information.
In an optional implementation manner of this embodiment, the verifying module 122 is configured to verify the character information packet according to a locally stored key, and includes: calculating a check code of a character information packet sent by the terminal according to a locally stored key; and comparing the calculated check code of the character information packet with the locally stored check code of the corresponding character information packet, and if the comparison is consistent, the verification is passed.
In an optional implementation manner of this embodiment, smart key device 12 further includes: a storage module 123, wherein:
the receiving module 121 is further configured to receive a key sent by the initialization device and a check code corresponding to each character information packet in the word stock; and the storage module 123 is configured to store the key and the check code corresponding to each character information packet in the word stock. In this embodiment, specifically, the storage module 123 further forms the stored check code into a check code library, where the check code library corresponds to each character information packet in the word library.
In an optional implementation manner of this embodiment, smart key device 12 further includes: a storage module 123 and a generation module 125, wherein: the generating module 125 is further configured to calculate, according to the locally stored key, a check code corresponding to each character information packet in the word stock of the initialization device; and the storage module 123 is configured to store the check code corresponding to each character information packet in the word stock. In this embodiment, specifically, the generating module 125 further forms the generated check code into a check code library, where the check code library corresponds to each character information packet in the word library.
In this embodiment, the key stored locally in the smart key device and the check code library calculated according to the key may be generated by each smart key device itself, or may be generated by the initialization device and sent to each smart key device. In this embodiment, the check codes corresponding to each character information packet in the word library pre-stored in the storage module 123 of the smart key device, that is, the generation manner of the check code library is the same as that of the 4 kinds of check code libraries described above, and details are not described here.
In this embodiment, the verification module 122 of the smart key device extracts, from each check code library, a check code corresponding to a character information packet containing character information corresponding to a character to be displayed, may find the check code corresponding to the character information packet according to a mapping relationship according to a code in the character information, or may find the corresponding check code according to an identifier of the character information packet, calculates, according to a locally stored key, a character information packet issued by the terminal by using a preset algorithm (the same as an algorithm for generating the check code library), obtains the check code of the character information packet issued by the terminal, compares the calculated check code with the extracted check code corresponding to the character information packet containing the character information corresponding to the character to be displayed, and if the comparison is the same, the display module 124 displays the character to be displayed.
In practical application, the smart key device needs to display characters "turn", "account", "gold" and "amount", the smart key device extracts the check code of the character information packet (possibly one character information packet or a plurality of character information packets) containing the character information corresponding to the characters "turn", "account", "gold" and "amount" from a pre-stored check code library, under normal conditions, one or more character information packets issued by the terminal should include the character information corresponding to the characters "turn", "account", "gold" and "amount", the smart key device calculates the check code according to the character information packet issued by the terminal, compares the calculated check code of the character information packet with the check code of the extracted character information packet, and displays the characters "turn", "account", "gold" and "amount" if the comparison result is consistent; otherwise, the terminal is modified when issuing the character information "forward", "account", "gold" and "amount", for example, modified to "receive", "benefit", "gold" and "amount", the check code is calculated according to the character information packet issued by the terminal, and when comparing the calculated check code of the character information packet with the extracted check code of the character information packet, the comparison result is inconsistent, so that the smart key device does not display or report an error, for example, display "error", or voice alarm, etc. By the verification method, the terminal can be prevented from being tampered under the condition of issuing the character information, and the safety is improved.
By the optional implementation mode, the word stock is not stored in the intelligent secret key equipment, but is stored in the initialization equipment, so that the storage space of the intelligent secret key equipment chip is greatly released; furthermore, since the initialization device stores the character information in the word stock in a packet manner, the intelligent key device only stores the check codes corresponding to the character information packets, namely, a plurality of pieces of character information (the plurality of pieces of character information form one character information packet) share one check code, so that the storage space of the intelligent key device is further saved. According to the character display system provided by the embodiment of the invention, the intelligent key equipment verifies the received character information packet through the locally stored check code, and the character to be displayed is displayed after the verification is passed, so that the character information data imported from the outside is ensured to be accurate and legal, and the character to be displayed is correctly displayed.
In an optional implementation manner in this embodiment, the terminal 13 is further configured to send a character information packet to each smart key device 12, and send information to be verified of the character information packet to the smart key device 12; authentication module 122 of smart key device 12, configured to authenticate the token packet according to the locally stored key, includes: and verifying the information to be verified of the character information packet according to the locally stored key. The information to be verified of the character information packet sent by the terminal is signature data obtained by the initialization equipment through signing the sent character information packet by using a private key of the initialization equipment.
In an optional implementation manner of this embodiment, smart key device 12 further includes: a storage module 123, configured to store a public key of the initialization device, that is, a locally stored key; the verification module 122 checks the signature of the signature data by using the public key of the initialization device, if the signature passes, the authentication passes, and the display module displays the characters to be displayed.
In practical application, the smart key device needs to display characters "turn", "account", "gold", and "amount", the initialization device for terminal acquisition uses its public key to sign the character information packet including the character information corresponding to the "turn", "account", "gold", and "amount" to obtain signature data, the smart key device uses the public key of the initialization device to check the signature data, and if the check passes, the smart key device displays "turn", "account", "gold", and "amount"; otherwise, the terminal is modified when issuing the character information "forward", "account", "gold", and "amount", for example, to "accept", "benefit", "gold", and "amount", and the smart key device checks the signature data with the public key of the initialization device, the check does not pass, and at this time, the smart key device does not display or report an error, for example, display an "error", or a voice alarm, and the like. By the verification method, the terminal can be prevented from being tampered under the condition of issuing the character information, and the safety is improved.
Through the optional implementation mode, not only the word stock but also the check codes of all the character information packets, namely the check code stock, are not required to be stored in the intelligent key device, and the character information data imported from the outside is ensured to be accurate and legal through the mode of verifying the information to be verified of the character information packets, so that the storage space of the chip of the intelligent key device is greatly released.
In an optional implementation manner of this embodiment, the displaying module 124 is configured to select character information corresponding to a character to be displayed from the received character information packet, and display the character to be displayed according to the selected character information, and includes:
and selecting a font corresponding to the character to be displayed from the received character information packet according to the code corresponding to the character to be displayed, and displaying the character to be displayed according to the font.
In an alternative implementation manner of this embodiment, the display module 124 may be a display screen for displaying characters to be displayed, or when the verification fails, displaying no or reporting an error, for example, displaying "error".
Specifically, after the display screen displays the characters, the storage module 123 of the smart key device deletes the received character information packet. By using the storage mode of the dynamic word stock, the character information data can be randomly taken without being stored in the intelligent secret key equipment all the time, and can be deleted after being used up, so that the storage space of the intelligent secret key equipment can be greatly released.
In an optional implementation manner of this embodiment, smart key device 12 further includes: a sending module 126 (not shown in the figure) for sending the code of the character information corresponding to the character to be displayed to the terminal.
In this embodiment, when the smart key device 12 needs to display characters, it may send a request to the terminal 13 storing the font library, where the request includes a code corresponding to the character to be displayed, and after receiving the request, the terminal may find a character information packet including the character corresponding to the code according to the code received from the smart key device, and send the character information packet including a matrix corresponding to the character to be displayed to the smart key device 12.
In an optional implementation manner in this embodiment, the terminal may issue a character information packet including character information corresponding to a character to be displayed according to a request of the smart key device, for example: the intelligent key equipment sends a code corresponding to a character to be displayed to the terminal, and the terminal sends a character information packet (with verification information for verifying the information to be verified and issuing the character information packet) containing a matrix corresponding to the character to be displayed to the intelligent key equipment according to the code corresponding to the character to be displayed; in another optional implementation manner in this embodiment, the terminal may also actively issue character information of characters to be displayed by the smart key device (for a manner of verifying information to be verified, it also issues verification information with a character information packet), for example: the terminal sends the character information packet and the internal code and the code of the character information of the character to be displayed (for the mode of verifying the information to be verified, the verification information with the character information packet is also sent) to the intelligent key device together.
In an optional implementation manner of this embodiment, the terminal is further configured to send, to the smart key device, an identifier of a character information packet that includes character information corresponding to a character to be displayed. The intelligent key equipment can find the check code corresponding to the character information packet according to the identification of the character information packet for comparison, and compared with the method of finding the corresponding check code through the character information, the method is faster, one character information is not required to be found, and the method can be achieved in one step.
Example 4
The present embodiment provides a font library initialization method applied to the font library initialization system 10 in embodiment 1.
Fig. 6 is a flowchart of a method for initializing a word stock according to this embodiment, and as shown in fig. 6, the method includes the following steps:
s601, the initialization equipment generates one or more character information packets according to the character information in the word stock in a grouping mode according to a preset strategy, wherein the character information packets comprise at least two pieces of character information;
in an optional implementation manner of this embodiment, the character may include: chinese characters (complex form, simplified form, etc.), numbers, letters, symbols, special characters, etc. The character information includes: the characters correspond to a type matrix and codes, and each character can be identified by the codes.
In an optional implementation manner of this embodiment, grouping the character information in the word stock according to a preset policy to generate one or more character information packets includes at least one of the following manners:
the first method is as follows: setting the number of character information forming one character information packet or the total number of the character information packets, and dividing all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
in the first mode, for example, assuming that the word library has 210 character information, it can be set that each character information packet contains 20 character information on average, and the word library is divided into 11 character information packets, and the last character information packet has 10 character information. Alternatively, the total number of character packets may be set to 10, and then, there are 21 character information per character packet on average. During the division, the character information can be divided into packets in sequence from 1 to 210, each character information packet can be randomly selected and formed, and the packets can be divided into packets in sequence according to strokes of Chinese characters.
The second method comprises the following steps: classifying character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and dividing the character information with the same category into a group;
in the second mode, for example, the word stock may be divided into 5 character information packets, where one character information packet includes character information corresponding to chinese characters, one character information packet includes character information corresponding to numeric characters, one character information packet includes character information corresponding to english alphabetic characters, one character information packet includes character information corresponding to symbols, and the last character information packet includes character information corresponding to special characters. In addition, if the Chinese characters are divided into simplified and traditional Chinese characters, the Chinese characters can be further divided into 6 character information packets, the character information corresponding to the simplified Chinese characters is divided into one character information packet, and the character information corresponding to the traditional Chinese characters is divided into another character information packet.
The third method comprises the following steps: dividing character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
in the third mode, for example, in the financial industry application, the frequency of displaying the combination of the two characters of the "gold" character and the "amount" character is very high (higher than the use of a preset threshold value, for example, the probability of the two characters of the "gold" and the "amount" appearing at the same time is greater than 40%), and when the character information in the word stock is packaged, the character information corresponding to the two kanji characters can be divided into one character information package. Similarly, there are "account", "number", "confirmation", etc., which are only illustrated here, and the embodiment is not limited specifically.
In actual transaction application, the intelligent key device sends the identification of the character information (the 'gold' word and the 'amount' word) to be displayed to the terminal. When finding that the character information (the golden character and the quota character) is in the same character information packet, the terminal only issues the character information packet to the intelligent key device, after receiving the character information packet, the intelligent key device verifies the received character information packet by using the locally stored key, and if the verification is passed, the terminal selects the character information of the golden character and the quota character to be displayed from the character information packet, and then the character information can be displayed according to the character information. By applying the sub-packaging mode under the strategy, the terminal only needs to send a character information packet, the transmission data volume is small, and the intelligent key equipment only needs to check one check code after receiving the character information packet, so that the operation can be completed, and the efficiency is higher. Specifically, the terminal may be a PC, a mobile terminal such as a mobile phone, or a remote background, the intelligent key device communicates with the terminal during a transaction, and each character information packet in the installed word stock may be downloaded in advance on the terminal.
The method is as follows: all Chinese characters in a character library are divided into a plurality of character roots, and character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value is divided into a group.
In the fourth mode, for example, all the Chinese characters can be divided into a plurality of radicals (e.g. a plurality of radicals, or a plurality of parts). The radicals with higher combination frequency (higher than the combination preset threshold value, for example, the combination frequency is greater than 40%) are combined in one character information packet, so that the individual character information in one character information packet can form a plurality of combinations to display a plurality of Chinese characters. For example, the Chinese characters ' Zhi ' Qing ' and ' Zheng ' are combined in a character information packet, so that the character information packet only occupies 1.5 Chinese characters, but can meet the display requirements of ' clear ' and ' quiet ' of 2 Chinese characters, thereby further saving space and improving efficiency. By the method, under the condition of meeting the display requirements of the same number of Chinese characters, the data volume of the character information packet can be greatly reduced.
S602, the initialization equipment acquires a key, calculates a check code corresponding to each character information packet of the word stock according to the key, and sends the key and the corresponding check code to intelligent key equipment;
in an optional implementation manner of this embodiment, the key includes a same key or multiple different keys, and the smart key device includes at least two keys; the keys received by the various smart key devices may be the same key or different keys. In this alternative embodiment, multiple smart key devices may share a single key or may use different keys.
In this embodiment, specifically, the initialization device may further form a check code library with the generated check codes, where the check code library corresponds to each character information packet in the word library.
S603, the intelligent key device receives and stores the key and the check code corresponding to each character information packet in the word stock.
In the library initialization method provided in FIG. 6, a key and a checksum are computationally generated by an external device (initialization device) of the smart key device, and the smart key device locally stores the key and checksum.
Fig. 7 is a flowchart of another word stock initialization method provided in this embodiment, and as shown in fig. 7, the method includes the following steps:
s701, the initialization equipment generates one or more character information packets for the character information in the word stock according to a preset strategy group, wherein the character information packets comprise at least two character information;
s701 is the same as step S601, and is not described herein again.
S702, the initialization equipment sends each character information packet in the word stock to the intelligent secret key equipment;
and S703, the intelligent secret key equipment calculates and stores the check code corresponding to each character information packet of the word stock according to the locally stored secret key.
In this embodiment, specifically, the smart key device further forms the generated check code into a check code library, where the check code library corresponds to each character information packet in the word library.
In the method of library initialization provided in FIG. 7, the verification code library is generated by the smart key device itself, and the external device (initialization device 11) merely provides the library.
In this embodiment, in the library initialization method provided in fig. 6 and 7, the key locally stored in each smart key device and the check code library calculated based on the key may be generated by each smart key device itself (the method in fig. 7), or may be generated by the initialization device terminal and sent to each smart key device (the method in fig. 6). For each smart key device, the key of each smart key device may be different, and the adopted preset algorithm may also be different, so that each smart key device may form a different check code library. In addition, optionally, each smart key device may further configure a mapping relationship table of a check code and a character information packet or character information, and in the mapping relationship table, a corresponding check code may be found according to an identifier of the character information packet or the character information, where each check code corresponds to one character information packet, and a plurality of character information included in the corresponding character information packet, that is, a plurality of character information (one character information packet) share one check code.
In an alternative implementation manner of this embodiment, the key stored locally by the smart key device (either stored by the initiating device generating the smart key device, or generated by the smart key device itself) is generated by:
the intelligent secret key equipment calculates a random secret key as a secret key for local storage through a preset algorithm according to the sequence code of the intelligent secret key equipment; or
The intelligent key equipment is provided with a random number generator, and random numbers generated by the random number generator are used as a random key and are stored; or
The intelligent key equipment is provided with a random number generator, and a random key is calculated as a locally stored key through a preset algorithm according to a random number generated by the random number generator and the sequence code of the intelligent key equipment; or
The random number generated by the random number generator of the initialization device is used as the key of each smart key device and is sent to each smart key device, for example, a random number is generated, each smart key device shares the random number, or a plurality of random numbers are generated, and each smart key device is allocated with a random number, that is, the keys received by each smart key device may be the same or different, and each smart key device stores the respective key received from the initialization device as a locally stored key; or
The random number calculated by the random number generator of the initialization equipment according to the respective sequence code of the intelligent key equipment through a preset algorithm is used as the key of each intelligent key equipment and is sent to each intelligent key equipment, and each intelligent key equipment stores the respective key received from the initialization equipment as a locally stored key; or
The random number generated by the random number generator of the initialization equipment, combined with the random number calculated by the respective sequence code of the intelligent key equipment through a preset algorithm, is used as the key of each intelligent key equipment and is sent to each intelligent key equipment, and each intelligent key equipment stores the respective key received from the initialization equipment as the locally stored key.
In an optional implementation manner in this embodiment, the initialization device calculates the check code corresponding to each character information packet in the word library according to the key, or the smart key device calculates the check code corresponding to each character information packet according to the key by at least one of the following manners:
the first method is as follows: calculating the check code of the character information packet through a CRC algorithm according to the secret key;
in this embodiment, a CRC (cyclic Redundancy Check) value of each character information packet is calculated in advance through a CRC algorithm, when the CRC value of each character information packet is calculated, all character information in the character information packet is combined into a bit sequence, a CRC value is calculated for the bit sequence, and then, a Check code library is formed by combining a key and the CRC value of each character information packet and using a value calculated through a preset algorithm as a Check code, where the Check code library corresponds to each character information packet in a word library.
The second method comprises the following steps: calculating a check code of the character information packet by calculating an MAC value of the character information according to the secret key;
in this embodiment, the MAC value of each character packet is calculated in advance by calculating a MAC (Message Authentication Code) value of the character packet, when calculating the MAC value of each character packet, all the character information in the character packet is combined into a bit sequence, the MAC value of the bit sequence is calculated, the MAC value of each character packet is combined with a value calculated by a key according to a preset algorithm to form a check Code library, and the check Code library corresponds to each character packet in the word library.
The third method comprises the following steps: calculating the check code of the character information packet through a hash algorithm according to the secret key;
in this embodiment, HASH values of the respective character information packets are calculated in advance through a HASH Algorithm (for example, MD5, Message Digest Algorithm, fifth version of Message Digest Algorithm), when calculating the HASH value of each character information packet, all the character information in the character information packet are combined into a bit sequence, then the HASH value is calculated for the bit sequence, the HASH value of each character information packet is combined with a key, and a value calculated according to a preset Algorithm is used as a check code, so as to form a check code library, where the check code library corresponds to each character information packet in the word library.
The method is as follows: and calculating the check code of the character information packet through an HOTP algorithm according to the key.
In this embodiment, the hot value of each character information packet is calculated in advance through an hot algorithm, when the hot value of each character information packet is calculated, all character information in the character information packet is combined into a bit sequence, then the hot value is calculated for the bit sequence, a check code library is formed according to the hot value in combination with a key or by intercepting a part of the hot value of each character information packet in combination with a value calculated by the key according to a preset algorithm, and the check code library corresponds to each character information packet in the word library.
By the word stock initialization method provided by fig. 7 and 8 in the embodiment of the present invention, the word stock is not stored in the intelligent key device, but the word stock is stored in the initialization device, which greatly releases the storage space of the intelligent key device chip; furthermore, since the initialization device stores the character information in the word stock in a packet manner, the intelligent key device only stores the check codes corresponding to the character information packets, namely, a plurality of pieces of character information (the plurality of pieces of character information form one character information packet) share one check code, so that the storage space of the intelligent key device is further saved.
Fig. 8 is a flowchart of another word stock initialization method provided in this embodiment, and as shown in fig. 8, the method includes the following steps:
s801, the initialization equipment generates one or more character information packets for the character information in the word stock according to a preset strategy group, wherein the character information packets comprise at least two character information;
s801 is the same as step S601, and is not described herein again.
S802, initializing equipment to obtain a secret key, and calculating to-be-verified information of each character information packet of the word stock according to the secret key;
specifically, initializing the obtained secret key as a private key thereof, and calculating each character information packet in the word stock by using the private key of the initialization equipment to generate corresponding information to be verified;
s803, the initialization device sends the verification key related to the key to the intelligent key device;
in particular, the authentication key associated with the key is the public key of the initialization device. Wherein, the step S802 and the step S803 are not in sequence.
S804, the intelligent key device receives and stores the verification key related to the key sent by the initialization device.
By the method for initializing the word stock provided by the embodiment of the invention in fig. 8, not only the word stock is not stored in the intelligent key device, but also the check code of each character information packet, namely the check code stock, is not stored, and the character information data imported from the outside is ensured to be accurate and legal by verifying the information to be verified of the character information packet, so that the storage space of the chip of the intelligent key device is greatly released.
Example 5
The present embodiment provides a character display method applied to the character display system 20 in embodiment 3.
Taking an example that a terminal issues a character information packet to one of a plurality of intelligent key devices, fig. 9 is a flowchart of a character display method provided in this embodiment, and as shown in fig. 9, the method includes the following steps:
s901, selecting a character information packet containing character information corresponding to a character to be displayed from a plurality of character information packets by a terminal according to the character information corresponding to the character to be displayed, and sending the character information packet to intelligent key equipment, wherein the character information packet contains at least two pieces of character information;
specifically, the terminal may be a computer, a mobile phone, or a remote initialization device. The intelligent key device communicates with the terminal in the transaction process, and each character information packet in the installed word stock and the related information to be verified can be downloaded in advance on the terminal. In an optional implementation manner of this embodiment, the character may include: chinese characters (complex form, simplified form, etc.), numbers, letters, symbols, special characters, etc. The character information comprises a character matrix and a code corresponding to the character; the type matrix can be internal code, area code or customized type matrix, and both the terminal 13 and the smart key device 12 can recognize characters and the type matrix corresponding to the characters through uniformly set codes, for example: the characters and the matrices corresponding to the characters are identified by international codes of the characters, which is not limited in this embodiment. In addition, the terminal 13 and the smart key device 12 may also recognize the character packets by unifying the set identifiers of the character packets, for example, by identifying each character packet by assigning a serial number to each character packet when packetizing the word stock, which is not limited in this embodiment. Therefore, the terminal and the intelligent key device can mutually recognize the code of the character information sent by the other party and the identification of the character information packet.
In an optional implementation manner in this embodiment, the terminal may issue a character information packet including character information corresponding to a character to be displayed according to a request of the smart key device, for example: the intelligent key equipment sends a code corresponding to the character to be displayed to the terminal, and the terminal sends a character information packet containing a matrix corresponding to the character to be displayed to the intelligent key equipment according to the code corresponding to the character to be displayed; in another optional implementation manner in this embodiment, the terminal may also actively issue character information of characters to be displayed by the smart key device, for example: the terminal sends the character information packet and the internal code and the code of the character information of the character to be displayed to the intelligent key device together, or also sends the identification of the character information packet to the intelligent key device together. Of course, the terminal may issue character packets containing character information corresponding to the characters to be displayed to the smart key device one by one, or may issue a plurality of character packets containing character information corresponding to the characters to be displayed to the smart key device at the same time.
In this embodiment, each character information packet in the word stock may be stored in the terminal, and the mode of issuing the character to be displayed by the terminal provided in this embodiment can improve the efficiency of extracting the word stock by the intelligent key device, and at the same time, reduce the amount of data transmitted between the terminal and the intelligent key device, and improve the transmission speed.
S902, the intelligent key equipment verifies the character information packet according to the locally stored key;
as an optional implementation manner in this embodiment, step S902 may be implemented by:
the intelligent key equipment calculates the check code of the character information packet sent by the terminal according to the locally stored key;
and the intelligent key equipment compares the calculated check code of the character information packet with the locally stored check code of the corresponding character information packet, and if the comparison is consistent, the verification is passed.
In this alternative embodiment, the check code (i.e., the check code library) stored in the smart key device corresponds to each character information packet stored in the terminal.
In this alternative embodiment, the key obtaining manner stored locally by the smart key device may be the key obtaining manner mentioned in the word stock initialization method provided in fig. 7 and fig. 8, and will not be described herein again. In addition, the check code of the character information packet sent by the intelligent key device according to the locally stored key calculation terminal can be realized by at least one of the following modes:
the first method is as follows: the intelligent key equipment calculates the check code of the character information packet sent by the terminal through a CRC algorithm according to a locally stored key;
in this embodiment, each smart key device calculates a CRC value of each character information packet in advance through a CRC (cyclic Redundancy Check) algorithm, when calculating the CRC value of each character information packet, first combines all character information in the character information packet into a bit sequence, calculates the CRC value for the bit sequence, and then forms a Check code library by using a value calculated through a preset algorithm as a Check code in combination with a random number of each smart key device as a locally stored key and the CRC value of each character information packet, and stores the Check code library in a security chip of each smart key device. The check code library corresponds to a character library of the character information packet stored in the terminal.
The second method comprises the following steps: the intelligent key equipment calculates the check code of a character information packet sent by the terminal by calculating the MAC value of the character information according to a locally stored key;
in this embodiment, the smart key device calculates the MAC value of each character packet in advance by calculating a MAC (Message Authentication Code) value of each character packet, when calculating the MAC value of each character packet, first combines all character information in the character packets into a bit sequence, calculates the MAC value of the bit sequence, and combines the MAC value of each character packet with a locally stored key to calculate a value according to a preset algorithm as a check Code, thereby forming a check Code library to be stored in the security chip of the smart key device. The check code library corresponds to a character library of the character information packet stored in the terminal.
The third method comprises the following steps: the intelligent secret key equipment calculates the check code of the character information packet sent by the terminal through a hash algorithm according to the secret key stored locally;
in this embodiment, the smart key device calculates the HASH value of each character information packet in advance through a HASH Algorithm (for example, MD5, Message Digest Algorithm, fifth version of Message Digest Algorithm), when calculating the HASH value of each character information packet, first combines all the character information in the character information packet into a bit sequence, then calculates the HASH value for the bit sequence, and combines the HASH value of each character information packet with a locally stored key to form a check code library and store the check code library in the security chip of the smart key device according to the value calculated by the preset Algorithm. The check code library corresponds to a character library of the character information packet stored in the terminal.
The method is as follows: and the intelligent secret key equipment calculates the check code of the character information packet sent by the terminal through an HOTP algorithm according to the locally stored secret key.
In this embodiment, the intelligent key device calculates the hot value of each character information packet in advance through an hot algorithm, when calculating the hot value of each character information packet, combines all character information in the character information packet into a bit sequence, calculates the hot value for the bit sequence, combines the locally stored key according to the hot value or intercepts a part of the hot value of each character information packet and combines the locally stored key to calculate a value according to a preset algorithm as a check code, and forms a check code library to be stored in a security chip of the intelligent key device. The check code library corresponds to a character library of the character information packet stored in the terminal.
In practical application, the smart key device needs to display characters "turn", "account", "gold" and "amount", the smart key device extracts the check code of the character information packet (possibly one character information packet or a plurality of character information packets) containing the character information corresponding to the characters "turn", "account", "gold" and "amount" from a pre-stored check code library, under normal conditions, one or more character information packets issued by the terminal should include the character information corresponding to the characters "turn", "account", "gold" and "amount", the smart key device calculates the check code according to the character information packet issued by the terminal, compares the calculated check code of the character information packet with the check code of the extracted character information packet, and displays the characters "turn", "account", "gold" and "amount" if the comparison result is consistent; otherwise, the terminal is modified to receive and benefit after being tampered when issuing the character information of forwarding and accounting, the check code is calculated according to the character information packet issued by the terminal, when the check code of the character information packet obtained by calculation is compared with the check code of the extracted character information packet, the comparison result is inconsistent, and the verification is not passed. By the comparison method, the terminal can be prevented from being tampered under the condition of issuing character information, and the safety is improved.
Through the optional mode, the word stock is not stored in the intelligent secret key equipment, but is stored in the initialization equipment, so that the storage space of the intelligent secret key equipment chip is greatly released; furthermore, since the initialization device stores the character information in the word stock in a packet manner, the intelligent key device only stores the check codes corresponding to the character information packets, namely, a plurality of pieces of character information (the plurality of pieces of character information form one character information packet) share one check code, so that the storage space of the intelligent key device is further saved. According to the character display system provided by the embodiment of the invention, the intelligent key equipment verifies the received character information packet through the locally stored check code, and the character to be displayed is displayed after the verification is passed, so that the character information data imported from the outside is ensured to be accurate and legal, and the character to be displayed is correctly displayed.
As another optional implementation manner in this embodiment, in step S901, the terminal further sends information to be verified of the character information packet to the smart key device; in step S902, the smart key device verifies the character information packet according to the locally stored key, including: and the intelligent key equipment verifies the information to be verified of the character information packet according to a locally stored key.
In this optional embodiment, the information to be verified of the character information packet sent by the terminal is signature data obtained by the initialization device signing the sent character information packet with its private key. The locally stored key is a public key of the initialization device, the intelligent key device verifies the signature of the signature data by using the public key of the initialization device, and if the signature passes, the authentication passes.
In practical application, the smart key device needs to display characters "turn", "account", "gold", and "amount", the initialization device for terminal acquisition uses its public key to sign the character information packet including the character information corresponding to the "turn", "account", "gold", and "amount" to obtain signature data, the smart key device uses the public key of the initialization device to check the signature data, and if the check passes, the smart key device displays "turn", "account", "gold", and "amount"; otherwise, the terminal is modified when issuing the character information "forward", "account", "gold", and "amount", for example, to "accept", "benefit", "gold", and "amount", and the smart key device checks the signature data with the public key of the initialization device, the check does not pass, and at this time, the smart key device does not display or report an error, for example, display an "error", or a voice alarm, and the like. By the verification method, the terminal can be prevented from being tampered under the condition of issuing the character information, and the safety is improved.
Through the optional implementation mode, not only the word stock but also the check codes of all the character information packets, namely the check code stock, are not required to be stored in the intelligent key device, and the character information data imported from the outside is ensured to be accurate and legal through the mode of verifying the information to be verified of the character information packets, so that the storage space of the chip of the intelligent key device is greatly released.
And S903, if the verification is passed, the intelligent key device selects character information corresponding to the character to be displayed from the received character information packet, and displays the character to be displayed according to the selected character information.
In an optional implementation manner of this embodiment, step S903 specifically includes: and selecting a font corresponding to the character to be displayed from the received character information packet according to the code corresponding to the character to be displayed, and displaying the character to be displayed according to the font.
Specifically, if the authentication is not passed, the smart key device does not display or report an error, such as displaying an "error," or a voice alarm, etc.
Specifically, after the intelligent key device displays the characters, the received character information packet is deleted. By using the storage mode of the dynamic word stock, the character information data can be randomly taken without being stored in the intelligent secret key equipment all the time, and can be deleted after being used up, so that the storage space of the intelligent secret key equipment can be greatly released.
Example 6
The present embodiment provides a character display method applied to the character display system 20 in embodiment 3.
Fig. 10 is a flowchart of the character display method provided in this embodiment, and as shown in fig. 10, the method includes the following steps:
s1001, an intelligent secret key device receives a character information packet sent by a terminal, wherein the character information packet comprises at least two pieces of character information;
specifically, the terminal may be a computer, a mobile phone, or a remote initialization device. The intelligent key device communicates with the terminal in the transaction process, and each character information packet in the word stock can be downloaded and installed in advance on the terminal.
S1002, the intelligent secret key device calculates the check code of the character information packet sent by the terminal according to the locally stored secret key;
in this embodiment, the key locally stored in each smart key device and the check code library calculated according to the key may be generated by each smart key device itself, or generated by an external device terminal and sent to each smart key device. In this embodiment, the manner of calculating the check code of the character information packet sent by the terminal according to the locally stored key by the intelligent key device is the same as that in step S902, and details are not described here.
S1003, the intelligent key equipment compares the check code of the character information packet obtained by calculation with the check code of the corresponding character information packet stored locally; and if the comparison is consistent, selecting a character die corresponding to the character to be displayed from the received character information packet, and displaying the character corresponding to the character die.
In this embodiment, the check code locally stored in the smart key device corresponds to each character information packet stored in the terminal, and specifically, the check code locally stored in the smart key device may form a check code library, and the check code library corresponds to a word library of the character information packet stored in the terminal.
In this embodiment, other descriptions of the terminal and the smart key device are similar to those in embodiments 4 and 5, and refer to the description in embodiment 3 specifically.
In practical application, the smart key device needs to display characters "turn", "account", "gold" and "amount", the smart key device extracts the check code of the character information packet (possibly one character information packet or a plurality of character information packets) containing the character information corresponding to the characters "turn", "account", "gold" and "amount" from a pre-stored check code library, under normal conditions, one or more character information packets issued by the terminal should include the character information corresponding to the characters "turn", "account", "gold" and "amount", the smart key device calculates the check code according to the character information packet issued by the terminal, compares the calculated check code of the character information packet with the check code of the extracted character information packet, and displays the characters "turn", "account", "gold" and "amount" if the comparison result is consistent; otherwise, the terminal is modified to receive and benefit after being tampered when issuing the character information of forwarding and accounting, the check code is calculated according to the character information packet issued by the terminal, when the check code of the character information packet obtained through calculation is compared with the check code of the extracted character information packet, the comparison result is inconsistent, and the verification is not passed, so that the intelligent key device does not display or report errors, such as display errors or voice alarms. By the comparison method, the terminal can be prevented from being tampered under the condition of issuing character information, and the safety is improved.
By the character display method provided by embodiment 6 of the present invention, the word stock is not stored in the smart key device, but stored in the initialization device, which greatly releases the storage space of the smart key device chip; furthermore, since the initialization device stores the character information in the word stock in a packet manner, the intelligent key device only stores the check codes corresponding to the character information packets, namely, a plurality of pieces of character information (the plurality of pieces of character information form one character information packet) share one check code, so that the storage space of the intelligent key device is further saved. According to the character display system provided by the embodiment of the invention, the intelligent key equipment verifies the received character information packet through the locally stored check code, and the character to be displayed is displayed after the verification is passed, so that the character information data imported from the outside is ensured to be accurate and legal, and the character to be displayed is correctly displayed.
Example 7
The present embodiment provides another character display method applied to the character display system 20 in embodiment 3.
The present embodiment 7 differs from embodiment 6 in that: the manner in which the smart key device authenticates the character information package changes. The terminal needs to send the information to be verified of the character information packet besides sending the character information packet to each intelligent key device, and the intelligent key device 12 only needs to verify the information to be verified without storing a check code library, and displays the characters to be displayed after verification.
Taking an example that a terminal issues a character information packet to one of a plurality of intelligent key devices, fig. 11 is a flowchart of a character display method provided in this embodiment, and as shown in fig. 11, the method includes the following steps:
s1101, receiving a character information packet and information to be verified of the character information packet sent by a terminal by the intelligent key equipment, wherein the character information packet comprises at least two pieces of character information;
as an optional implementation manner in this embodiment, the information to be verified of the character information packet sent by the terminal may be signature data obtained by the initialization device signing the character information packet with its private key. Specifically, the terminal may be a computer, a mobile phone, or a remote initialization device. The intelligent key device communicates with the terminal in the transaction process, and each character information packet in the installed word stock and the related information to be verified can be downloaded in advance on the terminal.
S1102, the intelligent secret key equipment verifies the information to be verified of the character information packet according to the locally stored secret key;
as an optional implementation manner in this embodiment, the information to be verified of the character information packet sent by the terminal is signature data obtained by the initialization device signing the character information packet with its private key, the key stored in the smart key device is a public key of the initialization device, the smart key device verifies the signature of the signature data with the public key of the initialization device, and if the signature verification passes, the authentication passes.
S1103, if the verification is passed, selecting character information corresponding to the character to be displayed from the received character information packet according to the identification code of the character information corresponding to the character to be displayed, and displaying the character corresponding to the character information.
In this embodiment, other descriptions of the terminal and the smart key device are similar to those in embodiments 4 and 5, and refer to the description in embodiment 3 specifically.
In practical application, taking the mode of passing asymmetric key verification as an example, the smart key device needs to display characters "turn", "account", "gold", and "amount", the terminal signs a character information packet including character information corresponding to the "turn", "account", "gold", and "amount" with its public key to obtain signature data, the smart key device verifies the signature data with the public key of the terminal, and if the signature passes, the smart key device displays "turn", "account", "gold", and "amount"; otherwise, the terminal is modified when issuing the character information "forward", "account", "gold", and "amount", for example, to "accept", "benefit", "gold", and "amount", and the smart key device checks the signature data with the public key of the terminal, the check does not pass, and at this time, the smart key device does not display or report an error, for example, display "error", or voice alarm, etc. By the verification method, the terminal can be prevented from being tampered under the condition of issuing the character information, and the safety is improved.
According to the character display method provided by the embodiment of the invention, not only the character library but also the check code of each character information packet, namely the check code library, are not stored in the intelligent key device, and the character information data imported from the outside is ensured to be accurate and legal by means of verifying the information to be verified of the character information packet, so that the storage space of the chip of the intelligent key device is greatly released.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (33)

1. A method for initializing a word stock, comprising:
the method comprises the steps that initialization equipment groups character information in a word stock according to a preset strategy to generate one or more character information packets, wherein the character information packets comprise at least two pieces of character information;
the initialization equipment acquires a secret key, calculates a check code corresponding to each character information packet of the word stock according to the secret key, and sends the secret key and the corresponding check code to intelligent secret key equipment; the intelligent key equipment receives and stores the key and the check code corresponding to each character information packet in the word stock;
or the initialization equipment sends each character information packet in the word stock to the intelligent key equipment; and the intelligent key equipment calculates and stores the check code corresponding to each character information packet of the word stock according to the locally stored key.
2. The method of claim 1,
the intelligent key equipment comprises at least two intelligent key equipment, and the keys received by each intelligent key equipment are the same key or different keys.
3. The method of claim 1 or 2,
the initialization equipment generates one or more character information packets for all character information in the word stock according to a preset strategy group, and the method comprises at least one of the following modes:
the initialization equipment sets the number of character information forming one character information packet or the total number of the character information packets, and divides all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
the initialization equipment classifies character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and divides the character information with the same category into a group;
the initialization equipment divides character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
the initialization equipment divides all Chinese characters in the character library into a plurality of character roots, and divides character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value into a group.
4. The method of claim 1 or 2,
the character information includes: the character corresponds to the type matrix and the code.
5. A method for initializing a word stock, comprising:
the method comprises the steps that initialization equipment generates one or more character information packets for all character information in a word stock according to a preset strategy in a grouping mode, wherein the character information packets comprise at least two character information;
and the initialization equipment acquires a secret key and calculates to-be-verified information of each character information packet of the word stock according to the secret key.
6. The method of claim 5, wherein the method further comprises:
the initialization equipment also sends the verification key related to the key to the intelligent key equipment, and the intelligent key equipment receives and stores the verification key related to the key sent by the initialization equipment.
7. The method of claim 5 or 6,
the initialization equipment generates one or more character information packets for all character information in the word stock according to a preset strategy group, and the method comprises at least one of the following modes:
the initialization equipment sets the number of character information forming one character information packet or the total number of the character information packets, and divides all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
the initialization equipment classifies character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and divides the character information with the same category into a group;
the initialization equipment divides character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
the initialization equipment divides all Chinese characters in the character library into a plurality of character roots, and divides character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value into a group.
8. The method of claim 5 or 6,
the character information includes: the character corresponds to the type matrix and the code.
9. A character display method, comprising:
the method comprises the steps that intelligent secret key equipment receives a character information packet sent by a terminal, wherein the character information packet comprises at least two pieces of character information;
the intelligent key equipment verifies the character information packet according to a locally stored key, if the verification is passed, character information corresponding to the character to be displayed is selected from the received character information packet, and the character to be displayed is displayed according to the selected character information;
the intelligent key device verifies the character information packet according to a locally stored key, and the verification comprises the following steps:
the intelligent secret key equipment calculates the check code of the character information packet sent by the terminal according to the secret key stored locally;
and the intelligent key equipment compares the calculated check code of the character information packet with the locally stored check code of the corresponding character information packet, and if the comparison is consistent, the verification is passed.
10. A character display method, comprising:
the method comprises the steps that a terminal selects a character information packet containing character information corresponding to characters to be displayed from a plurality of character information packets according to the character information corresponding to the characters to be displayed, and sends the character information packet to intelligent key equipment, wherein the character information packet contains at least two pieces of character information;
the intelligent key equipment receives the character information packet sent by the terminal, verifies the character information packet according to a locally stored key, selects character information corresponding to the character to be displayed from the received character information packet if the verification is passed, and displays the character to be displayed according to the selected character information;
the intelligent key device verifies the character information packet according to a locally stored key, and the verification comprises the following steps:
the intelligent secret key equipment calculates the check code of the character information packet sent by the terminal according to the secret key stored locally;
and the intelligent key equipment compares the calculated check code of the character information packet with the locally stored check code of the corresponding character information packet, and if the comparison is consistent, the verification is passed.
11. The method of claim 9 or 10,
the method further comprises the following steps: the intelligent key equipment receives to-be-verified information of a character information packet sent by the terminal;
the intelligent key device verifies the character information packet according to a locally stored key, and the verification comprises the following steps:
and the intelligent key equipment verifies the information to be verified of the character information packet according to a locally stored key.
12. The method of claim 9 or 10,
the character information includes: the character module and the code corresponding to the character;
the selecting character information corresponding to the character to be displayed from the received character information packet, and displaying the character to be displayed according to the selected character information, includes:
and selecting a font corresponding to the character to be displayed from the received character information packet according to the code corresponding to the character to be displayed, and displaying the character to be displayed according to the font.
13. The method of claim 11,
the character information includes: the character module and the code corresponding to the character;
the selecting character information corresponding to the character to be displayed from the received character information packet, and displaying the character to be displayed according to the selected character information, includes:
and selecting a font corresponding to the character to be displayed from the received character information packet according to the code corresponding to the character to be displayed, and displaying the character to be displayed according to the font.
14. The method of claim 12,
before the smart key device receives the character information packet sent by the terminal, the method further comprises the following steps: the intelligent key equipment sends the codes corresponding to the characters to be displayed to the terminal;
and the terminal sends a character information packet containing a matrix corresponding to the character to be displayed to the intelligent key equipment according to the code corresponding to the character to be displayed.
15. The method of claim 12, wherein the method further comprises:
and the terminal also sends the identifier of the character information packet containing the character information corresponding to the character to be displayed to the intelligent key equipment.
16. An initialization apparatus, comprising:
the sub-packaging module is used for grouping all character information in the word stock according to a preset strategy to generate one or more character information packages, and each character information package comprises at least two pieces of character information;
the generating module is used for acquiring a secret key and calculating a check code corresponding to each character information packet in the word stock according to the secret key;
and the sending module is used for sending the key and the corresponding check code to the intelligent key equipment.
17. The initialization apparatus of claim 16,
the keys comprise the same key or a plurality of different keys, and the intelligent key equipment comprises at least two keys;
the sending module is configured to send the key and the corresponding check code to the smart key device, and includes:
the sending module is used for sending the same key and the corresponding check code to each intelligent key device; or, a plurality of different keys and corresponding check codes are sent to the respective smart key devices.
18. The initialization apparatus of claim 16 or 17,
the sub-packaging module generates one or more character information packages by grouping all the character models in the character library according to a preset strategy through at least one of the following modes:
setting the number of character information forming one character information packet or the total number of the character information packets, and dividing all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
classifying character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and dividing the character information with the same category into a group;
dividing character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
and splitting all Chinese characters in the character library into a plurality of character roots, and dividing character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value into a group.
19. The initialization apparatus of claim 16 or 17,
the character information includes: the character corresponds to the type matrix and the code.
20. An initialization apparatus, comprising:
the sub-packet module is used for grouping all character information in the word stock according to a preset strategy to generate one or more character information packets and storing the word stock consisting of the one or more character information packets, wherein the character information packets comprise at least two pieces of character information;
and the generating module is used for acquiring a secret key and calculating to-be-verified information of each character information packet of the word stock according to the secret key.
21. The initialization apparatus of claim 20, further comprising:
and the sending module is used for sending the verification key related to the key to the intelligent key equipment.
22. The initialization apparatus of claim 20 or 21,
the sub-packaging module generates one or more character information packages by grouping all the character models in the character library according to a preset strategy through at least one of the following modes:
setting the number of character information forming one character information packet or the total number of the character information packets, and dividing all the character information in the word stock into one or more character information packets in sequence or at random according to the number of the character information forming one character information packet or the total number of the character information packets;
classifying character information in a word stock according to Chinese characters, numbers, letters, symbols and special characters, and dividing the character information with the same category into a group;
dividing character information corresponding to characters of which the simultaneous use frequency is higher than a preset threshold into a group according to industry habits;
and splitting all Chinese characters in the character library into a plurality of character roots, and dividing character information corresponding to the character roots with the combination frequency higher than a combination preset threshold value into a group.
23. The initialization apparatus of claim 20 or 21,
the character information includes: the character corresponds to the type matrix and the code.
24. A smart key device, comprising:
the receiving module is used for receiving a character information packet sent by a terminal, wherein the character information packet comprises at least two pieces of character information;
the verification module is used for verifying the character information packet according to a locally stored key;
and the display module is used for selecting character information corresponding to the character to be displayed from the received character information packet after the verification is passed, and displaying the character to be displayed according to the selected character information.
25. The smart key device of claim 24,
the verification module is configured to verify the character information packet according to a locally stored key, and includes:
calculating a check code of a character information packet sent by the terminal according to a locally stored key;
and comparing the calculated check code of the character information packet with the locally stored check code of the corresponding character information packet, and if the comparison is consistent, the verification is passed.
26. The smart key device of claim 24,
the receiving module is also used for receiving the information to be verified of the character information packet sent by the terminal;
the verification module is configured to verify the character information packet according to a locally stored key, and includes:
and verifying the information to be verified of the character information packet according to a locally stored key.
27. The smart key device of any one of claims 24 to 26,
the character information includes: the character module and the code corresponding to the character;
the display module is configured to select character information corresponding to a character to be displayed from the received character information packet, and display the character to be displayed according to the selected character information, and includes:
and selecting a font corresponding to the character to be displayed from the received character information packet according to the code corresponding to the character to be displayed, and displaying the character to be displayed according to the font.
28. The smart key device of claim 27, further comprising:
and the sending module is used for sending the code corresponding to the character to be displayed to the terminal.
29. A character initialization system comprising: an initialization device as claimed in any one of claims 16 to 19 and one or more smart key devices as claimed in any one of claims 24 to 28; wherein:
and the intelligent key equipment is also used for receiving and storing the key and the check code corresponding to each character information packet in the word stock.
30. A character initialization system comprising: an initialization device as claimed in any one of claims 20 to 23 and one or more smart key devices as claimed in any one of claims 24 to 28; wherein:
the intelligent key device is further configured to receive and store the verification key related to the key sent by the initialization device.
31. A character display system comprising: a terminal and the smart key device of any one of claims 24 to 28; wherein:
the terminal is used for selecting a character information packet containing character information corresponding to the character to be displayed from a plurality of character information packets according to the character information corresponding to the character to be displayed, and sending the character information packet to the intelligent key device, wherein the character information packet contains at least two pieces of character information.
32. The system of claim 31,
the character information includes: the character module and the code corresponding to the character;
the terminal is configured to select, from character information packets according to character information corresponding to characters to be displayed, a character information packet including character information corresponding to the characters to be displayed, and send the character information packet to the smart key device, and includes:
and the terminal sends a character information packet containing a matrix corresponding to the character to be displayed to the intelligent key equipment according to the code corresponding to the character to be displayed received from the intelligent key equipment.
33. The system of claim 31 or 32,
and the terminal is also used for sending the identifier of the character information packet containing the character information corresponding to the character to be displayed to the intelligent key equipment.
CN201510319777.9A 2015-06-11 2015-06-11 Word stock initialization method, character display method and system and intelligent key equipment Active CN105005733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510319777.9A CN105005733B (en) 2015-06-11 2015-06-11 Word stock initialization method, character display method and system and intelligent key equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510319777.9A CN105005733B (en) 2015-06-11 2015-06-11 Word stock initialization method, character display method and system and intelligent key equipment

Publications (2)

Publication Number Publication Date
CN105005733A CN105005733A (en) 2015-10-28
CN105005733B true CN105005733B (en) 2022-04-08

Family

ID=54378402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510319777.9A Active CN105005733B (en) 2015-06-11 2015-06-11 Word stock initialization method, character display method and system and intelligent key equipment

Country Status (1)

Country Link
CN (1) CN105005733B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681048B (en) * 2016-04-19 2019-02-22 北京华大信安科技有限公司 Hand-written information safety protecting method and device
CN106096375B (en) * 2016-05-31 2018-11-30 天地融科技股份有限公司 A kind of method and system showing character
JP6952486B2 (en) * 2017-04-14 2021-10-20 シャープ株式会社 Content display system and content display method
US11645429B2 (en) * 2020-07-06 2023-05-09 Diebold Nixdorf, Incorporated Encrypting touch screen

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001127A (en) * 2006-01-10 2007-07-18 北京三星通信技术研究有限公司 Equipment and method of correcting and coding for transmission information
CN101226609A (en) * 2007-01-18 2008-07-23 中国科学院自动化研究所 Multi-information segmenting electronic encoding method
CN102637422A (en) * 2012-02-17 2012-08-15 天地融科技股份有限公司 Matrix obtaining method, character display device and system and electronic signature tool
CN102663297A (en) * 2012-04-06 2012-09-12 天地融科技股份有限公司 Font acquiring method, character displaying device, character displaying system and electronic signature tool

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232380A (en) * 2008-02-28 2008-07-30 北京飞天诚信科技有限公司 Method of intelligent cryptographic key equipment safety use and intelligent cryptographic key equipment
CN101383833B (en) * 2008-10-24 2012-09-05 飞天诚信科技股份有限公司 Apparatus and method for enhancing PIN code input security of intelligent cipher key apparatus
CN102609648B (en) * 2012-02-02 2015-02-25 深圳市文鼎创数据科技有限公司 Method and device for using word stock safely
US9137234B2 (en) * 2012-03-23 2015-09-15 Cloudpath Networks, Inc. System and method for providing a certificate based on granted permissions
CN103873250B (en) * 2012-12-18 2017-06-20 中国移动通信集团河南有限公司 A kind of ciphertext generation method, ciphertext decryption method and encrypting and decrypting device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001127A (en) * 2006-01-10 2007-07-18 北京三星通信技术研究有限公司 Equipment and method of correcting and coding for transmission information
CN101226609A (en) * 2007-01-18 2008-07-23 中国科学院自动化研究所 Multi-information segmenting electronic encoding method
CN102637422A (en) * 2012-02-17 2012-08-15 天地融科技股份有限公司 Matrix obtaining method, character display device and system and electronic signature tool
CN102663297A (en) * 2012-04-06 2012-09-12 天地融科技股份有限公司 Font acquiring method, character displaying device, character displaying system and electronic signature tool

Also Published As

Publication number Publication date
CN105005733A (en) 2015-10-28

Similar Documents

Publication Publication Date Title
US20220247573A1 (en) Digital signature generation method and apparatus, computer device, and storage medium
US10218506B1 (en) Cross-device authentication
CN105005733B (en) Word stock initialization method, character display method and system and intelligent key equipment
CN103873440B (en) Application program upgrading method and system
CN108154365B (en) Safety equipment, method and system for generating dynamic two-dimensional code
CN102123148B (en) Authentication method, system and device based on dynamic password
US11146570B2 (en) Method for obtaining font map, character display device and system, electronic signature token
CN107113180B (en) Packet transmission device, packet reception device, and storage medium
CN105162760A (en) Random draw-off method, apparatus and system
US20210377048A1 (en) Digital Signature Method, Signature Information Verification Method, Related Apparatus and Electronic Device
CN104618107A (en) Digital signature method and system
CN105471917A (en) Data transmission method and system
CN111506632A (en) Data processing method and device
CN108269062A (en) Electronic contract production method, device, equipment and medium based on H5
US20100138657A1 (en) System and method for authenticating an end user
CN113709115B (en) Authentication method and device
CN106790166A (en) A kind of method of safety certification, apparatus and system
CN113822675A (en) Block chain based message processing method, device, equipment and storage medium
CN102663297A (en) Font acquiring method, character displaying device, character displaying system and electronic signature tool
US20170063555A1 (en) Image Verification By An Electronic Device
CN106570423A (en) Data tamper-proofing method and system
CN110585727B (en) Resource acquisition method and device
US20230025870A1 (en) Password authentication apparatus, password authentication method, and computer readable medium
CN116684102A (en) Message transmission method, message verification method, device, equipment, medium and product
CN111242768A (en) Credit card information security obtaining method, device and system

Legal Events

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