A method, system, device and medium for improving the safety of college students' grades

The hash function calculates the chain head and merged score message content, uses a custom chain model to encrypt the score, and performs integrity checks on multiple servers, solving the problems of unretrogressiveness and low security of the traditional score encryption method, realizing the Fast and safe grade inquiry.

CN117574442BActive Publication Date: 2025-02-11HUNAN QIANGZHI TECH DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311362488.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2025-02-11
Estimated Expiration
2043-10-19

AI Technical Summary

Technical Problem

Traditional grade encryption methods cannot be traced back, the decryption time is long and the security is low, making it difficult to effectively ensure the safety and query speed of students' grades.

Method used

The hash function is used to calculate the chain head, merge the score message content based on the chain random number and timestamp, and encrypt it through a custom chain model to build a model containing the chain head, random number, timestamp, chain content, operation flags and user information. . The model performs integrity checks on multiple servers to ensure the security of grades and query speed.

Benefits of technology

It realizes traceability and rapid decryption of grade encryption, improves grade security and query speed, and reduces time cost. Through multi-server inspection, the performance security and query speed are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117574442B_ABST
    Figure CN117574442B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and medium for improving the security of college students' grades. The method constructs a user-periodic distribution parameter set including a primary key, a user ID, a public key, a secret key, a random number and a distribution timestamp; uses a hash function to calculate a chain head according to an encrypted field, a preset front chain calculation number and a preset front chain intercept length; wherein the encrypted field includes the grade; the grade in the chain head is taken out according to the encrypted field, and is merged into a message content based on a chain random number and a timestamp; the message content is encrypted to obtain a chain content; a custom chain model including a chain head, a chain random number, a timestamp, a chain content, an operation flag and user information is constructed; the custom chain model is set on multiple servers, and the integrity of the chain generated by the custom chain model is checked according to the user-periodic distribution parameter set. The present invention can improve the security of grades and save the time of grade query.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a method, system, device and medium for improving the security of college students' academic performance. Background Art

[0002] With the development of the Internet, the country has attached more and more importance to the controllability of information security. As the main body of teaching and educating people, colleges and universities are responsible for the education and training of students. The teaching management system purchased by the school is a system to ensure the security of the final graduation standard of students. How to ensure the security of the final graduation standard is the top priority. In order to deal with the problem of illegal grade modification, the traditional approach is to encrypt the grades. Its main disadvantage is that it cannot be traced back. Each time the grades are displayed, they need to be decrypted again, which takes a lot of time and is not very secure. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a method, system, device and medium for improving the security of college students' grades, which can improve the security of grades and save the time of grade query.

[0004] In a first aspect, an embodiment of the present invention provides a method for improving the security of college students' grades, the method for improving the security of college students' grades comprising:

[0005] Construct a user periodic allocation parameter set containing primary key, user ID, public key, secret key, random number and allocation timestamp;

[0006] A hash function is used to calculate a chain head according to an encrypted field, a preset front chain calculation number and a preset front chain interception length; wherein the encrypted field includes a score;

[0007] The scores in the chain header are taken out according to the encrypted fields, and are combined into message content based on the chain random number and timestamp;

[0008] Encrypting the message content to obtain chain content;

[0009] Constructing a custom chain model including the chain head, the chain random number, the timestamp, the chain content, the operation flag and user information;

[0010] The custom chain model is set on multiple servers, and the integrity of the chain generated by the custom chain model is checked according to the user's periodic distribution parameter set.

[0011] Compared with the prior art, the first aspect of the present invention has the following beneficial effects:

[0012] The method uses a hash function to calculate a chain head according to an encrypted field, a preset front chain calculation number and a preset front chain interception length, takes out the score in the chain head according to the encrypted field, and merges it into a message content based on a chain random number and a timestamp, encrypts the message content to obtain a chain content, and constructs a custom chain model including the chain head, the chain random number, the timestamp, the chain content, an operation flag and user information. The score is encrypted through the chain model, and the encryption of the chain model is traceable and has a fast decryption speed, which can improve the security of the score and reduce the time cost of score query; the custom chain model is set on multiple servers, and the integrity of the chain generated by the custom chain model is checked according to a user's regular distribution of parameter sets. The integrity of the chain is checked through multiple servers, which can improve the accuracy of the inspection, maximize the security of the score, and ensure the speed of score query.

[0013] According to some embodiments of the present invention, a chain head is calculated using a hash function according to an encrypted field, a preset front chain calculation number, and a preset front chain intercept length in the following manner:

[0014]

[0015] Among them, L Head represents the chain head, MD5 represents the MD5 hash function, len represents the length of the L3 previous chains starting from bit 0, and b i represents the i-th front chain, L2 represents the preset front chain calculation number, L1 represents the encryption field, c n Represents the nth record in the score collection.

[0016] According to some embodiments of the present invention, the message content is encrypted in the following manner to obtain the chain content:

[0017] M e ={rg,S}

[0018] S=M+rK

[0019] Among them, M e represents a point pair, r represents a chain random number, g represents a base point on the r-order ellipse e, M represents the message content, and K represents the public key.

[0020] According to some embodiments of the present invention, the chain random number is calculated in the following manner:

[0021] r = format(random(10,m))

[0022] Among them, r represents the chain random number, format represents formatting, m represents the default value, and random represents the function used to generate random numbers.

[0023] According to some embodiments of the present invention, the step of setting the custom chain model on multiple servers and checking the integrity of the chain generated by the custom chain model according to the user's periodic allocation parameter set includes:

[0024] Copying the custom chain model to multiple servers;

[0025] According to the user's regularly assigned parameter set, the integrity of the chain generated by the custom chain model is checked by multiple servers preset in the service voting method. If more than half of the servers check that the chain is complete, it means that there is no abnormality in the performance.

[0026] According to some embodiments of the present invention, the service voting method includes the following check function:

[0027]

[0028] Wherein, C indicates the result of checking the chain, c indicates the range of checking the chain, check indicates whether the user information in the chain is consistent with the parameters in the user periodic allocation parameter set, and B m Indicates the chain that the mth server needs to check, L4 indicates the number of preset servers, and random indicates a function for generating a random number between (L4 / 2+1, L4).

[0029] According to some embodiments of the present invention, after checking the integrity of the chain generated by the custom chain model according to the user periodically assigned parameter set, the method for improving the security of college students' grades further includes:

[0030] A real-time comparison method and a timed comparison method are used to simultaneously perform a security check on student scores; wherein the real-time comparison method is used to check the current score record according to the check function, and the timed comparison method is used to report abnormal information during the check process.

[0031] In a second aspect, an embodiment of the present invention further provides a system for improving the security of college students' grades, the system for improving the security of college students' grades comprising:

[0032] A collection construction unit, used to construct a user periodic allocation parameter collection including a primary key, a user ID, a public key, a secret key, a random number, and an allocation timestamp;

[0033] A chain head calculation unit, used to calculate the chain head according to the encrypted field, the preset front chain calculation number and the preset front chain interception length by using a hash function; wherein the encrypted field includes the score;

[0034] A data merging unit, used to take out the scores in the chain header according to the encrypted field, and merge them into message content based on the chain random number and timestamp;

[0035] A data encryption unit, used for encrypting the message content to obtain the chain content;

[0036] A model building unit, used to build a custom chain model including the chain head, the chain random number, the timestamp, the chain content, an operation flag and user information;

[0037] The data checking unit is used to set the custom chain model on multiple servers and check the integrity of the chain generated by the custom chain model according to the user's periodic allocation parameter set.

[0038] In the third aspect, an embodiment of the present invention also provides a device for improving the security of college students' grades, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute a method for improving the security of college students' grades as described above.

[0039] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute a method for improving the safety of college students' grades as described above.

[0040] It can be understood that the beneficial effects of the second to fourth aspects compared with the related art are the same as the beneficial effects of the first aspect compared with the related art. Please refer to the relevant description in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0042] Figure 1 It is a flow chart of a method for improving the safety of college students' grades according to one embodiment of the present invention;

[0043] Figure 2 is a flow chart of a method for improving the safety of college students' grades according to another embodiment of the present invention;

[0044] Figure 3 This is a structural diagram of a system for improving the safety of college students' grades according to an embodiment of the present invention;

[0045] Figure 4 It is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0047] In the description of the present invention, if there is a description of first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0048] In the description of the present invention, it should be understood that descriptions involving orientation, such as orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0049] In the description of the present invention, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution.

[0050] With the development of the Internet, the country has attached more and more importance to the controllability of information security. As the main body of teaching and educating people, colleges and universities are responsible for the education and training of students. The teaching management system purchased by the school is a system to ensure the security of the final graduation standard of students. How to ensure the security of the final graduation standard is the top priority. In order to deal with the problem of illegal grade modification, the traditional approach is to encrypt the grades. Its main disadvantage is that it cannot be traced back. Each time the grades are displayed, they need to be decrypted again, which takes a lot of time and is not very secure.

[0051] To solve the above problems, the present invention calculates the chain head according to the encrypted field, the preset front chain calculation number and the preset front chain interception length by adopting a hash function, takes out the score in the chain head according to the encrypted field, and merges it into the message content based on the chain random number and the timestamp, encrypts the message content to obtain the chain content, and constructs a custom chain model including the chain head, the chain random number, the timestamp, the chain content, the operation flag and the user information, encrypts the score through the chain model, the encryption of the chain model is traceable, and the decryption speed is fast, which can improve the security of the score and reduce the time cost of the score query; the custom chain model is set on multiple servers, and the integrity of the chain generated by the custom chain model is checked according to the user's regular distribution of parameter sets. The integrity of the chain is checked through multiple servers, which can improve the accuracy of the inspection, and maximize the security of the score and ensure the speed of the score query.

[0052] Reference Figure 1 The embodiment of the present invention provides a method for improving the security of college students' grades. The method for improving the security of college students' grades includes but is not limited to steps S100 to S600, wherein:

[0053] Step S100, constructing a user periodic allocation parameter set including a primary key, a user ID, a public key, a secret key, a random number and an allocation timestamp;

[0054] Step S200, using a hash function to calculate a chain head according to the encrypted field, a preset front chain calculation number and a preset front chain interception length; wherein the encrypted field includes the score;

[0055] Step S300: Take out the scores in the chain head according to the encrypted fields, and merge them into the message content based on the chain random number and timestamp;

[0056] Step S400, encrypt the message content to obtain the chain content;

[0057] Step S500: construct a custom chain model including a chain head, a chain random number, a timestamp, a chain content, an operation flag, and user information;

[0058] Step S600: Setting the custom chain model on multiple servers, and checking the integrity of the chain generated by the custom chain model according to the user's periodic allocation parameter set.

[0059] In this embodiment, in order to improve the security of grades and reduce the time cost of grade query, this embodiment constructs a user-periodic assigned parameter set including a primary key, a user ID, a public key, a secret key, a random number and an assigned timestamp, and uses a hash function to calculate a chain head according to an encrypted field, a preset front chain calculation number and a preset front chain interception length; wherein, the encrypted field contains grades, the grades in the chain head are taken out according to the encrypted field, and are merged into message content based on the chain random number and the timestamp, the message content is encrypted to obtain the chain content, and a custom chain model including a chain head, a chain random number, a timestamp, a chain content, an operation flag and user information is constructed; in order to improve the accuracy of the inspection, this embodiment sets the custom chain model on multiple servers, and checks the integrity of the chain generated by the custom chain model according to the user-periodic assigned parameter set.

[0060] In some embodiments, a hash function is used to calculate the chain head according to the encrypted field, the preset front chain calculation number and the preset front chain interception length in the following manner:

[0061]

[0062] Among them, L Head represents the chain head, MD5 represents the MD5 hash function, len represents the length of the L3 previous chains starting from bit 0, and b i represents the i-th front chain, L2 represents the preset front chain calculation number, L1 represents the encryption field, c n Represents the nth record in the score collection.

[0063] In this embodiment, the chain head is calculated according to the encrypted field, the preset previous chain calculation number and the preset previous chain truncation length, and the calculation is performed by using the chain with the preset previous chain calculation number before the current chain head. When the previous chain is less than the preset previous chain calculation number, the actual chain number is used for calculation. In this way, an association is established between all chains. If the score of one of the chains is tampered with, the chains will be disconnected, making it easier to detect abnormal scores and improve the security of the scores.

[0064] In some embodiments, the message content is encrypted in the following manner to obtain the chain content:

[0065] M e ={rg,S}

[0066] S=M+rK

[0067] Among them, M e represents a point pair, r represents a chain random number, g represents a base point on the r-order ellipse e, M represents the message content, and K represents the public key.

[0068] In this embodiment, by encrypting the message content, the security of the results can be further improved.

[0069] In some embodiments, the chain random number is calculated as follows:

[0070] r = format(random(10,m))

[0071] Among them, r represents the chain random number, format represents formatting, m represents the default value, and random represents the function used to generate random numbers.

[0072] In some embodiments, the custom chain model is set on multiple servers, and the integrity of the chain generated by the custom chain model is checked according to the user's periodic allocation of parameter sets, including:

[0073] Replicate custom chain models to multiple servers;

[0074] According to the set of parameters regularly assigned by the user, the integrity of the chain generated by the custom chain model is checked by multiple servers preset in the service voting method. If more than half of the servers check that the chain is complete, it means that there is no abnormality in the score.

[0075] In this embodiment, the results are correct only when more than half of the servers check the chain and it is complete. If more than half of the servers check the chain and it is incomplete, it means that the results may have been tampered with. This can improve the accuracy of the inspection, ensure the security of the results to the greatest extent, and ensure the speed of result query.

[0076] In some embodiments, the service voting method includes the following check function:

[0077]

[0078] Among them, C represents the result of the check chain, c represents the scope of the check chain, check represents whether the user information in the check chain is consistent with the parameters in the user's periodic allocation parameter set, and B m Indicates the chain that the mth server needs to check, L4 indicates the number of preset servers, and random indicates a function for generating a random number between (L4 / 2+1, L4).

[0079] In some embodiments, after checking the integrity of the chain generated by the custom chain model according to the user's periodic distribution parameter set, the method for improving the security of college students' grades also includes:

[0080] The real-time comparison method and the scheduled comparison method are used to simultaneously conduct security checks on student scores; the real-time comparison method is used to check the current score records according to the check function, and the scheduled comparison method is used to report abnormal information during the check process.

[0081] In this embodiment, the security check of student scores is performed simultaneously by using a real-time comparison method and a scheduled comparison method, which can ensure the security of the scores to the greatest extent.

[0082] To facilitate understanding by those skilled in the art, a set of best embodiments is provided below:

[0083] This embodiment adopts a chain model and a multi-server voting method, and also provides a real-time comparison method and a timed comparison method; it can guarantee the security of the scores to the greatest extent and ensure the speed of score query. Figure 2 , this embodiment specifically includes the following steps:

[0084] 1. Parameter setting.

[0085] Set the encryption field L1, which includes the default fields [primary key, student number, course code, study hours, credits, course attributes, grading method, and grades]; set the number of pre-chain calculations L2, whose default value is 2; set the pre-chain interception length L3, whose default value is 5; set the number of voting servers L4, whose default value is 3 (min>1), and the minimum number of voting servers must be greater than 1; set the encryption length L5, whose default value is 192; set the user periodic allocation parameter set U for each user in the user set, and the user periodic allocation parameter set includes the fields [primary key, user ID, public key, secret key, random number, and allocation timestamp].

[0086] 2. Customize chain model.

[0087] In the custom chain model of this embodiment, each chain includes the following 6 parts:

[0088] (1) Chain head: The chain head is determined by L1, L2 and L3, and then a hash calculation is performed. This embodiment uses the MD5 hash function. The calculation function is as follows:

[0089]

[0090] Among them, L Head represents the chain head, MD5 represents the MD5 hash function, len represents the length of the L3 previous chains starting from bit 0, and b i represents the i-th previous chain, L2 represents the preset number of previous chain calculations, and when the previous length is less than L2, the actual number of chain heads is taken, L1 represents the encrypted field, and c n Represents the nth record in the score collection.

[0091] (2) Chain random number: The calculation function is as follows:

[0092] r = format(random(10,m))

[0093] Among them, r represents the chain random number, format represents formatting, the length is 4 digits, if the length is insufficient, 0 is added in front, m represents the default value, the default value is 1000, and random represents the function used to generate random numbers.

[0094] (3) Timestamp: The time when the current chain is added, accurate to the second, formatted as 14 digits (24-hour system).

[0095] (4) Chain content: First, extract the score record according to the L1 encrypted field, add the chain random number and timestamp, separate the fields with commas, and merge them into a message content. Encrypt the message content with public key K and decrypt it with private key k, where k is customized. Select gf(p) as a finite field of order p, e=gf(p) as a curve on an ellipse, g as a base point on an ellipse e of order r, public key K=kg, and use L5 to determine the length of the encryption. The public key encryption formula is as follows:

[0096] M e ={rg,S}

[0097] S=M+rK

[0098] Among them, M e represents a point pair, r represents a chain random number, g represents a base point on the r-order ellipse e, M represents the message content, and K represents the public key.

[0099] The private key decryption formula is as follows:

[0100] M d =Sk(rg)

[0101] Then transcode Md to get the plain text.

[0102] (5) Operation flag: The value is [0, 1, 2], which respectively refers to adding, modifying and deleting the score.

[0103] (6) User information: 主键 , U 用户ID , U 分配时间戳 .

[0104] When the system is initialized, each user is assigned a public key, a private key, a random number, and an assignment timestamp. The user's primary key and user ID are the default values ​​when assigned. The above parameters are updated regularly, and the default value is 7 days. When a user operates a performance record each time, the field information specified by L1 is recorded through the chain model.

[0105] 3. Service voting method.

[0106] Through the number of servers specified by L4, the chain model is copied to the specified servers, and the integrity of the chain is checked regularly through more than half of the servers. The default value of the timing is 7 days, and the check chain range is c, with a default value of 100. If it is less than c, the actual number of chains is taken. The check function is as follows:

[0107]

[0108] Among them, C represents the result of the check chain, c represents the scope of the check chain, check represents whether the user information in the check chain is consistent with the parameters in the user's periodic allocation parameter set, and B m Indicates the chain that the mth server needs to check, L4 indicates the number of preset servers, and random indicates a function for generating a random number between (L4 / 2+1, L4).

[0109] Check whether the chain content is consistent with the field content required in the original L1 after decryption. If any information is inconsistent, report the exception. If it is tampered with, the chain will be disconnected and the operation flag will be empty. Even if one server is tampered with, there are other servers to check, which can improve the accuracy of the score check.

[0110] 4. Real-time comparison method and timed comparison method.

[0111] Two methods are provided for the score collection. One is the real-time comparison method. The real-time comparison directly calls the third part of the check function to check the current record (that is, the c value in the check function formula is 1). The other is the scheduled comparison method. The scheduled comparison method reports abnormal information.

[0112] It should be noted that the default values ​​in this embodiment can be changed according to actual conditions and are not specifically limited in this embodiment.

[0113] In this embodiment, firstly, the performance is higher for the same query scale; secondly, the security is higher when there is a third-party attack. Through the implementation of the method of this embodiment and after trial operation in colleges and universities, the method of this embodiment has a faster query speed and higher security than other traditional methods of directly encrypting grades under the same environmental conditions and scale.

[0114] Reference Figure 3 The embodiment of the present invention also provides a system for improving the security of college students' grades. The system for improving the security of college students' grades includes a set construction unit 100, a chain head calculation unit 200, a data merging unit 300, a data encryption unit 400, a model construction unit 500 and a data checking unit 600, wherein:

[0115] A set construction unit 100 is used to construct a user periodic allocation parameter set including a primary key, a user ID, a public key, a secret key, a random number and an allocation timestamp;

[0116] The chain head calculation unit 200 is used to calculate the chain head according to the encrypted field, the preset front chain calculation number and the preset front chain interception length by using a hash function; wherein the encrypted field includes the score;

[0117] The data merging unit 300 is used to take out the scores in the chain head according to the encrypted fields and merge them into the message content based on the chain random number and timestamp;

[0118] The data encryption unit 400 is used to encrypt the message content to obtain the chain content;

[0119] A model building unit 500, for building a custom chain model including a chain head, a chain random number, a timestamp, a chain content, an operation flag, and user information;

[0120] The data checking unit 600 is used to set the custom chain model on multiple servers and check the integrity of the chain generated by the custom chain model according to the user's regular distribution parameter set.

[0121] It should be noted that since the system for improving the security of college students' grades in this embodiment and the method for improving the security of college students' grades mentioned above are based on the same inventive concept, the corresponding contents in the method embodiment are also applicable to the system embodiment and will not be described in detail here.

[0122] Reference Figure 4 The embodiment of the present application also provides a device for improving the safety of college students' grades. The device for improving the safety of college students' grades includes:

[0123] at least one memory;

[0124] at least one processor;

[0125] at least one program;

[0126] The program is stored in the memory, and the processor executes at least one program to implement the method for improving the safety of college students' grades as disclosed above.

[0127] The electronic device may be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a car computer, etc.

[0128] The electronic device according to the embodiment of the present application is described in detail below.

[0129] The processor 1600 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided by the embodiments of the present disclosure;

[0130] The memory 1700 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1700 can store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1700, and the processor 1600 calls and executes the method for improving the safety of college students' grades in the embodiments of the present disclosure.

[0131] Input / output interface 1800, used to implement information input and output;

[0132] The communication interface 1900 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0133] Bus 2000 , which transmits information between various components of the device (e.g., processor 1600 , memory 1700 , input / output interface 1800 , and communication interface 1900 );

[0134] The processor 1600 , the memory 1700 , the input / output interface 1800 , and the communication interface 1900 are connected to each other in communication within the device via the bus 2000 .

[0135] The disclosed embodiment also provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned method for improving the safety of college students' grades.

[0136] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0137] The embodiments described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems.

[0138] Those skilled in the art will appreciate that the technical solutions shown in the figures do not limit the embodiments of the present disclosure and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0139] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0140] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0141] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0142] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0143] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0145] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store programs. The above is a detailed description of the embodiments of the present application in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments. Within the scope of knowledge possessed by ordinary technicians in the relevant technical field, various changes can be made without departing from the purpose of the present application.

Claims

1. A method for improving the safety of college students' grades, characterized in that: The method for improving the safety of college students' grades includes: Construct a user periodic allocation parameter set containing primary key, user ID, public key, secret key, random number and allocation timestamp; A hash function is used to calculate the chain head according to the encrypted field, the preset front chain calculation number and the preset front chain interception length; wherein the encrypted field includes the score; specifically including: The chain head is calculated using a hash function according to the encrypted field, the preset front chain calculation number and the preset front chain interception length in the following manner: Among them, L Head represents the chain head, MD5 represents the MD5 hash function, len represents the length of the L3 previous chains starting from bit 0, and b i represents the i-th front chain, L2 represents the preset front chain calculation number, L1 represents the encryption field, c n Indicates the nth record in the score collection; The scores in the chain header are taken out according to the encrypted fields, and are combined into message content based on the chain random number and timestamp; Encrypting the message content to obtain chain content; Constructing a custom chain model including the chain head, the chain random number, the timestamp, the chain content, the operation flag and user information; The custom chain model is set on multiple servers, and the integrity of the chain generated by the custom chain model is checked according to the user's periodic allocation parameter set; wherein: Copying the custom chain model to multiple servers; According to the user's periodic allocation parameter set, the integrity of the chain generated by the custom chain model is checked by multiple servers preset in the service voting method. If more than half of the servers check that the chain is complete, it means that there is no abnormality in the performance, wherein the service voting method includes the following checking functions: Wherein, C indicates the result of checking the chain, c indicates the range of checking the chain, check indicates whether the user information in the chain is consistent with the parameters in the user periodic allocation parameter set, and B m Indicates the chain that the mth server needs to check, L4 indicates the number of preset servers, and random indicates a function used to generate a random number between (L4 / 2+1, L4).

2. The method for improving the safety of college students' grades according to claim 1, characterized in that: The message content is encrypted in the following manner to obtain the chain content: M e ={rg,S} S=M+rK Among them, M e represents a point pair, r represents a chain random number, g represents a base point on the r-order ellipse e, M represents the message content, and K represents the public key.

3. The method for improving the safety of college students' grades according to claim 1, characterized in that: The chain random number is calculated as follows: r = format(random(10,m)) Among them, r represents the chain random number, format represents formatting, m represents the default value, and random represents the function used to generate random numbers.

4. The method for improving the safety of college students' grades according to claim 1, characterized in that: After checking the integrity of the chain generated by the custom chain model according to the user periodically assigned parameter set, the method for improving the security of college students' grades also includes: A real-time comparison method and a timed comparison method are used to simultaneously perform a security check on student scores; wherein the real-time comparison method is used to check the current score record according to the check function, and the timed comparison method is used to report abnormal information during the check process.

5. A system for improving the safety of college students' grades, characterized by: The system for improving the safety of college students' grades includes: A collection construction unit, used to construct a user periodic allocation parameter collection including a primary key, a user ID, a public key, a secret key, a random number, and an allocation timestamp; A chain head calculation unit, used to calculate the chain head according to the encrypted field, the preset front chain calculation number and the preset front chain interception length by using a hash function; wherein the encrypted field includes the score; specifically including: The chain head is calculated using a hash function according to the encrypted field, the preset front chain calculation number and the preset front chain interception length in the following manner: Among them, L Head represents the chain head, MD5 represents the MD5 hash function, len represents the length of the L3 previous chains starting from bit 0, and b i represents the i-th front chain, L2 represents the preset front chain calculation number, L1 represents the encryption field, c n Indicates the nth record in the score collection; A data merging unit, used to take out the scores in the chain header according to the encrypted field, and merge them into message content based on the chain random number and timestamp; A data encryption unit, used for encrypting the message content to obtain the chain content; A model building unit, used to build a custom chain model including the chain head, the chain random number, the timestamp, the chain content, an operation flag and user information; A data checking unit is used to set the custom chain model on multiple servers and check the integrity of the chain generated by the custom chain model according to the user's periodic allocation parameter set; wherein: Copying the custom chain model to multiple servers; According to the user's periodic allocation parameter set, the integrity of the chain generated by the custom chain model is checked by multiple servers preset in the service voting method. If more than half of the servers check that the chain is complete, it means that there is no abnormality in the performance, wherein the service voting method includes the following checking functions: Wherein, C indicates the result of checking the chain, c indicates the range of checking the chain, check indicates whether the user information in the chain is consistent with the parameters in the user periodic allocation parameter set, and B m Indicates the chain that the mth server needs to check, L4 indicates the number of preset servers, and random indicates a function used to generate a random number between (L4 / 2+1, L4).

6. A device for improving the safety of college students' grades, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the method for improving the safety of college students' grades as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method for improving the safety of college students' grades as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and system for recording score based on block chain technology

    CN110110532A

  • Block chain-based score management method and device and medium

    CN111008397A