CN117556391B - Activation code generation method, electronic equipment activation method and device - Google Patents

Activation code generation method, electronic equipment activation method and device Download PDF

Info

Publication number
CN117556391B
CN117556391B CN202311832260.0A CN202311832260A CN117556391B CN 117556391 B CN117556391 B CN 117556391B CN 202311832260 A CN202311832260 A CN 202311832260A CN 117556391 B CN117556391 B CN 117556391B
Authority
CN
China
Prior art keywords
activation
character string
character
serial number
days
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
CN202311832260.0A
Other languages
Chinese (zh)
Other versions
CN117556391A (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.)
Jiangsu Wanhe Technology Group Co ltd
Original Assignee
Jiangsu Wanhe Technology Group 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 Jiangsu Wanhe Technology Group Co ltd filed Critical Jiangsu Wanhe Technology Group Co ltd
Priority to CN202311832260.0A priority Critical patent/CN117556391B/en
Publication of CN117556391A publication Critical patent/CN117556391A/en
Application granted granted Critical
Publication of CN117556391B publication Critical patent/CN117556391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a generation method of an activation code, an activation method of electronic equipment and a device thereof, wherein the activation method comprises the following steps: receiving a serial number character string, an activation Time Time and activation times; each character in the serial number character string is processed as follows: obtaining a result value based on an ASCII code value corresponding to the character, replacing the character with F2 (result) in a serial number character string, and adding (the number of days of the activation Time/10+ 'A') and (the number of days of the activation Time,% 10+ 'A') to the end of the serial number character string when the activation Time is the number of days; the serial number character string is the activation code. The generation method can generate an activation code.

Description

Activation code generation method, electronic equipment activation method and device
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method for generating an activation code, an activation method for an electronic device, and an apparatus thereof.
Background
With the development of information technology, more and more electronic devices are applied, and the electronic devices have the functions of receiving and transmitting data. Such electronic devices often need to cooperate with built-in or downloaded applications to be used normally, and in order to configure and manage different electronic devices, the electronic devices often need to be registered and activated (e.g. to input an activation code, etc.), by which a user can use a corresponding software service, and the server can also distinguish different systems and software configurations according to registration information.
In addition, there is some authorization information, which generally includes authorization time, etc. The authorization time is the time when the service expires, after which the service is unavailable.
In chinese patent application number 202310660555.8, an authorization authentication method is disclosed, which includes: the service end generates an activation code according to service authorization information of the user purchasing service; transmitting the service authorization information and the activation code to a service provider so that the service provider generates an authorization code according to the service authorization information and the activation code; and responding to the authorization authentication request of the proxy end, checking the received authorization code and activation code of the service supply end, and sending a checking result to the proxy end so that the proxy end controls the authorization process according to the checking result. In the authorization authentication method, a service supply end and a proxy end are involved, and the authorization authentication method is relatively complex and impractical.
In the chinese patent with application number 202310260645.8, a method for activating software of a product to be authorized based on license is disclosed, the method comprises: the server receives the first secret key, generates an activation code according to the first secret key and a preset activation code generation strategy, and sends the activation code to the client; the client runs the product software to be authorized, generates a first key according to a preset key generation strategy, receives an activation code and separates the first key from a second authorization day; and comparing the encrypted information in the license file with the first key in the activation code, and if the encrypted information is consistent with the first key in the activation code, activating successfully. In the activation method, the flow of the algorithm is complex, and the method is inconvenient to be practical.
Therefore, generating an activation code containing authorization information is a problem to be solved.
Disclosure of Invention
In view of the above, the main object of the present invention is to provide a method for generating an activation code, a method for activating an electronic device, and a device thereof.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows: a method of generating an activation code, comprising the steps of: a receiving length ofIs a function of (1) (), activation Time and first activation times, key=f1 (Time), wherein F1 () is a function, (-)>Is natural number (i.e.)>And (2) the target value set of the activation Time Time comprises: a number of months, a number of days, permanently valid and zero; each character in the first serial number character string is processed as follows: result= (ASCII code value corresponding to the character+first activation number) ≡f1 (Time)%>%/>In the first serial number string, the character is replaced with F2 (result), function F2 () is used to use 0, 1,2,>co-productionThe integers are mapped into characters respectively; thereafter, when the activation Time is the number of days, the number of days (the number of days of the activation Time/10+ 'A') and the number of days of the activation Time%10+ 'A') are added at the end of the first serial number string; the first serial number character string is an activation code; wherein (1)>And->Are natural numbers.
As an improvement of the embodiment of the present invention,=103。
as an improvement of the embodiment of the present invention,=62。
the embodiment of the invention also provides a device for generating the activation code, which comprises the following modules: a first information acquisition module for receiving a message with a length ofIs a function of (1) (), activation Time and first activation times, key=f1 (Time), wherein F1 () is a function, (-)>Is natural number (i.e.)>Not less than 2, when in activationThe target value set of the inter-Time includes: a number of months, a number of days, permanently valid and zero; the activation code generation module is used for carrying out the following processing on each character in the first serial number character string: result= (ASCII code value corresponding to the character+first activation number) ≡f1 (Time)%%/>In the first serial number string, the character is replaced with F2 (result), f2 () is a function, function F () is used for 0, 1,2, and +>Co (all ]>The integers are mapped into characters respectively; thereafter, when the activation Time is the number of days, the number of days (the number of days of the activation Time/10+ 'A') and the number of days of the activation Time%10+ 'A') are added at the end of the first serial number string; the first serial number character string is an activation code; wherein (1)>And->Are natural numbers.
As an improvement of the embodiment of the present invention,=103。
as an improvement of the embodiment of the present invention,=62。
the embodiment of the invention also provides an activating method of the electronic equipment, which comprises the following steps: receiving an activation code, acquiring a second serial number character string and a second activation frequency of the electronic equipment, and increasing the second activation frequency by 1, whereinThe length of the second serial number character string isThe method comprises the steps of carrying out a first treatment on the surface of the Obtaining elements with a plurality of days removed from the target value set, and then carrying out the following processing on any element with a plurality of days removed from the target value set and the second serial number character string: generating a temporary character string, wherein the temporary character string is equal to the second serial number character string, and then sequentially carrying out the following operations on each character in the temporary character string: result= (ASCII code value corresponding to the character+second activation number) ≡f1 (element)%>%The method comprises the steps of carrying out a first treatment on the surface of the Then, replacing the character with F2 (result) in the temporary character string, and finishing the operation; after said processing, if the temporary character string corresponding to the first element and the second serial number character string is equal to the first +_ of said activation code>A character and the length of said activation code is equal to +.>The activation is successful and the activation time is equal to the first element; if the temporary character string corresponding to the second element and the second serial number character string is equal to the first +.>A character and the length of said activation code is equal to +.>+2, then the activation is successful, the position in the second serial number string is obtained as +.>Character +.1>The position is->Character +.2>Days of activation time= (-)>*10+/>Wherein the first and second elements are any one of the elements of the target value set that are removed for a number of days.
As an improvement of the embodiment of the present invention,=103。
as an improvement of the embodiment of the present invention,=62。
the embodiment of the invention also provides an activating device of the electronic equipment, which comprises the following modules: the second information acquisition module is used for receiving the activation code, acquiring a second serial number character string and second activation times of the electronic equipment, and increasing the second activation times by 1; the activation module is used for acquiring the elements, except for a plurality of days, in the target value set, and then carrying out the following processing on any element, except for a plurality of days, in the target value set and the second serial number character string: generating a temporary character string, wherein the temporary character string is equal to the second serial number character string, and then sequentially carrying out the following operations on each character in the temporary character string: result= (ASCII code value corresponding to the character+second activation number) ≡f1 (element)%%The method comprises the steps of carrying out a first treatment on the surface of the Then, replacing the character with F2 (result) in the temporary character string, and finishing the operation; after the processing, if the temporary character string corresponding to the first element and the second serial number character string is equal to the front of the activation codeA character and the length of said activation code is equal to +.>The activation is successful and the activation time is equal to the first element; if the temporary character string corresponding to the second element and the second serial number character string is equal to the first +.>A character and the length of said activation code is equal to +.>+2, then the activation is successful, the position in the second serial number string is obtained as +.>Character +.1>The position is->Character +.2>Days of activation time= (-)>*10+/>Wherein the first and second elements are any one of the elements of the target value set that are removed for a number of days.
The method for generating the activation code, the method for activating the electronic equipment and the device thereof provided by the embodiment of the invention have the following advantages: the embodiment of the invention discloses a method for generating an activation code, a method for activating electronic equipment and a device thereof, wherein the activation method comprises the following steps: receiving a serial number character string, an activation Time Time and activation times; each character in the serial number character string is processed as follows: obtaining a result value based on an ASCII code value corresponding to the character, replacing the character with F2 (result) in a serial number character string, and adding (the number of days of the activation Time/10+ 'A') and (the number of days of the activation Time,% 10+ 'A') to the end of the serial number character string when the activation Time is the number of days; the serial number character string is the activation code. The generation method can generate an activation code.
Drawings
FIG. 1 is a flow chart of a method for generating an activation code according to an embodiment;
fig. 2 is a block diagram of an activation code generation apparatus in the embodiment;
fig. 3 is a flow chart of an activation method of an electronic device in an embodiment;
fig. 4 is a structural diagram of an activating device of the electronic apparatus in the embodiment.
Detailed Description
The present invention will be described in detail below with reference to embodiments shown in the drawings. The embodiment is not intended to limit the present invention, and structural, methodological, or functional modifications of the invention according to the embodiment are included in the scope of the invention.
The following description and the drawings sufficiently illustrate specific embodiments herein to enable those skilled in the art to practice them. Portions and features of some embodiments may be included in, or substituted for, those of others. The scope of the embodiments herein includes the full scope of the claims, as well as all available equivalents of the claims. The terms "first," "second," and the like herein are used merely to distinguish one element from another element and do not require or imply any actual relationship or order between the elements. Indeed the first element could also be termed a second element and vice versa. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a structure, apparatus, or device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such structure, apparatus, or device. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a structure, apparatus or device comprising the element. Various embodiments are described herein in a progressive manner, each embodiment focusing on differences from other embodiments, and identical and similar parts between the various embodiments are sufficient to be seen with each other.
The terms "longitudinal," "transverse," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like herein refer to an orientation or positional relationship based on that shown in the drawings, merely for convenience of description herein and to simplify the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operate in a particular orientation, and thus are not to be construed as limiting the invention. In the description herein, unless otherwise specified and limited, the terms "mounted," "connected," and "coupled" are to be construed broadly, and may be, for example, mechanically or electrically coupled, may be in communication with each other within two elements, may be directly coupled, or may be indirectly coupled through an intermediary, as would be apparent to one of ordinary skill in the art.
An embodiment of the present invention provides a method for generating an activation code, where an upper computer may be used to execute the method, as shown in fig. 1, including the following steps:
a receiving length ofFirst serial number string, activation Time, and firstNumber of activations, key=f1 (Time), where F1 () is a function, ++>Is natural number (i.e.)>And (2) the target value set of the activation Time Time comprises: for several months, several days, permanently active and zero.
Here, different electronic devices have different serial number strings, and when the host computer needs to generate an activation code of a certain electronic device, it is required to obtain the first serial number string of the electronic device first. The character string is generally composed of numbers and English letters, and the activation Time refers to the Time period from the Time when the activation is successful to the Time when the activation expires, and can be several months, days, permanently valid (i.e., never expired) or zero (i.e., immediately after the activation expires). A key value may be set for each of the different activation times Time. The number of activations can be understood as: when the activation code successfully activates the electronic device, i.e., one time of successful activation, it is understood that the electronic device may be successfully activated multiple times, the activation number is 1 when the electronic device is successfully activated 1 st time, the activation number is 2 when the electronic device is successfully activated 2 nd time, and so on.
For example: when the activation time is 1 month, the key value is 7; when the activation time is 2 months, the key value is 11; when the activation time is 3 months, the key value is 19; when the activation time is 4 months, the key value is 13; when the activation time is 5 months, the key value is 37; when the activation time is 6 months, the key value is 103; when the activation time is permanently valid, the key value is 29; when the activation time is 0 (which can be understood as a clear decryption record), the key value is 107; the key value is 127 when the activation time is 1 days for months (e.g., 1,2,3, …,98, 99).
Each character in the first serial number character string is processed as follows: result= (ASCII code value corresponding to the character+first activation number) ≡f1 (Time)%%/>In the first serial number string, the character is replaced with F2 (result), function F2 () is used to use 0, 1,2,>co (all ]>The integers are mapped into characters respectively; thereafter, when the activation Time is the number of days, the number of days (the number of days of the activation Time/10+ 'A') and the number of days of the activation Time%10+ 'A') are added at the end of the first serial number string; the first serial number character string is an activation code; wherein,and->Are natural numbers.
The English total spelling of ASCII is: american Standard Code for Information Interchange, chinese name: the united states information exchange standard codes.
Here, in the calculation formula "result= (ASCII code value+activation number corresponding to the character) ≡f1 (Time)%%/>When 'is needed', firstly, ASCII code value corresponding to the character is obtained, then ASCII code value is added with activation times, then the addition value is subjected to power operation, the power is F1 (Time), and then the result obtained by the power operation is opposite->Performing modular operation, and then, comparing the result of the modular operation with +.>Carrying out mould makingAnd (5) calculating.
Assume that the sequence number string is: s128188080, the number of the steps of,=103,/>=62. F1 (Time) =127, then ASCII corresponding to the first bit S is 83, (83+2) ≡%103% 62=8; the second bit 1 corresponds to ASCII of 49, (49+2) ≡127%103%62=43; ASCII corresponding to the third 2 is 50, (50+2) ≡127%103%62=9; ASCII corresponding to bit 8 four is 56, (56+2) ≡127%103% 62=61; ASCII corresponding to position 1 five is 49, (49+2) ≡127%103%62=43; the sixth bit 8 corresponds to ASCII of 56, (56+2) ≡127%103%62=61; the seventh bit 8 corresponds to ASCII of 56, (56+2) ≡127%103% 62=61; the eighth bit 0 corresponds to ASCII of 48, (48+2) ≡127%103%62=18; the ninth bit 8 corresponds to ASCII of 56, (56+2) ≡127%103% 62=61; the tenth bit 0 corresponds to ASCII of 48, (48+2) ≡127%103%62=18. Finally, 10 numbers of 8, 43,9, 61, 43, 61, 61, 18, 61, 18 are obtained.
Here, the function F2 (), char [ ] asiCode = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'G', 'M', 'R', 'W', 'B', 'G', 'L', 'Q', 'V', 'B', 'H', 'N', 'S', 'X', 'C', 'H', 'M', 'R', 'W', 'C', 'I', 'O', 'T', 'Y', 'D', 'I', 'N', 'S', 'X', 'D', 'J', 'P', 'U', 'Z', 'E', 'J', 'O', 'T', 'Y', 'E', 'K', 'Q', 'V', 'A', 'F1', 'K', 'P', 'U', 'Z', 'F1', and 'L'; f2 (8) =8, F2 (43) =u, F2 (9) =9, F2 (61) =l, F2 (43) =u, F2 (61) =l, F2 (18) =q.
For the activation Time, (day of activation Time/10+ 'a') = 'a', (day of activation Time%10+ 'a') = 'B'), the activation code is 8U9LULLQLQAB.
In the present embodiment of the present invention,=103。
in the present embodiment of the present invention,=62。
a second embodiment of the present invention provides an activation code generating device, as shown in FIG. 2, including the following modules:
a first information acquisition module for receiving a message with a length ofIs a function of (1) (), activation Time and first activation times, key=f1 (Time), wherein F1 () is a function, (-)>Is natural number (i.e.)>And (2) the target value set of the activation Time Time comprises: for several months, several days, permanently active and zero.
The activation code generation module is used for carrying out the following processing on each character in the first serial number character string: result= (ASCII code value corresponding to the character+first activation number) ≡f1 (Time)%%/>In the first serial number string, the character is replaced with F2 (result), f2 () is a function, function F () is used for 0, 1,2, and +>Co-productionThe integers are mapped into characters respectively; thereafter, when the activation Time is the number of days, the number of days (the number of days of the activation Time/10+ 'A') and the number of days of the activation Time%10+ 'A') are added at the end of the first serial number string; the first serial number character string is an activation code; wherein (1)>And->Are natural numbers.
In the present embodiment of the present invention,=103。
in the present embodiment of the present invention,=62。
the third embodiment of the present invention provides an activation method of an electronic device, where the electronic device can be understood as a lower computer, as shown in fig. 3, and includes the following steps:
step 301: receiving an activation code, acquiring a second serial number character string and second activation times of the electronic equipment, and increasing the second activation times by 1, wherein the length of the second serial number character string is as follows
Step 302: obtaining elements with a plurality of days removed from the target value set, and then carrying out the following processing on any element with a plurality of days removed from the target value set and the second serial number character string: generating a temporary character string, wherein the temporary character string is equal to the second serial number character string, and then sequentially carrying out the following operations on each character in the temporary character string: result= (ASCII code value corresponding to the character+second activation number) ≡f1 (element)%%/>The method comprises the steps of carrying out a first treatment on the surface of the Then, replacing the character with F2 (result) in the temporary character string, and finishing the operation; after the processing, if the temporary character string corresponding to the first element and the second serial number character string is equal to the first elementFront ∈of the activation code>A character and the length of said activation code is equal to +.>The activation is successful and the activation time is equal to the first element; if the temporary character string corresponding to the second element and the second serial number character string is equal to the first +.>A character and the length of said activation code is equal to +.>+2, then the activation is successful, the position in the second serial number string is obtained as +.>Character at +1The position is->Character +.2>Days of activation time= (-)>*10+/>Wherein the first and second elements are any one of the elements of the target value set that are removed for a number of days.
In the present embodiment of the present invention,=103。
in the present embodiment of the present invention,=62。
a fourth embodiment of the present invention provides an activation apparatus for an electronic device, as shown in FIG. 4, including the following modules:
and the second information acquisition module is used for receiving the activation code, acquiring a second serial number character string and second activation times of the electronic equipment, and increasing the second activation times by 1.
The activation module is used for acquiring the elements, except for a plurality of days, in the target value set, and then carrying out the following processing on any element, except for a plurality of days, in the target value set and the second serial number character string: generating a temporary character string, wherein the temporary character string is equal to the second serial number character string, and then sequentially carrying out the following operations on each character in the temporary character string: result= (ASCII code value corresponding to the character+second activation number) ≡f1 (element)%%/>The method comprises the steps of carrying out a first treatment on the surface of the Then, replacing the character with F2 (result) in the temporary character string, and finishing the operation; after said processing, if the temporary character string corresponding to the first element and the second serial number character string is equal to the first +_ of said activation code>A character and the length of said activation code is equal to +.>The activation is successful and the activation time is equal to the first element; if the temporary character string corresponding to the second element and the second serial number character string is equal to the first +.>A character and the length of said activation code is equal to +.>+2, the activation is successful,acquiring the position in the second serial number character string as +.>Character at +1The position is->Character +.2>Days of activation time= (-)>*10+/>Wherein the first and second elements are any one of the elements of the target value set that are removed for a number of days.
It should be noted that, although the steps are described above in a specific order, it is not meant to necessarily be performed in the specific order, and in fact, some of the steps may be performed concurrently or even in a changed order, as long as the required functions are achieved.
The present invention may be a system, method, and/or computer program product. The computer program product may include a readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of the present invention.
The readable storage medium may be a tangible device that retains and stores instructions for use by an instruction execution device. The readable storage medium may include, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing.
The foregoing description of embodiments of the invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (4)

1. A method for generating an activation code, comprising the steps of:
a receiving length ofIs a function of (1) (), activation Time and first activation times, key=f1 (Time), wherein F1 () is a function, (-)>Is natural number (i.e.)>And (2) the target value set of the activation Time Time comprises: a number of months, a number of days, permanently valid and zero;
each character in the first serial number character string is processed as follows: result= (ASCII code value corresponding to the character+first activation number) ≡f1 (Time)%%/>In the first serial number string, the character is replaced with F2 (result), function F2 () is used to use 0, 1,2,>co (all ]>The integers are mapped into characters respectively; thereafter, when the activation Time is the number of days, the number of days (the number of days of the activation Time/10+ 'A') and the number of days of the activation Time%10+ 'A') are added at the end of the first serial number string; the first serial number character string is an activation code; wherein (1)>Andall are natural numbers and are added with->=103,/>=62。
2. An activation code generation device is characterized by comprising the following modules:
a first information acquisition module for receiving a message with a length ofIs a function of (1) (), activation Time and first activation times, key=f1 (Time), wherein F1 () is a function, (-)>Is natural number (i.e.)>And (2) the target value set of the activation Time Time comprises: a number of months, a number of days, permanently valid and zero;
the activation code generation module is used for carrying out the following processing on each character in the first serial number character string: result= (ASCII code value corresponding to the character+first activation number) ≡f1 (Time)%%/>In the first serial number string, the character is replaced with F2 (result), f2 () is a function, function f2 () is used for 0, 1,2,>co-productionThe integers are mapped into characters respectively; thereafter, when the activation Time is the number of days, the number of days (the number of days of the activation Time/10+ 'A') and the number of days of the activation Time%10+ 'A') are added at the end of the first serial number string; the first serial number character string is an activation code; wherein (1)>And->All are natural numbers and are added with->=103,/>=62。
3. A method of activating an electronic device, comprising the steps of:
receiving an activation code, and acquiringThe second serial number character string and the second activation times of the electronic equipment are increased by 1, wherein the length of the second serial number character string is as follows
Obtaining elements with a plurality of days removed from a target value collection, and then carrying out the following processing on any element with a plurality of days removed from the target value collection and a second serial number character string: generating a temporary character string, wherein the temporary character string is equal to the second serial number character string, and then sequentially carrying out the following operations on each character in the temporary character string: result= (ASCII code value corresponding to the character+second activation number) ≡f1 (element)%%/>The method comprises the steps of carrying out a first treatment on the surface of the Then, replacing the character with F2 (result) in the temporary character string, and finishing the operation; after said processing, if the temporary character string corresponding to the first element and the second serial number character string is equal to the first +_ of said activation code>A character and the length of said activation code is equal to +.>The activation is successful and the activation time is equal to the first element; if the temporary character string corresponding to the second element and the second serial number character string is equal to the first +.>A character and the length of said activation code is equal to +.>+2, then the activation is successful, and the second serial number is obtainedThe position in the string is +.>Character +.1>The position is->Character +.2>Days of activation time= (-)>*10+/>Wherein the first and second elements are any one of the elements of the target value set excluding a plurality of days,/and->=103,/>=62。
4. An activation device for an electronic device, comprising the following modules:
the second information acquisition module is used for receiving the activation code, acquiring a second serial number character string and second activation times of the electronic equipment, and increasing the second activation times by 1;
the activation module is used for acquiring elements, except for a plurality of days, in the target value set, and then carrying out the following processing on any element, except for a plurality of days, in the target value set and the second serial number character string: generating a temporary character string, wherein the temporary character string is equal to the second serial number character string, and then sequentially carrying out the following operations on each character in the temporary character string: re is reSult= (ASCII code value corresponding to the character+second activation number) ≡F1 (element)%%/>The method comprises the steps of carrying out a first treatment on the surface of the Then, replacing the character with F2 (result) in the temporary character string, and finishing the operation; after said processing, if the temporary character string corresponding to the first element and the second serial number character string is equal to the first +_ of said activation code>A character and the length of said activation code is equal to +.>The activation is successful and the activation time is equal to the first element; if the temporary character string corresponding to the second element and the second serial number character string is equal to the first +.>A character and the length of said activation code is equal to +.>+2, then the activation is successful, the position in the second serial number string is obtained as +.>Character +.1>The position is->Character +.2>Days of activation time= (-)>*10+/>Wherein the first and second elements are any one of the elements of the target value set excluding a plurality of days,/and->=103,/>=62。
CN202311832260.0A 2023-12-28 2023-12-28 Activation code generation method, electronic equipment activation method and device Active CN117556391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311832260.0A CN117556391B (en) 2023-12-28 2023-12-28 Activation code generation method, electronic equipment activation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311832260.0A CN117556391B (en) 2023-12-28 2023-12-28 Activation code generation method, electronic equipment activation method and device

Publications (2)

Publication Number Publication Date
CN117556391A CN117556391A (en) 2024-02-13
CN117556391B true CN117556391B (en) 2024-03-22

Family

ID=89818678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311832260.0A Active CN117556391B (en) 2023-12-28 2023-12-28 Activation code generation method, electronic equipment activation method and device

Country Status (1)

Country Link
CN (1) CN117556391B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625829A (en) * 2019-02-27 2020-09-04 阿里巴巴集团控股有限公司 Application activation method and device based on trusted execution environment
CN114282274A (en) * 2021-12-28 2022-04-05 北京纬百科技有限公司 Activation code verification method and system
CN116127429A (en) * 2022-12-12 2023-05-16 河北大学 Data right determining method based on symbol mapping coding and block chain
CN116760541A (en) * 2019-04-16 2023-09-15 上海擎感智能科技有限公司 Activation code generation method and device and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625829A (en) * 2019-02-27 2020-09-04 阿里巴巴集团控股有限公司 Application activation method and device based on trusted execution environment
CN116760541A (en) * 2019-04-16 2023-09-15 上海擎感智能科技有限公司 Activation code generation method and device and computer storage medium
CN114282274A (en) * 2021-12-28 2022-04-05 北京纬百科技有限公司 Activation code verification method and system
CN116127429A (en) * 2022-12-12 2023-05-16 河北大学 Data right determining method based on symbol mapping coding and block chain

Also Published As

Publication number Publication date
CN117556391A (en) 2024-02-13

Similar Documents

Publication Publication Date Title
US11743041B2 (en) Technologies for private key recovery in distributed ledger systems
JP4999751B2 (en) Data sharing techniques
US8739262B2 (en) Tokenized data security
JP5802137B2 (en) Centralized authentication system and method with secure private data storage
US11101991B2 (en) Practical reusable fuzzy extractor based on the learning-with-error assumption and random oracle
JP6852592B2 (en) Cryptographic primitives for user authentication
JP2005122402A (en) Ic card system
TW201638798A (en) Database server and client for query processing on encrypted data
JP2010211294A (en) User authentication system and user authentication method
US20210349988A1 (en) Systems and methods for decentralized recovery of identity attributes
JP2016012806A (en) Secret data collation device, secret data update program and secret data update method
JP6142704B2 (en) Secret data verification device, secret data verification program, and secret data verification method
US11509467B2 (en) Story assisted mnemonic phrase
US20200403789A1 (en) Cryptographic key generation using external entropy generation
CN110533417B (en) Digital asset management device, issuing method and system
CN110162988A (en) A kind of sensitive data encryption method based on operation system
JP2014139736A (en) Id identifier generating method and id identifier generating system
JP2005044054A (en) Processing system for code string
US10523654B1 (en) System and method to integrate secure and privacy-preserving biometrics with identification, authentication, and online credential systems
WO2022004854A1 (en) User terminal, authenticator terminal, registrant terminal, management system, and program
CN113688430A (en) Block chain-based data access authorization method, device, equipment and storage medium
CN117556391B (en) Activation code generation method, electronic equipment activation method and device
JP6033460B2 (en) Authentication system and authentication method
CN107005558A (en) Location-based user's ambiguity is eliminated
CN115280309A (en) Method, system and computer program product for authentication

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