CN111835505A - Activation code generation method and device and computer storage medium - Google Patents

Activation code generation method and device and computer storage medium Download PDF

Info

Publication number
CN111835505A
CN111835505A CN201910305229.9A CN201910305229A CN111835505A CN 111835505 A CN111835505 A CN 111835505A CN 201910305229 A CN201910305229 A CN 201910305229A CN 111835505 A CN111835505 A CN 111835505A
Authority
CN
China
Prior art keywords
character string
activation code
vehicle
code
activation
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.)
Granted
Application number
CN201910305229.9A
Other languages
Chinese (zh)
Other versions
CN111835505B (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.)
Shanghai Qinggan Intelligent Technology Co Ltd
Original Assignee
Shanghai Qinggan Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Qinggan Intelligent Technology Co Ltd filed Critical Shanghai Qinggan Intelligent Technology Co Ltd
Priority to CN201910305229.9A priority Critical patent/CN111835505B/en
Priority to CN202310809179.4A priority patent/CN116760541A/en
Publication of CN111835505A publication Critical patent/CN111835505A/en
Application granted granted Critical
Publication of CN111835505B publication Critical patent/CN111835505B/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/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/065Encryption by serially and continuously modifying data stream elements, e.g. stream cipher systems, RC4, SEAL or A5/3
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0866Generation of secret information including derivation or calculation of cryptographic keys or passwords involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • H04W12/72Subscriber identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/84Vehicles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses an activation code generation method, an activation code generation device and a computer storage medium, wherein the activation code generation method comprises the following steps: acquiring a vehicle identification code of a vehicle, a product serial number of a vehicle machine and an international mobile subscriber identification code; the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code are subjected to permutation and combination to obtain a target character string generated after permutation and combination; and generating an activation code according to a set activation code generation mode based on the target character string. According to the activation code generation method, the activation code generation device and the computer storage medium, the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code are bound to generate the corresponding activation code, so that the cracking difficulty of the activation code can be increased, and the safety of the activation code is effectively improved.

Description

Activation code generation method and device and computer storage medium
Technical Field
The invention relates to the technical field of vehicle networking, in particular to an activation code generation method and device and a computer storage medium.
Background
With the rapid development of the internet, car-mounted devices are widely mounted on vehicles as car-mounted terminals having various functions such as voice, navigation, and entertainment. In order to ensure the legal use of the car machine by the user, the user usually needs to activate the car machine by using the activation code before using the car machine, and therefore, the safety of the activation code plays an important role in ensuring the legal use of the car machine by the user. However, the conventional activation code is mainly generated according to a vehicle identification code of a vehicle or a product serial number of a vehicle machine, and has a single mode, so that the activation code is relatively easy to crack, and the safety of the activation code is low.
Disclosure of Invention
The invention aims to provide an activation code generation method, an activation code generation device and a computer storage medium.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an activate code generation method, which is applied to an activate code generation apparatus, and the method includes:
acquiring a vehicle identification code of a vehicle, a product serial number of a vehicle machine and an international mobile subscriber identification code;
the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code are subjected to permutation and combination to obtain a target character string generated after permutation and combination;
and generating an activation code according to a set activation code generation mode based on the target character string.
As an embodiment, the generating an activation code according to a set activation code generation manner based on the target character string includes:
determining a first character string, and acquiring a second character string matched with the last character of the first character string according to the corresponding relation between the last character of the first character string and the second character string set by the last character query of the first character string; the first character string and the second character string are respectively one of the following character strings: the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code;
encrypting the second character string and the target character string according to a set encryption algorithm to generate a ciphertext character string;
and extracting characters of the ciphertext character string, and acquiring the character string matched with the set length value as an activation code.
As an implementation manner, the acquiring a second character string matched with a last character of the first character string according to a correspondence between the last character of the first character string and the second character string set by the last character query of the first character string includes:
when the last character of the product serial number of the vehicle machine is an even number, the second character string is a vehicle identification code of the vehicle;
and when the last character of the product serial number of the car machine is an odd number, if the last character of the product serial number of the car machine is a multiple of 3, the second character string is the international mobile subscriber identity, otherwise, the second character string is the product serial number of the car machine.
As an embodiment, the encrypting the second character string and the target character string according to the set encryption algorithm to generate a ciphertext character string includes:
carrying out encryption operation on the second character string according to a set message digest algorithm to generate a key character string;
carrying out encryption operation on the target character string according to a set message digest algorithm to generate a plaintext character string;
and encrypting the key character string and the plaintext character string according to a set advanced encryption standard algorithm to generate a ciphertext character string.
As an implementation manner, the extracting the characters of the ciphertext character string and acquiring the character string matched with the set length value as an activation code includes:
and sequentially selecting the character strings with the length of the set length value from the first character of the ciphertext character string as the activation codes.
As an implementation manner, the extracting the characters of the ciphertext character string and acquiring the character string matched with the set length value as an activation code includes:
sequentially selecting character strings with a set first length value from a first character of the ciphertext character string as a first activation code sub-string;
generating a character string with a length of a set second length value as a second activation code sub-string according to a difference value between the current date and the set date value;
and carrying out permutation and combination on the first activation code substring and the second activation code substring according to the set permutation and combination sequence to generate the activation codes.
As an embodiment, the performing permutation and combination on the first activate code sub-string and the second activate code sub-string according to the set permutation and combination order to generate the activate code includes:
and carrying out permutation and combination on the first activation code substring, the second activation code substring and a third activation code substring according to the set permutation and combination sequence to generate an activation code, wherein the third activation code substring is a random character string with a length of a set third length value.
As one embodiment, the activation code generating apparatus applied to an automotive remote service provider server for acquiring a vehicle identification code of a vehicle, a product serial number of a vehicle machine, and an international mobile subscriber identity code includes:
receiving an activation code acquisition request which is sent by a vehicle end and used for requesting to acquire an activation code; the activation code acquisition request carries a vehicle identification code of the vehicle, a product serial number of the vehicle machine and an international mobile subscriber identification code.
As an embodiment, after generating an activation code in a set activation code generation manner based on the target character string, the method further includes:
and sending a response message carrying the activation code to be verified to the vehicle machine.
As one embodiment, the activating code generating apparatus applied to a vehicle end, the acquiring a vehicle identification code of a vehicle, a product serial number of the vehicle, and an international mobile subscriber identity, includes:
receiving an activation request instruction for activating a vehicle machine;
and responding to the activation request instruction, and acquiring the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code.
As one embodiment, after acquiring the vehicle identification code of the vehicle, the product serial number of the vehicle machine, and the international mobile subscriber identity, the method further includes:
sending an activation code acquisition request for requesting to acquire an activation code to an automobile remote service provider server; the activation code acquisition request carries a vehicle identification code of the vehicle, a product serial number of the vehicle machine and the international mobile subscriber identification code;
receiving a response message which is returned by the automobile remote service provider server based on the activation code acquisition request and carries an activation code to be verified;
and verifying the activation code to be verified according to the activation code generated by the vehicle machine, and activating the vehicle machine when the verification is passed.
In a second aspect, an embodiment of the present invention further provides an activate code generating apparatus, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to, when running the computer program, implement the steps of the activation code generation method of the first aspect.
In a third aspect, an embodiment of the present invention provides a computer storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the activation code generation method according to the first aspect are implemented.
The activation code generation method, the activation code generation device and the computer storage medium provided by the embodiment of the invention are used for acquiring a vehicle identification code of a vehicle, a product serial number of the vehicle machine and an international mobile subscriber identification code; the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code are subjected to permutation and combination to obtain a target character string generated after permutation and combination; and generating an activation code according to a set activation code generation mode based on the target character string. So, bind and generate corresponding activation code through the vehicle identification code with the vehicle, the product serial number and the international mobile subscriber identity of car machine, increased the degree of difficulty that explains of activation code to the security of activation code has effectively been improved.
Drawings
Fig. 1 is a schematic flowchart of an activate code generation method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an activation code generation method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an activate code generating apparatus according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further elaborated by combining the drawings and the specific embodiments in the specification. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, an activate code generation method provided for an embodiment of the present invention can be applied to an activate code generation apparatus, where the activate code generation apparatus is configured to generate an activate code, and includes the following steps:
step S101: acquiring a vehicle identification code of a vehicle, a product serial number of a vehicle machine and an international mobile subscriber identification code;
it should be noted that, when the activation code generation apparatus is applied to a car machine, the acquiring a vehicle identification code of a vehicle, a product serial number of the car machine, and an international mobile subscriber identity includes:
receiving an activation request instruction for activating a vehicle machine;
and responding to the activation request instruction, and acquiring a vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code.
It can be understood that the receiving of the activation request instruction for activating the car machine may be receiving an operation of a user for activating the car machine through an operation body such as a finger or a stylus pen, for example, detecting that a car machine activation virtual key displayed on a car machine interface is triggered. The vehicle identification code of the vehicle is unique identification information of the vehicle, the product serial number of the vehicle machine is serial number information of a manufacturer of the vehicle machine to the vehicle machine, the international mobile Subscriber Identity is stored in a Subscriber Identity Module (SIM), also called a SIM card, and the SIM card is arranged in a communication Module in the vehicle machine or in a vehicle-mounted T-box (telematics box) bound with the vehicle machine.
It should be noted that, when the activation code generating apparatus is applied to a remote Service Provider (TSP) server of an automobile, the acquiring a vehicle identification code of the vehicle, a product serial number of the vehicle machine, and an international mobile subscriber identification code includes:
receiving an activation code acquisition request which is sent by a vehicle machine and used for requesting to acquire an activation code; the activation code acquisition request carries a vehicle identification code of the vehicle, a product serial number of the vehicle machine and an international mobile subscriber identification code.
Here, when it is determined that the car machine needs to be activated, the car machine may send an activation code acquisition request to the TSP server, and the activation code generation device receives the activation code acquisition request sent by the car machine to request to acquire an activation code, generates a corresponding activation code according to a vehicle identification code of a vehicle, a product serial number of the car machine, and an international mobile subscriber identification code, which are carried in the activation code acquisition request, and returns the activation code to the car machine, so that the car machine activates the car machine according to the activation code returned by the TSP server.
Step S102: the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code are subjected to permutation and combination to obtain a target character string generated after permutation and combination;
it can be understood that the vehicle identification code of the vehicle, the product serial number of the vehicle machine, and the international mobile subscriber identity are each a character string, and when the vehicle identification code of the vehicle, the product serial number of the vehicle machine, and the international mobile subscriber identity are arranged and combined, a plurality of arrangement combinations are generated according to different arrangement positions of each character string, that is, a plurality of target character strings are generated after the arrangement combinations. According to the known permutation and combination principle, the vehicle identification code of the vehicle, the product serial number of the vehicle end and the international mobile subscriber identity are permutated and combined, so that six different target character strings can be generated. In this embodiment, a character string obtained by sequentially arranging the vehicle identification code of the vehicle, the international mobile subscriber identification code, and the product serial number of the in-vehicle device from front to back is taken as an example of the target character string.
Step S103: and generating an activation code according to a set activation code generation mode based on the target character string.
The activation code generation mode is used for correspondingly generating the activation code by performing operations such as encryption on the target character string, so that the activation code is generated according to the bound vehicle identification code of the vehicle, the international mobile subscriber identification code and the product serial number of the vehicle machine. In practical application, the activation code generation mode can be set according to actual needs. The principle of generating the activation code according to the set activation code generation mode based on the target character string comprises the following steps: the method comprises the steps of selecting one of a vehicle identification code of a vehicle, an international mobile subscriber identification code and a product serial number of a vehicle machine as required to be encrypted to generate a key character string, encrypting a target character string to generate a plaintext character string, generating a ciphertext character string according to the key character string and the plaintext character string, and finally obtaining an activation code according to the ciphertext character string, so that the activation code is more complex, and the cracking difficulty of the activation code is increased.
In summary, the activation code generation method, the activation code generation device, and the computer storage medium provided in the above embodiments obtain the vehicle identification code of the vehicle, the product serial number of the vehicle machine, and the international mobile subscriber identity; the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code are subjected to permutation and combination to obtain a target character string generated after permutation and combination; and generating an activation code according to a set activation code generation mode based on the target character string. So, bind and generate corresponding activation code through the vehicle identification code with the vehicle, the product serial number and the international mobile subscriber identity of car machine, increased the degree of difficulty that explains of activation code to the security of activation code has effectively been improved.
In an embodiment, the generating an activation code according to a set activation code generation manner based on the target character string includes:
determining a first character string, and acquiring a second character string matched with the last character of the first character string according to the corresponding relation between the last character of the first character string and the second character string set by the last character query of the first character string; the first character string and the second character string are respectively one of the following character strings: the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code;
encrypting the second character string and the target character string according to a set encryption algorithm to generate a ciphertext character string;
and extracting characters of the ciphertext character string, and acquiring the character string matched with the set length value as an activation code.
It can be understood that the corresponding relationship between the last character of the first character string and the second character string may be set according to actual needs, and when the first character string changes, the second character string corresponding to the last character of the first character string may also change correspondingly. In an embodiment, the obtaining, according to a correspondence between a last character of the first character string and a second character string set by a last character query of the first character string, the second character string matched with the last character of the first character string includes: when the last character of the product serial number of the vehicle machine is an even number, the second character string is a vehicle identification code of the vehicle; and when the last character of the product serial number of the car machine is an odd number, if the last character of the product serial number of the car machine is a multiple of 3, the second character string is the international mobile subscriber identity, otherwise, the second character string is the product serial number of the car machine. For example, if the first character string is the product serial number of the car machine and the product serial number of the car machine is P007001100000311, since the last character of the product serial number of the car machine is 1, which is odd and not a multiple of 3, the second character string is the product serial number of the car machine. Therefore, the flexibility of the activation code is improved by flexibly setting the relative relationship between the first character string and the second character string.
It is understood that the encryption algorithm may be set according to actual requirements, and the ciphertext character string is usually obtained by encrypting the key character string and the plaintext character string through the encryption algorithm. In an embodiment, the encrypting the second character string and the target character string according to a set encryption algorithm to generate a ciphertext character string includes: carrying out encryption operation on the second character string according to a set message digest algorithm to generate a key character string; carrying out encryption operation on the target character string according to a set message digest algorithm to generate a plaintext character string; and encrypting the key character string and the plaintext character string according to a set advanced encryption standard algorithm to generate a ciphertext character string. Therefore, the character string encrypted by the message digest algorithm cannot be decrypted, so that the safety of the ciphertext character string can be ensured, and the safety of the activation code is further improved.
It should be noted that, the extracting of the characters from the ciphertext character string, and acquiring the character string matching the set length value as the activation code, may be extracting all the characters constituting the activation code from the ciphertext character string, or extracting a part of the characters constituting the activation code from the ciphertext character string, and generating the other part according to the current date and other factors.
In an embodiment, the extracting the characters of the ciphertext character string and acquiring the character string matched with the set length value as an activation code includes:
and sequentially selecting the character strings with the length of the set length value from the first character of the ciphertext character string as the activation codes.
Here, the length value may be set according to actual requirements, for example, may be set to a 16-bit hexadecimal number. For example, assuming that the ciphertext string is a hexadecimal representation of the string 218D 25019410C 98 CA 14C 4D 74 CE FF D4 CD, if the length value is a 16-bit hexadecimal number, the activate code is 218D 25019410C 98C. Therefore, the activation code is directly selected from the ciphertext character string, and the method is simple and quick.
In an embodiment, the extracting the characters of the ciphertext character string and acquiring the character string matched with the set length value as an activation code includes:
sequentially selecting character strings with a set first length value from a first character of the ciphertext character string as a first activation code sub-string;
generating a character string with a length of a set second length value as a second activation code sub-string according to a difference value between the current date and the set date value;
and carrying out permutation and combination on the first activation code substring and the second activation code substring according to the set permutation and combination sequence to generate the activation codes.
Here, the first length value and the second length value may be set according to actual needs, for example, the first length value may be set to be a 12-bit hexadecimal number, the second length value may be set to be a 4-bit hexadecimal number, and the like. The date value can be set according to actual situation requirements, for example, the date value can be set to the production date of the vehicle machine. It should be noted that the difference between the current date and the set date value is the number of days that the current date and the set date value are different from each other. The first activation code substring and the second activation code substring are arranged and combined according to the arranged arrangement and combination sequence, and two different arrangement and combination sequences exist. For example, assuming that the ciphertext string is a hexadecimal string 218D 25019410C 98C a 14C 4D 74 CE FF D4 CD, the current date is 29 days 11 months in 2018, the set date value is 1 day 8 months in 2018, the first length value is a 12-bit hexadecimal number and the second length value is a 4-bit hexadecimal number, the first activation code substring is 218D 25019410, and since the difference between the current date and the set date threshold is 120 days, the activation code is represented as a 4-bit hexadecimal number 0078 in hexadecimal, the activation code is represented as 0078218D 25019410. Since the difference between the current date and the set date value is included in the activation code, the current date can be known from the activation code given the set date value, and the current date is considered to be the date of generation of the activation code. Because the activation code is used for activating the car machine, the activation date of the car machine can be known according to the activation code.
Therefore, the activation code is generated according to the difference value between the current date and the set date value, so that the generation date of the activation code, namely the activation date of the car machine can be known according to the activation code.
In an embodiment, the performing permutation and combination on the first activate code sub-string and the second activate code sub-string according to the set permutation and combination order to generate the activate code includes:
and carrying out permutation and combination on the first activation code substring, the second activation code substring and a third activation code substring according to the set permutation and combination sequence to generate an activation code, wherein the third activation code substring is a random character string with a length of a set third length value.
When the first, second and third activate code sub-strings are arranged and combined, a plurality of kinds of arrangement combinations, that is, a plurality of kinds of activate codes generated after the arrangement and combination, are generated according to different positions of each character string arrangement. In this embodiment, a character string obtained by sequentially arranging the second activation code sub-string, the first activation code sub-string, and the third activation code sub-string from front to back is taken as an example of the activation code. Under the condition that the length of the active code is fixed, the third length value needs to be determined according to the first length value and the second length value, for example, the first length value may be set to be a 10-bit hexadecimal number, the second length value may be set to be a 4-bit hexadecimal number, and the third length value may be set to be a 2-bit hexadecimal number. For example, assuming that the ciphertext string is a hexadecimal string 218D 25019410C 98C a 14C 4D 74 CE FF D4 CD, the current date is 29 days 11 months in 2018, the set date value is 1 day 8 months in 2018, the first length value is a 12-bit hexadecimal number, the second length value is a 4-bit hexadecimal number, and the third length value is a 2-bit hexadecimal number, the first activation code substring is 218D 250194, and since the difference between the current date and the set date threshold is 120 days, it is represented as a 4-bit hexadecimal number 0078 in hexadecimal; when the random string is AB, the activation code may be represented as 0078218D 250194 AB.
Therefore, the flexibility of the activation code is enhanced by adding the random character string into the activation code, and the safety of the activation code is further improved.
When the activation code generation apparatus is applied to a TSP server, after generating an activation code in a set activation code generation manner based on the target character string, the activation code generation apparatus may further include:
and sending a response message carrying the activation code to be verified to the vehicle machine.
The activation code generation device generates a corresponding activation code according to the vehicle identification code carrying the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code, which are sent by the vehicle machine, and then sends the activation code to the vehicle machine, so that the vehicle machine can activate the vehicle machine in time according to the activation code.
It should be noted that, when the activation code generation apparatus is applied to a car machine, after acquiring a vehicle identification code of a vehicle, a product serial number of the car machine, and an international mobile subscriber identity, the method may further include:
sending an activation code acquisition request for requesting to acquire an activation code to an automobile remote service provider server; the activation code acquisition request carries a vehicle identification code of the vehicle, a product serial number of the vehicle machine and the international mobile subscriber identification code;
receiving a response message which is returned by the automobile remote service provider server based on the activation code acquisition request and carries an activation code to be verified;
and verifying the activation code to be verified according to the activation code generated by the activation code generation device, and activating the car machine when the verification is passed.
It can be understood that, in order to activate a car machine, an activation code for activating the car machine needs to be acquired from a car remote service provider server, so an activation code acquisition request for requesting to acquire the activation code needs to be sent to the car remote service provider server, and an activation code to be verified returned by the car remote service provider server based on the activation code acquisition request is received, and then the activation code to be verified is verified according to the activation code generated at the car machine end, so that the car machine is activated when the verification passes. The activation code generated by the vehicle end is an activation code generated by an activation code generation device applied to the vehicle.
Here, the verification of the to-be-verified activation code according to the activation code generated by the activation code generation device may be to verify whether the activation code generated by the vehicle end is consistent with the to-be-verified activation code, and if so, the verification is passed, otherwise, the verification is not passed. It should be noted that the activation code generated by the vehicle end and the activation code to be verified may be any one of the following cases: when the activation code is a character string which is extracted from the ciphertext character string in sequence and has a length value set, detecting that the activation code generated by the vehicle terminal is the same as the activation code to be verified; when the activation code consists of the first activation code substring and the second activation code substring, detecting that the activation code generated by the vehicle end is the same as the activation code to be verified; when the activation code is composed of the first activation code substring, the second activation code substring and the third activation code substring, it is detected that the activation code generated by the vehicle end is the same as the part of the to-be-verified activation code composed of the first activation code substring and the second activation code substring, and the part of the to-be-verified activation code composed of the third activation code substring may be different.
Therefore, the car machine is activated according to the activation code which is generated correspondingly by binding the car identification code of the car, the product serial number of the car machine and the international mobile subscriber identification code, and the legal use of the car machine by the user is further ensured.
Based on the same inventive concept of the foregoing embodiments, the present embodiment describes technical solutions of the foregoing embodiments in detail through specific examples. Fig. 2 is a schematic specific flowchart of an activation code generation method according to an embodiment of the present invention, including the following steps:
step S201: starting the vehicle machine;
here, the user turns on the vehicle after the vehicle starts.
Step S202: clicking a system activation icon on a vehicle machine system interface;
step S203: clicking to determine after popping up a user service protocol;
here, after clicking the system activation icon on the car machine system interface, the car machine will pop up the user service agreement dialog box.
Step S204: clicking to acquire an activation code;
step S205: the vehicle machine sends an activation code acquisition request carrying a vehicle identification code of a vehicle, a product serial number of the vehicle machine and an international mobile subscriber identity to the TSP server;
here, the car machine acquires a Vehicle Identification Number (VIN), a product Serial Number (PDSN) of the car machine, and an International Mobile Subscriber Identity (IMSI) of the car machine through controller area network communication, and then transmits an activation code acquisition request carrying the vehicle Identification Number of the car machine, the product Serial Number of the car machine, and the International Mobile Subscriber identity to the TSP server.
Step S206: after receiving the activation code acquisition request, the TSP server generates an activation code according to the activation code acquisition request and returns the activation code to the car machine;
here, after receiving the activation code acquisition request, the TSP server generates an activation code according to a vehicle identification code of a vehicle, a product serial number of a car machine, and an international mobile subscriber identity, and returns the activation code to the car machine.
Step S207: and after the verification of the activation code sent by the TSP server is passed, the vehicle machine is activated.
The car machine generates an activation code according to the vehicle identification code of the vehicle, the product serial number of the car machine and the international mobile subscriber identification code, verifies the activation code sent by the TSP server by using the activation code, and activates the car machine when the verification is passed.
As described above, the activation code generation method provided by the above embodiment may process the binding relationship between the in-vehicle device, the vehicle, and the SIM card to obtain the activation code, and is applicable to the external T-BOX scheme and the SIM card integrated in the in-vehicle device.
The generation process of the activation code is specifically described below by using a specific example, and the format of the activation code, the adopted encryption algorithm, and the like are firstly limited. The activate code is a 16-bit string consisting of 0-F hexadecimal characters. The encryption algorithm adopts an advanced encryption standard algorithm, and the mode is ECB. When the last bit of the PDSN is 0/2/4/8, a character string generated after performing MD5 operation on the VIN is used as a key; when the last digit of the PDSN is 3/6/9, a character string generated after MD5 operation is carried out on the IMSI is used as a key; when the last digit of the PDSN is 1/4/7, a string generated after MD5 operation is performed on the PDSN is used as a key. And a character string generated by performing MD5 operation on the VIN, the IMSI and the PDSN which are sequentially arranged is used as a ciphertext. The first 5 bytes in the ciphertext expressed in hexadecimal form a 10-bit string, which is marked as a string A. The number of days from the set date to the current date is represented by a 4-bit hexadecimal number, and is denoted as a character string B. The 4-bit character of the character string B is placed together in the character string A to form a 14-bit character string, for example, the character string B is placed in front of the character string A, and finally a 2-bit hexadecimal random character string is added, for example, placed at the end of the character string formed by the character string A, B.
Assuming that VIN is LSJW26792CS990006, IMSI is 460011418603055, and PDSN is P007001100000311, the string formed by arranging VIN, IMSI, and PDSN in sequence is LSJW26792CS990006460011418603055P007001100000311, the plaintext is the string 36CBBD057B0B80A0BBB02E7EF37B3F57 generated by performing MD5 operation on the string, and since the last bit of PDSN is 1, the key uses the string 490BF05E3CF51B4AE3E00FBC895C1ED0 generated by performing MD5 operation on PDSN. The cipher text obtained by encrypting the plaintext by the key through an AES algorithm is 218D 25019410C 98C A14C 4D 74 CE FF D4 CD, the first 5 bytes 218D 250194 of the cipher text are taken as a character string A, the current date is 11/29/2018, the number of days from 8/1/2018 to the present is represented by 0078 in hexadecimal form and is taken as a character string B, and finally a random character string consisting of CDs is placed at the tail of the character string A and the character string B, so that the generated activation code is 0078218D 250194 CD.
Based on the same inventive concept as the foregoing embodiment, an embodiment of the present invention provides an activation code generation apparatus, as shown in fig. 3, including: a processor 310 and a memory 311 for storing computer programs capable of running on the processor 310; the processor 310 illustrated in fig. 3 is not used to refer to the number of the processors 310 as one, but is only used to refer to the position relationship of the processor 310 relative to other devices, and in practical applications, the number of the processors 310 may be one or more; similarly, the memory 311 shown in fig. 3 is also used in the same sense, i.e. it is only used to refer to the position relationship of the memory 311 with respect to other devices, and in practical applications, the number of the memory 311 may be one or more. The processor 310 is configured to implement the activation code generation method as described above when running the computer program.
The apparatus may further comprise: at least one network interface 312. The various components of the device are coupled together by a bus system 313. It will be appreciated that the bus system 313 is used to enable communications among the components connected. The bus system 313 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 313 in FIG. 3.
The memory 311 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 311 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 311 in the embodiment of the present invention is used to store various types of data to support the operation of the apparatus. Examples of such data include: any computer program for operating on the device, such as operating systems and application programs; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. Here, the program that implements the method of the embodiment of the present invention may be included in an application program.
Based on the same inventive concept of the foregoing embodiments, this embodiment further provides a computer storage medium, where a computer program is stored in the computer storage medium, where the computer storage medium may be a Memory such as a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash Memory (flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read Only Memory (CD-ROM), and the like; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc. The computer program stored in the computer storage medium, when executed by a processor, implements the activation code generation method as described above. Please refer to the description of the embodiment shown in fig. 1 for a specific step flow realized when the computer program is executed by the processor, which is not described herein again.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
As used herein, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, including not only those elements listed, but also other elements not expressly listed.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (13)

1. An activation code generation method is applied to an activation code generation device, and is characterized by comprising the following steps:
acquiring a vehicle identification code of a vehicle, a product serial number of a vehicle machine and an international mobile subscriber identification code;
the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code are subjected to permutation and combination to obtain a target character string generated after permutation and combination;
and generating an activation code according to a set activation code generation mode based on the target character string.
2. The method as claimed in claim 1, wherein the generating an activation code according to the set activation code generation mode based on the target character string comprises:
determining a first character string, and acquiring a second character string matched with the last character of the first character string according to the corresponding relation between the last character of the first character string and the second character string set by the last character query of the first character string; the first character string and the second character string are respectively one of the following character strings: the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code;
encrypting the second character string and the target character string according to a set encryption algorithm to generate a ciphertext character string;
and extracting characters of the ciphertext character string, and acquiring the character string matched with the set length value as an activation code.
3. The method according to claim 2, wherein the first character string includes a product serial number of the car machine, and the obtaining of the second character string matching the last character of the first character string according to the corresponding relationship between the last character of the first character string and the second character string set by the last character query of the first character string comprises:
when the last character of the product serial number of the vehicle machine is an even number, the second character string is a vehicle identification code of the vehicle;
and when the last character of the product serial number of the car machine is an odd number, if the last character of the product serial number of the car machine is a multiple of 3, the second character string is the international mobile subscriber identity, otherwise, the second character string is the product serial number of the car machine.
4. The method according to claim 2, wherein the encrypting the second character string and the target character string according to the set encryption algorithm to generate a ciphertext character string comprises:
carrying out encryption operation on the second character string according to a set message digest algorithm to generate a key character string;
carrying out encryption operation on the target character string according to a set message digest algorithm to generate a plaintext character string;
and encrypting the key character string and the plaintext character string according to a set advanced encryption standard algorithm to generate a ciphertext character string.
5. The method of claim 2, wherein the extracting the characters of the ciphertext character string to obtain a character string matching a set length value as an activation code comprises:
and sequentially selecting the character strings with the length of the set length value from the first character of the ciphertext character string as the activation codes.
6. The method of claim 2, wherein the extracting the characters of the ciphertext character string to obtain a character string matching a set length value as an activation code comprises:
sequentially selecting character strings with a set first length value from a first character of the ciphertext character string as a first activation code sub-string;
generating a character string with a length of a set second length value as a second activation code sub-string according to a difference value between the current date and the set date value;
and carrying out permutation and combination on the first activation code substring and the second activation code substring according to the set permutation and combination sequence to generate the activation codes.
7. The method of claim 6, wherein the permutation and combination of the first activate code substring and the second activate code substring according to the set permutation and combination order to generate the activate code comprises:
and carrying out permutation and combination on the first activation code substring, the second activation code substring and a third activation code substring according to the set permutation and combination sequence to generate an activation code, wherein the third activation code substring is a random character string with a length of a set third length value.
8. The method as claimed in any one of claims 1 to 7, wherein the activating code generating means is applied to an automobile remote service provider server, and the acquiring of the vehicle identification code of the vehicle, the product serial number of the vehicle machine, and the international mobile subscriber identity comprises:
receiving an activation code acquisition request which is sent by a vehicle machine and used for requesting to acquire an activation code; the activation code acquisition request carries a vehicle identification code of the vehicle, a product serial number of the vehicle machine and an international mobile subscriber identification code.
9. The method as claimed in claim 8, wherein after generating the activation code according to the set activation code generation manner based on the target character string, the method further comprises:
and sending a response message carrying the activation code to be verified to the vehicle machine.
10. The method according to any one of claims 1 to 7, wherein the activating code generating device is applied to a vehicle machine, and the acquiring of the vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identity comprises:
receiving an activation request instruction for activating a vehicle machine;
and responding to the activation request instruction, and acquiring a vehicle identification code of the vehicle, the product serial number of the vehicle machine and the international mobile subscriber identification code.
11. The method of claim 10, wherein after obtaining the vehicle identification number of the vehicle, the serial number of the vehicle machine, and the international mobile subscriber identity, further comprising:
sending an activation code acquisition request for requesting to acquire an activation code to an automobile remote service provider server; the activation code acquisition request carries a vehicle identification code of the vehicle, a product serial number of the vehicle machine and the international mobile subscriber identification code;
receiving a response message which is returned by the automobile remote service provider server based on the activation code acquisition request and carries an activation code to be verified;
and verifying the activation code to be verified according to the activation code generated by the activation code generation device, and activating the car machine when the verification is passed.
12. An activation code generation apparatus, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to implement the activation code generation method of any one of claims 1 to 11 when running the computer program.
13. A computer storage medium, characterized in that a computer program is stored, which, when executed by a processor, implements the activation code generation method of any of claims 1 to 11.
CN201910305229.9A 2019-04-16 2019-04-16 Activation code generation method and device and computer storage medium Active CN111835505B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910305229.9A CN111835505B (en) 2019-04-16 2019-04-16 Activation code generation method and device and computer storage medium
CN202310809179.4A CN116760541A (en) 2019-04-16 2019-04-16 Activation code generation method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910305229.9A CN111835505B (en) 2019-04-16 2019-04-16 Activation code generation method and device and computer storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310809179.4A Division CN116760541A (en) 2019-04-16 2019-04-16 Activation code generation method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN111835505A true CN111835505A (en) 2020-10-27
CN111835505B CN111835505B (en) 2023-06-30

Family

ID=72915743

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910305229.9A Active CN111835505B (en) 2019-04-16 2019-04-16 Activation code generation method and device and computer storage medium
CN202310809179.4A Pending CN116760541A (en) 2019-04-16 2019-04-16 Activation code generation method and device and computer storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202310809179.4A Pending CN116760541A (en) 2019-04-16 2019-04-16 Activation code generation method and device and computer storage medium

Country Status (1)

Country Link
CN (2) CN111835505B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022111300A1 (en) * 2020-11-24 2022-06-02 奇瑞汽车股份有限公司 Vehicle application software management system and method
CN115408675A (en) * 2022-11-01 2022-11-29 湖北芯擎科技有限公司 Method, device, equipment and storage medium for generating eFuse Key

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117556391B (en) * 2023-12-28 2024-03-22 江苏万禾科技集团有限公司 Activation code generation method, electronic equipment activation method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075985A (en) * 2007-02-08 2007-11-21 腾讯科技(深圳)有限公司 Instant telecommunication system, server and instant telecommunication method when safety access
CN101319910A (en) * 2008-07-23 2008-12-10 凯立德欣技术(深圳)有限公司 Authenticity verification method and system of navigation electronic map
CN101345947A (en) * 2008-08-29 2009-01-14 中兴通讯股份有限公司 Mobile phone locking method, unlocking method, locking device and mobile phone
WO2010037429A1 (en) * 2008-09-30 2010-04-08 Novelty Group Limited Method for generating a verification code, verification code, method and device for verifying the authenticity of objects
CN103984904A (en) * 2014-05-27 2014-08-13 深圳市欧珀通信软件有限公司 Method and device for preventing screen locking code of mobile terminal from being cracked
CN105429961A (en) * 2015-11-03 2016-03-23 竞技世界(杭州)网络技术有限公司 Automatic account number registration and login method
CN105791388A (en) * 2016-01-13 2016-07-20 四川长虹电器股份有限公司 Vehicular product remote activation method of internet of vehicles system
US9626506B1 (en) * 2015-12-17 2017-04-18 International Business Machines Corporation Dynamic password generation
US9654466B1 (en) * 2012-05-29 2017-05-16 Citigroup Technology, Inc. Methods and systems for electronic transactions using dynamic password authentication
US20170373702A1 (en) * 2016-06-22 2017-12-28 Fujitsu Limited Data compression device and data decompression device
CN108764891A (en) * 2018-05-28 2018-11-06 深圳市零度智控科技有限公司 Secured mobile payment method, device, terminal device and readable storage medium storing program for executing

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075985A (en) * 2007-02-08 2007-11-21 腾讯科技(深圳)有限公司 Instant telecommunication system, server and instant telecommunication method when safety access
CN101319910A (en) * 2008-07-23 2008-12-10 凯立德欣技术(深圳)有限公司 Authenticity verification method and system of navigation electronic map
CN101345947A (en) * 2008-08-29 2009-01-14 中兴通讯股份有限公司 Mobile phone locking method, unlocking method, locking device and mobile phone
WO2010037429A1 (en) * 2008-09-30 2010-04-08 Novelty Group Limited Method for generating a verification code, verification code, method and device for verifying the authenticity of objects
US9654466B1 (en) * 2012-05-29 2017-05-16 Citigroup Technology, Inc. Methods and systems for electronic transactions using dynamic password authentication
CN103984904A (en) * 2014-05-27 2014-08-13 深圳市欧珀通信软件有限公司 Method and device for preventing screen locking code of mobile terminal from being cracked
CN105429961A (en) * 2015-11-03 2016-03-23 竞技世界(杭州)网络技术有限公司 Automatic account number registration and login method
US9626506B1 (en) * 2015-12-17 2017-04-18 International Business Machines Corporation Dynamic password generation
CN105791388A (en) * 2016-01-13 2016-07-20 四川长虹电器股份有限公司 Vehicular product remote activation method of internet of vehicles system
US20170373702A1 (en) * 2016-06-22 2017-12-28 Fujitsu Limited Data compression device and data decompression device
CN108764891A (en) * 2018-05-28 2018-11-06 深圳市零度智控科技有限公司 Secured mobile payment method, device, terminal device and readable storage medium storing program for executing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SATINDER K. SHARMA: "Design and development of low activation energy based nonchemically amplified resists (n-CARs) for next generation EUV lithography", 《MICROELECTRONIC ENGINEERING》 *
黄宁;钟剑;: "由机器码动态生成矩阵实现的软件版权保护方案", 赣南师范学院学报, no. 03 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022111300A1 (en) * 2020-11-24 2022-06-02 奇瑞汽车股份有限公司 Vehicle application software management system and method
CN115408675A (en) * 2022-11-01 2022-11-29 湖北芯擎科技有限公司 Method, device, equipment and storage medium for generating eFuse Key
CN115408675B (en) * 2022-11-01 2023-02-07 湖北芯擎科技有限公司 Method, device, equipment and storage medium for generating eFuse Key

Also Published As

Publication number Publication date
CN111835505B (en) 2023-06-30
CN116760541A (en) 2023-09-15

Similar Documents

Publication Publication Date Title
US11323260B2 (en) Method and device for identity verification
CN104866336B (en) Silent in-vehicle software update
EP3474209A1 (en) Storing blockchain private keys in a sim card
US10171449B2 (en) Account login method and device
EP2210174B1 (en) Progressive boot for a wireless device
CN111835505B (en) Activation code generation method and device and computer storage medium
CN109448195B (en) Authentication method and device for vehicle virtual key
CN111475824B (en) Data access method, device, equipment and storage medium
CN107992753B (en) Method for updating software of a control device of a vehicle
CN106465076B (en) Method and terminal for controlling short message reading
CN113572715A (en) Data transmission method and system based on block chain
CN112584350B (en) Method, device and equipment for processing information and readable storage medium
CN111586671A (en) Embedded user identification card configuration method and device, communication equipment and storage medium
CN110856170A (en) Data transmission method and device and communication system of Internet of things
CN106559386A (en) A kind of authentication method and device
CN109145639B (en) File encryption method, file decryption method and file encryption device
CN111427860A (en) Distributed storage system and data processing method thereof
CN114365134A (en) Secure identity card using unclonable functions
CN111949996A (en) Generation method, encryption method, system, device and medium of security private key
CN115766244A (en) Internet of vehicles information encryption method and device, computer equipment and storage medium
CN111988459B (en) Address book management method and device and computer storage medium
CN114222288A (en) Equipment identifier generation method, equipment identifier verification method and device
CN114266056A (en) Multiple key generation method, and communication method and device based on multiple keys
CN112416619A (en) Interface configuration method, equipment, terminal and storage medium
CN114595465A (en) Data encryption processing method and device and electronic equipment

Legal Events

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