A method and system for encrypting confidential examination data
Through the feature code generation encryption algorithm in the password system, the examination questions are encrypted multiple times, solving the problem of leakage risks during the transmission of the test questions, and achieving high confidentiality and security of the test questions data.
Patent Information
- Application Number
- CN202311635339.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-11-30
AI Technical Summary
There is a risk of leaking the confidentiality of existing test questions, especially during the transportation of test questions, it is difficult to effectively ensure the confidentiality of the test questions.
The encryption algorithm is generated in the cryptographic system by using feature codes, the test questions are encrypted, and the authorized key and public key password are encrypted and decrypted multiple times to ensure the secure transmission of the test questions between the test bank and the examination room server and prevent leakage.
It greatly improves the confidentiality of the test questions data information, ensures the security of the test questions during the transmission process, prevents leakage of secrets, and the diversity and variability of the password system make the password algorithm used in each examination room different, even if a certain examination room leaks the secrets. Other exam rooms.
Smart Images

Figure CN117828629B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of confidential examination technology, and in particular to a confidential examination data encryption method and system. Background Art
[0002] At present, the way to keep test questions confidential is to transport paper test papers, so as to keep the test questions confidential. However, this confidentiality method may have the risk of test questions being leaked. Summary of the invention
[0003] In order to overcome the shortcomings of the prior art, the present invention provides a method and system for encrypting confidential examination data, which realizes generating an encryption algorithm in a cryptographic system through a feature code, encrypting the selected test questions, generating a set of test papers for the test question bank based on the test paper assembly requirement options and encrypting them, thereby greatly ensuring the confidentiality of the test question data information.
[0004] In order to achieve the above-mentioned object of the invention, the present invention adopts the following technical solutions:
[0005] The first aspect of the present application provides a method for encrypting confidential examination data, comprising the following steps:
[0006] S101, accessing the question bank through the authorization key to select a test question, and generating a feature code based on the selected test question;
[0007] S102, generating an encryption algorithm in the cryptographic system through the feature code, encrypting the selected test questions, saving the encrypted test questions to the test question database, and saving the feature code to the authorization credential device;
[0008] S103, generating a set of test papers from the test question bank based on the test paper generation requirement options, encrypting the set of test papers and sending them, and encrypting the acquired feature code and sending it;
[0009] S104, obtaining the once-encrypted feature code and the encrypted set of test papers, decrypting the once-encrypted feature code based on the public key cryptography to obtain the feature code, performing a secondary encryption process on the feature code, and sending the secondary-encrypted feature code and the encrypted set of test papers;
[0010] S105, obtaining the twice-encrypted feature code and the encrypted set of test papers, decrypting the twice-encrypted feature code by using a public key password to obtain the feature code, decrypting the encrypted set of test papers based on the feature code to obtain the set of test papers, and saving them to the test site server;
[0011] S106. The examinee's client connects to the examination room server and obtains a set of examination papers for answering.
[0012] Further, accessing the question bank through the authorization key to select a test question, and generating a feature code based on the selected test question includes the following steps:
[0013] Access the question bank through the authorization key to select test questions;
[0014] Generate a 256-bit signature based on each selected test question;
[0015] Among them, the 0-31 bit feature code represents the specific information of the question, the 32-95 bit feature code is used to determine the selection and order of 64 S boxes in the cryptographic system, the 96-127 bit feature code is used to determine the selection and order of the MDS matrix in the cryptographic system, and the 128-255 bit feature code is the seed key in the cryptographic system, which is used to generate 16 round keys in the key arrangement.
[0016] Further, generating an encryption algorithm in a cryptographic system through the feature code, encrypting the selected test questions, saving the encrypted test questions to a test question bank, and saving the feature code to an authorization credential device include the following steps:
[0017] Generate encryption algorithm in the cryptographic system through 256-bit feature code;
[0018] Encrypt the selected test questions using the generated encryption algorithm, and save the encrypted test questions to the test question database;
[0019] The 256-bit signature code is saved to the authorization credential device, or the 256-bit signature code is split and saved to two or more authorization credential devices respectively.
[0020] Further, generating a set of test papers from the test question bank based on the test paper generation requirement option, encrypting and sending the set of test papers, and encrypting and sending the acquired feature code include the following steps:
[0021] Select questions from the question bank based on test paper composition requirements;
[0022] Obtain the feature code in the authorization credential device;
[0023] Decrypt the test questions selected from the test question bank using the acquired feature code and generate a set of test papers;
[0024] Encrypt the complete set of test papers based on the feature code and send them;
[0025] The acquired feature code is encrypted and sent.
[0026] Furthermore, the examinee client connects to the examination room server and obtains a set of examination papers for answering, including the following steps:
[0027] The examinee client connects to the examination room server through a web browser;
[0028] The examination room server generates candidate client feature data based on the IP address, browser cookie signature and other data information of the connected candidate client, and locks the candidate client's login account;
[0029] When the examinee user terminal is answering questions based on the complete set of test papers, the examination room server collects the examinee user terminal's test answer flow records and connection history records in real time, and generates a signature for the test answer flow records based on the USB-KEY private key to prevent the examinee's answers from being modified during the test;
[0030] The examination room server encrypts and compresses the test answer flow record of the examinee user end to generate an encrypted answer sheet data packet of the examinee user end.
[0031] Furthermore, the examination room server encrypts and compresses the test answer flow record of the examinee user terminal to generate the examinee user terminal answer sheet encrypted data package, which specifically includes the following steps:
[0032] When the test is over, a label is generated for each answer sheet through authenticated encryption as the signature of the corresponding examinee;
[0033] A 256-bit signature code is generated based on each answer sheet and saved to an authorized credential device. An encryption algorithm is generated in the cryptographic system using the generated 256-bit signature code to encrypt the answer sheet and save the encrypted answer sheet.
[0034] Furthermore, the encryption process of the encryption algorithm consists of 16 rounds, and a reversible linear transformation is added to both the input and output parts, where a full round of encryption includes a nonlinear part, a linear part, and a round key addition;
[0035] In the nonlinear part, 64 candidate (variable number) 8×8 S boxes are selected according to factors such as differential uniformity and nonlinearity. When generating the cryptographic algorithm, 16 of them are selected according to the feature code (for example, if the 32nd to 95th bits of the feature code are 1...10...0, that is, the 32nd to 47th bits are 1 and the 48th to 95th bits are 0, then the first 16 of the 64 candidate S boxes are selected in order to form the nonlinear layer of the cryptographic algorithm). 1 ,S 2 ,S 3 ,…,S 16 (The number can be changed according to requirements) as a non-linear layer of the password.
[0036] For the linear part, we select 32 (variable number) 32×32 MDS matrices with 5 branches and a realization cost (number of XOR gates after the circuit is made) less than 70. When generating the cryptographic algorithm, we select 4 of them according to the feature code, namely L 1 ,L2 ,L 3 ,L 4 As the linear diffusion layer of the cipher, after passing through the diffusion layer composed of the MDS matrix, the obtained 128-bit ciphertext is subjected to a row shift operation.
[0037] Round key addition, the round key obtained after key arrangement is XORed with the ciphertext obtained in the previous step.
[0038] The second aspect of the present application provides a confidential examination data encryption system, including a question bank data center subsystem, a secondary examination center subsystem and an examination service subsystem;
[0039] The question bank data center subsystem is used to access the question bank through the authorization key to select test questions and generate feature codes based on the selected test questions;
[0040] Generate an encryption algorithm in the cryptographic system through the feature code, encrypt the selected test questions, save the encrypted test questions to the test question database, and save the feature code to the authorization credential device;
[0041] Generate a set of test papers from the test question bank based on the test paper generation requirement options, encrypt the set of test papers and send them, encrypt the acquired feature code once and send it to the secondary test center subsystem;
[0042] The secondary examination center subsystem is used to obtain the once-encrypted feature code and the encrypted set of examination papers, decrypt the once-encrypted feature code based on the public key cryptography to obtain the feature code, perform secondary encryption on the feature code, and send the secondary-encrypted feature code and the encrypted set of examination papers to the examination service subsystem;
[0043] The examination service subsystem is used to obtain the twice-encrypted feature code and the encrypted set of examination papers, decrypt the twice-encrypted feature code by using a public key password to obtain the feature code, decrypt the encrypted set of examination papers based on the feature code to obtain the set of examination papers, and save them to the examination room server;
[0044] The examinee client connects to the examination room server and obtains a set of examination papers for answering.
[0045] Furthermore, the question bank data center subsystem is used to access the question bank through the authorization key to select a question, and generate a feature code based on the selected question, including the following steps:
[0046] Access the question bank through the authorization key to select test questions;
[0047] Generate a 256-bit signature based on each selected test question;
[0048] Among them, the 0-31 bit feature code represents the specific information of the question, the 32-95 bit feature code is used to sequentially select 16 from the 64 alternative S-boxes in the cryptographic system to form the nonlinear layer of the cryptographic algorithm, the 96-127 bit feature code is used to determine the selection and order of the MDS matrix in the cryptographic system, and the 128-255 bit feature code is the seed key in the cryptographic system, which is used to generate 16 round keys in the key arrangement.
[0049] Furthermore, the question bank data center subsystem is used to generate an encryption algorithm in the cryptographic system through the feature code, encrypt the selected test questions, save the encrypted test questions to the test bank, and save the feature code to the authorization credential device, including the following steps:
[0050] Generate encryption algorithm in the cryptographic system through 256-bit feature code;
[0051] Encrypt the selected test questions using the generated encryption algorithm, and save the encrypted test questions to the test question database;
[0052] The 256-bit signature code is saved to the authorization credential device, or the 256-bit signature code is split and saved to two or more authorization credential devices respectively.
[0053] Furthermore, the question bank data center subsystem is used to generate a set of test papers from the question bank based on the test paper generation requirement options, encrypt and send the set of test papers, and encrypt and send the acquired feature code, including the following steps:
[0054] Select questions from the question bank based on test paper composition requirements;
[0055] Obtain the feature code in the authorization credential device;
[0056] Decrypt the test questions selected from the test question bank using the acquired feature code and generate a set of test papers;
[0057] Encrypt the complete set of test papers based on the feature code and send them to the secondary test center subsystem;
[0058] The acquired feature code is encrypted once and sent to the secondary examination center subsystem.
[0059] Furthermore, the examinee client connects to the examination room server and obtains a set of examination papers for answering questions. The processing includes the following steps:
[0060] The examinee client connects to the examination room server through a web browser;
[0061] The examination room server generates candidate client feature data based on the IP address, browser cookie signature and other data information of the connected candidate client, and locks the candidate client's login account;
[0062] When the examinee user terminal is answering questions based on the complete set of test papers, the examination room server collects the examinee user terminal's test answer flow records and connection history records in real time, and generates a signature for the test answer flow records based on the USB-KEY private key to prevent the examinee's answers from being modified during the test;
[0063] The examination room server encrypts and compresses the test answer flow record of the examinee user end to generate an encrypted answer sheet data packet of the examinee user end.
[0064] Furthermore, the examination room server encrypts and compresses the test answer flow record of the examinee user terminal to generate the examinee user terminal answer sheet encrypted data package, which specifically includes the following steps:
[0065] When the test is over, a label is generated for each answer sheet through authenticated encryption as the signature of the corresponding examinee;
[0066] A 256-bit signature code is generated based on each answer sheet and saved to an authorized credential device. An encryption algorithm is generated in the cryptographic system using the generated 256-bit signature code to encrypt the answer sheet and save the encrypted answer sheet.
[0067] Furthermore, a confidential examination data encryption system also includes a question setting subsystem, which is a subsystem required for organizing question setters to enter questions for centralized question setting, and provides functions for editing question graphic content and temporarily storing questions. After the question setting work is completed, the questions temporarily stored in the question setting subsystem are exported and migrated to the question bank data center subsystem through encryption.
[0068] Furthermore, a confidential examination data encryption system also includes an examination management subsystem for formulating examination plans, candidate lists, examination room arrangements, arrangements for invigilators and examination technical support personnel, and other non-confidential functions.
[0069] The beneficial effects of the present application are as follows: it realizes the generation of encryption algorithms in the cryptographic system through feature codes, encrypts the selected test questions, generates and encrypts a set of test papers for the test question bank based on the test paper composition requirement options, thereby greatly ensuring the confidentiality of the test question data information.
[0070] It is possible to generate multiple different passwords through a set of cryptographic systems, which are not easy to crack. Different cryptographic algorithms are used in different secondary examination rooms. Even if a leak occurs in one examination room, it will not affect other examination rooms. The cryptographic system is easy to replace components and can meet various different needs. The cryptographic system is relatively light and can be implemented quickly. The test questions are dynamically stored in the data center and are not easy to steal. The test paper decryption time is very close to the test time, so the test paper is not easy to leak. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0072] Figure 1 It is a schematic diagram of the steps of a method for encrypting confidential examination data of the present invention. DETAILED DESCRIPTION
[0073] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0074] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0075] A method for encrypting confidential examination data, comprising the following steps:
[0076] S101, accessing the question bank through the authorization key to select a test question, and generating a feature code based on the selected test question;
[0077] Accessing the question bank by inputting the authorization key, selecting a question based on the question bank, and generating a feature code based on the selected question. Preferably, a 256-bit feature code is generated based on each selected question. Accessing the question bank by inputting the authorization key, selecting a question, and generating a feature code based on the selected question include the following steps:
[0078] Access the question bank through the authorization key to select test questions;
[0079] Generate a 256-bit signature based on each selected test question;
[0080] Among them, the 0-31-bit feature code represents the specific information of the question, the 32-95-bit feature code is used to determine how to sequentially extract 16 of the 64 alternative S-boxes in the cryptographic system as the nonlinear layer of the cryptographic algorithm, the 96-127-bit feature code is used to determine the selection and order of the MDS matrix in the cryptographic system, and the 128-255-bit feature code is the seed key in the cryptographic system, which is used to generate 16 round keys in the key arrangement.
[0081] S102, generating an encryption algorithm in the cryptographic system through the feature code, encrypting the selected test questions, saving the encrypted test questions to the test question database, and saving the feature code to the authorization credential device;
[0082] Access the question bank through the authorization key to select a question, and generate a 256-bit feature code based on each selected question to obtain a 256-bit feature code, generate an encryption algorithm in the cryptographic system through the feature code, and encrypt the selected question through the generated encryption algorithm to obtain an encrypted question, save the encrypted question to the question bank, and save the feature code to the authorization credential device. Generate an encryption algorithm in the cryptographic system through the feature code, encrypt the selected question, save the encrypted question to the question bank, and save the feature code to the authorization credential device. The following steps are included:
[0083] Generate encryption algorithm in the cryptographic system through 256-bit feature code;
[0084] Encrypt the selected test questions using the generated encryption algorithm, and save the encrypted test questions to the test question database;
[0085] The 256-bit signature code is saved to the authorization credential device, or the 256-bit signature code is split and saved to two or more authorization credential devices respectively.
[0086] It should be noted that the encryption process of the encryption algorithm consists of 16 rounds, with a reversible linear transformation added to both the input and output parts. One round of encryption is divided into the following three parts:
[0087] 1. Nonlinear part
[0088] According to the factors such as differential uniformity and nonlinearity, 64 (variable number) 8×8 S boxes are selected, and 16 of them are selected according to the characteristic code when generating the cryptographic algorithm, namely S 1 ,S 2 ,S 3 ,…,S 16 (The number can be changed according to requirements) as a non-linear layer of the password.
[0089] 2. Linear part
[0090] Select 32 (variable number) 32×32 MDS matrices with 5 branches and a realization cost (number of XOR gates after the circuit is made) less than 70. When generating the cryptographic algorithm, select 4 of them according to the feature code, namely L 1 ,L 2 ,L 3 ,L 4 As the linear diffusion layer of the cipher, after passing through the diffusion layer composed of the MDS matrix, the obtained 128-bit ciphertext is subjected to a row shift operation.
[0091] 3. Round key addition
[0092] Perform an XOR operation on the round key obtained after key arrangement and the ciphertext obtained in the previous step.
[0093] S103, generating a set of test papers from the test question bank based on the test paper generation requirement options, encrypting the set of test papers and sending them, and encrypting the acquired feature code and sending it;
[0094] Generate an encryption algorithm in the cryptographic system through the feature code, encrypt the selected test questions, save the encrypted test questions to the test question bank, save the feature code to the authorization credential device, generate a set of test papers based on the test paper requirement options, obtain a set of test papers, encrypt and send the set of test papers through the feature code, obtain the feature code in the authorization credential device, encrypt and send the obtained feature code. Generate a set of test papers based on the test paper requirement options, encrypt and send the set of test papers, encrypt and send the obtained feature code, and encrypt and send the obtained feature code. The following steps are included:
[0095] Select questions from the question bank based on test paper composition requirements;
[0096] Obtain the feature code in the authorization credential device;
[0097] Decrypt the test questions selected from the test question bank using the acquired feature code and generate a set of test papers;
[0098] Encrypt the complete set of test papers based on the feature code and send them;
[0099] The acquired feature code is encrypted and sent.
[0100] S104, obtaining the once-encrypted feature code and the encrypted set of test papers, decrypting the once-encrypted feature code based on the public key cryptography to obtain the feature code, performing a secondary encryption process on the feature code, and sending the secondary-encrypted feature code and the encrypted set of test papers;
[0101] Generate a set of test papers from the question bank through the test paper generation requirement option to obtain a set of test papers, encrypt the set of test papers and send it, and encrypt the acquired feature code once and send it. Obtain the once-encrypted feature code and the encrypted set of test papers, decrypt the once-encrypted feature code based on the public key password to obtain the feature code, encrypt the feature code twice, and send the twice-encrypted feature code and the encrypted set of test papers.
[0102] S105, obtaining the twice-encrypted feature code and the encrypted set of test papers, decrypting the twice-encrypted feature code by using a public key password to obtain the feature code, decrypting the encrypted set of test papers based on the feature code to obtain the set of test papers, and saving them to the test site server;
[0103] Obtain the once-encrypted feature code and the encrypted set of test papers, decrypt the once-encrypted feature code based on the public key password to obtain the feature code, perform secondary encryption on the feature code, and send the secondary-encrypted feature code and the encrypted set of test papers. Obtain the secondary-encrypted feature code and the encrypted set of test papers, decrypt the secondary-encrypted feature code based on the public key password to obtain the feature code, decrypt the encrypted set of test papers based on the feature code to obtain the set of test papers, and save them to the test site server.
[0104] S106, the examinee's client connects to the examination room server and obtains a set of examination papers for answering;
[0105] Obtain the twice-encrypted feature code and the encrypted set of examination papers, decrypt the twice-encrypted feature code using a public key password to obtain the feature code, decrypt the encrypted set of examination papers based on the feature code to obtain the set of examination papers, and save them to the examination room server.
[0106] The candidate client connects to the examination room server and obtains a set of examination papers for answering questions, including the following steps:
[0107] The examinee client connects to the examination room server through a web browser;
[0108] The examination room server generates candidate client feature data based on the IP address, browser cookie signature and other data information of the connected candidate client, and locks the candidate client's login account;
[0109] When the examinee user terminal is answering questions based on the complete set of test papers, the examination room server collects the examinee user terminal's test answer flow records and connection history records in real time, and generates a signature for the test answer flow records based on the USB-KEY private key to prevent the examinee's answers from being modified during the test;
[0110] The examination room server encrypts and compresses the test answer flow record of the examinee user end to generate the examinee user end answer sheet encrypted data package, which specifically includes the following steps:
[0111] When the test is over, a label is generated for each answer sheet through authenticated encryption as the signature of the corresponding examinee;
[0112] A 256-bit signature code is generated based on each answer sheet and saved to an authorized credential device. An encryption algorithm is generated in the cryptographic system using the generated 256-bit signature code to encrypt the answer sheet and save the encrypted answer sheet.
[0113] The above is a confidential examination data encryption method provided in an embodiment of the present application, and the following is a confidential examination data encryption system provided in an embodiment of the present application.
[0114] Embodiment 1:
[0115] A confidential examination data encryption system, including a question bank data center subsystem, a secondary examination center subsystem and an examination service subsystem;
[0116] The question bank data center subsystem is used to access the question bank through the authorization key to select test questions and generate feature codes based on the selected test questions;
[0117] Generate an encryption algorithm in the cryptographic system through the feature code, encrypt the selected test questions, save the encrypted test questions to the test question database, and save the feature code to the authorization credential device;
[0118] Generate a set of test papers from the test question bank based on the test paper generation requirement options, encrypt the set of test papers and send them, encrypt the acquired feature code once and send it to the secondary test center subsystem;
[0119] The secondary examination center subsystem is used to obtain the once-encrypted feature code and the encrypted set of examination papers, decrypt the once-encrypted feature code based on the public key cryptography to obtain the feature code, perform secondary encryption on the feature code, and send the secondary-encrypted feature code and the encrypted set of examination papers to the examination service subsystem;
[0120] The examination service subsystem is used to obtain the twice-encrypted feature code and the encrypted set of examination papers, decrypt the twice-encrypted feature code by using a public key password to obtain the feature code, decrypt the encrypted set of examination papers based on the feature code to obtain the set of examination papers, and save them to the examination room server;
[0121] The examinee client connects to the examination room server and obtains a set of examination papers for answering.
[0122] The question bank data center subsystem is used to access the question bank through the authorization key to select a question, and generate a feature code based on the selected question. Preferably, a 256-bit feature code is generated based on each selected question. The question bank data center subsystem is used to access the question bank through the authorization key to select a question, and generate a feature code based on the selected question, including the following steps:
[0123] Access the question bank through the authorization key to select test questions;
[0124] Generate a 256-bit signature based on each selected test question;
[0125] Among them, the 0-31 bit feature code represents the specific information of the question, the 32-95 bit feature code is used to determine the selection and order of 64 S boxes in the cryptographic system, the 96-127 bit feature code is used to determine the selection and order of the MDS matrix in the cryptographic system, and the 128-255 bit feature code is the seed key in the cryptographic system, which is used to generate 16 round keys in the key arrangement.
[0126] The question bank data center subsystem is used to generate an encryption algorithm in the cryptographic system through the feature code, encrypt the selected test questions, save the encrypted test questions to the test question bank, and save the feature code to the authorization credential device. It should be noted that after each update of the test questions, the feature codes of all test questions are updated, and all test questions in the question bank are re-encrypted with the new feature code, and then the new feature code is saved to the authorization credential device. In this way, the test questions are dynamically saved in the test question bank of the data center to prevent theft.
[0127] The question bank data center subsystem is used to generate an encryption algorithm in the cryptographic system through the feature code, encrypt the selected test questions, save the encrypted test questions to the question bank, and save the feature code to the authorization credential device, including the following steps:
[0128] Generate encryption algorithm in the cryptographic system through 256-bit feature code;
[0129] Encrypt the selected test questions using the generated encryption algorithm, and save the encrypted test questions to the test question database;
[0130] The 256-bit signature code is saved to the authorization credential device, or the 256-bit signature code is split and saved to two or more authorization credential devices respectively.
[0131] It should be noted that the encryption process of the encryption algorithm has 16 rounds in total, and a reversible linear transformation is added to the input and output parts, and one round of encryption is divided into the following three parts:
[0132] 1. Nonlinear part
[0133] According to the factors such as differential uniformity and nonlinearity, 64 (variable number) 8×8 S boxes are selected, and 16 of them are selected according to the characteristic code when generating the cryptographic algorithm, namely S 1 ,S 2 ,S 3 ,…,S 16 (The number can be changed according to requirements) as a non-linear layer of the password.
[0134] 2. Linear part
[0135] Select 32 (variable number) 32×32 MDS matrices with 5 branches and a realization cost (number of XOR gates after the circuit is made) less than 70. When generating the cryptographic algorithm, select 4 of them according to the feature code, namely L 1 ,L 2 ,L 3 ,L 4 As the linear diffusion layer of the cipher, after passing through the diffusion layer composed of the MDS matrix, the obtained 128-bit ciphertext is subjected to a row shift operation.
[0136] 3. Round key addition
[0137] Perform an XOR operation on the round key obtained after key arrangement and the ciphertext obtained in the previous step.
[0138] The question bank data center subsystem is used to generate a set of test papers from the question bank based on the test paper setting requirement options, encrypt the set of test papers and send them, and encrypt the acquired feature code once and send it to the secondary test center subsystem. The question bank data center subsystem is used to generate a set of test papers from the question bank based on the test paper setting requirement options, encrypt the set of test papers and send them, and encrypt the acquired feature code once and send it, including the following steps:
[0139] Select questions from the question bank based on test paper composition requirements;
[0140] Obtain the feature code in the authorization credential device;
[0141] Decrypt the test questions selected from the test question bank using the acquired feature code and generate a set of test papers;
[0142] Encrypt the complete set of test papers based on the feature code and send them to the secondary test center subsystem;
[0143] The acquired feature code is encrypted once and sent to the secondary examination center subsystem.
[0144] The secondary examination center subsystem is used to obtain the once encrypted feature code and the encrypted set of examination papers, decrypt the once encrypted feature code based on the public key cryptography to obtain the feature code, perform secondary encryption on the feature code, and send the secondary encrypted feature code and the encrypted set of examination papers to the examination service subsystem.
[0145] It should be noted that the secondary examination center subsystem is used to receive the data of a certain examination questions distributed by the question bank data center, and is also responsible for collecting the data of candidates' answers and marking the examination papers. It is used to receive data about the examination plan, candidate list, examination room arrangement, invigilator and examination technical support personnel arrangement from the examination management subsystem. As the upper service end of the examination subsystem, the secondary examination center subsystem outputs the examination data package to the examination subsystem of each examination room according to the summarized examination plan, candidate list, examination room arrangement, invigilator and examination technical support personnel, and examination question data, and sends it to the examination subsystem of each examination room, and the examination subsystem provides examination services to the candidates. After the examination, the candidate answer paper data uploaded by the examination subsystem is received. The secondary examination center subsystem only temporarily establishes a network connection when receiving the examination questions from the question bank data center subsystem and uploading the answer paper marking results to the question bank data center subsystem. In addition, it disconnects from the question bank data center subsystem throughout the process. Avoid the examination subsystems in various locations outside from directly connecting to the question bank data center subsystem to prevent network leakage of question bank center data.
[0146] The secondary examination center subsystem will mark the examinees' answer sheets, and the objective questions can be marked automatically. Before marking the test papers, the secondary examination center subsystem will automatically check the examinees' answer sheet data as follows:
[0147] Extract the characteristic code of each test paper from the device of the authorized personnel of the secondary test center to decrypt the test paper;
[0148] Compare the label of each candidate's answer sheet with the label stored at the secondary examination center to confirm that the two labels are identical;
[0149] Signature verification is performed on the candidate's answer record to prevent any record of the candidate's answer content, recording time and other data from being illegally modified during the examination;
[0150] After the decryption of the examinee's answer sheet, the verification of the answer sheet label, and the verification of the signature of the answer record are all completely correct, the system will correct the examinee's answer sheet and output the score.
[0151] The examination service subsystem is used to obtain the double-encrypted feature code and the encrypted set of examination papers, decrypt the double-encrypted feature code through the public key password to obtain the feature code, decrypt the encrypted set of examination papers based on the feature code to obtain the set of examination papers, and save them to the examination room server.
[0152] The examinee client connects to the examination room server and obtains a set of examination papers for answering. The process includes the following steps:
[0153] The examinee client connects to the examination room server through a web browser;
[0154] The examination room server generates candidate client feature data based on the IP address, browser cookie signature and other data information of the connected candidate client, and locks the candidate client's login account;
[0155] When the examinee user terminal is answering questions based on the complete set of test papers, the examination room server collects the examinee user terminal's test answer flow records and connection history records in real time, and generates a signature for the test answer flow records based on the USB-KEY private key to prevent the examinee's answers from being modified during the test;
[0156] The examination room server encrypts and compresses the test answer flow record of the examinee user end to generate the examinee user end answer sheet encrypted data package, which specifically includes the following steps:
[0157] When the test is over, a label is generated for each answer sheet through authenticated encryption as the signature of the corresponding examinee;
[0158] A 256-bit signature code is generated based on each answer sheet and saved to an authorized credential device. An encryption algorithm is generated in the cryptographic system using the generated 256-bit signature code to encrypt the answer sheet and save the encrypted answer sheet.
[0159] It should be noted that the examination subsystem is set up on the examination room server, providing examination functions to candidates in the form of Web applications, and providing online examination functions and invigilation management functions to invigilators and technical support personnel.
[0160] For example, before the exam begins, the encrypted test questions, candidate lists, exam room lists and other related test data are obtained from the secondary test center subsystem. The USB-KEY private key is inserted into the exam room server to decrypt the feature code, and the plain text of the test questions is decrypted using the feature code and stored in the server memory. The examinee accesses the exam subsystem through a web browser, obtains the test questions within the specified exam time, and takes the test. In the exam subsystem, the examinee's IP address, browser cookie signature and other data are used as the examinee's feature data, and locked with the examinee's login account to prevent the examinee from changing the answer sheet to another person's account without permission.
[0161] Establish a machine learning modeling system for early warning of cheating based on examinees' operational behaviors. Use machine learning models (such as decision trees) to associate operational behaviors (including turning pages, reviewing questions, modifying answers, pausing answers for a long time, etc.) with cheating warning behavior feature data, convert them into feature vectors for machine learning training models, and apply them to early warning reminders for examinees in the examination room.
[0162] During the exam, all candidates' answer records are collected in real time, connected to the historical records, and signed with the USB-KEY private key to form an unmodifiable and irrefutable answer record to prevent the candidates' answers from being illegally modified during the exam. The data format is as follows:
[0163]
[0164] Note: In the first record, the "Signature of the previous record" is empty, and the "Signature of this record" is used as the "Signature of the previous record" of the next record.
[0165] Encrypt the candidate's answer record and package it into a candidate answer sheet encryption package. The encryption method is as follows:
[0166] After an exam, a label is generated for each answer sheet using authentication encryption as the signature of the corresponding candidate and transmitted to the secondary examination center. At the same time, a 256-bit feature code is generated for each answer sheet and stored in the equipment of the authorized personnel of the secondary examination center. The feature code is used to generate a corresponding algorithm in the cryptographic system to encrypt the candidate's test paper. The encrypted test paper is stored in the secondary examination center for review.
[0167] Embodiment 2:
[0168] The difference from Example 1 is that a confidential examination data encryption system also includes a question setting subsystem, which is a subsystem required for organizing question setters to enter questions for centralized question setting, and provides functions for editing question graphic content and temporarily storing questions. After the question setting work is completed, the questions temporarily stored in the question setting subsystem are exported and migrated to the question bank data center subsystem through encryption.
[0169] Embodiment three:
[0170] The difference from the second embodiment is that a confidential examination data encryption system also includes an examination management subsystem for formulating examination plans, candidate lists, examination room arrangements, invigilators and examination technical support personnel arrangements and other non-confidential functions.
[0171] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0172] The terms "first", "second" and "third" etc. 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 sequential order. 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 a sequence other than those illustrated or described herein, for example. 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.
[0173] 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.
[0174] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0175] 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.
[0176] 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.
[0177] 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 a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.
[0178] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for encrypting confidential examination data, characterized in that: The following steps are involved: S101, the question bank data center subsystem accesses the question bank through the authorization key to select a question, and generates a feature code based on the selected question; S102, the question bank data center subsystem generates an encryption algorithm in the cryptographic system through the feature code, encrypts the selected test questions, saves the encrypted test questions to the test question bank, and saves the feature code to the authorization credential device; S103, the question bank data center subsystem generates a set of test papers from the question bank based on the test paper generation requirement options, encrypts the set of test papers and sends them, and encrypts the acquired feature code and sends it to the secondary test center subsystem; S104, the secondary test center subsystem obtains the once encrypted feature code and the encrypted set of test papers, decrypts the once encrypted feature code based on the public key cryptography to obtain the feature code, performs secondary encryption on the feature code, and sends the secondary encrypted feature code and the encrypted set of test papers to the test service subsystem; S105, the test service subsystem obtains the twice-encrypted feature code and the encrypted set of test papers, decrypts the twice-encrypted feature code using a public key password to obtain the feature code, decrypts the encrypted set of test papers based on the feature code to obtain the set of test papers, and saves the decrypted set of test papers to the test room server; S106, the examinee's client connects to the examination room server and obtains a set of examination papers for answering; The method of accessing the question bank through the authorization key to select a test question and generating a feature code based on the selected test question includes the following steps: Access the question bank through the authorization key to select test questions; Generate a 256-bit signature based on each selected test question; Among them, the 0-31 bit feature code represents the specific information of the question, the 32-95 bit feature code is used to sequentially select 16 from the 64 alternative S-boxes in the cryptographic system to form the nonlinear layer of the cryptographic algorithm, the 96-127 bit feature code is used to determine the selection and order of the MDS matrix in the cryptographic system, and the 128-255 bit feature code is the seed key in the cryptographic system, which is used to generate 16 round keys in the key arrangement.
2. The method for encrypting confidential examination data according to claim 1, characterized in that: The method of generating an encryption algorithm in a cryptographic system through a feature code, encrypting the selected test questions, saving the encrypted test questions to a test question library, and saving the feature code to an authorization credential device includes the following steps: Generate encryption algorithm in the cryptographic system through 256-bit feature code; Encrypt the selected test questions using the generated encryption algorithm, and save the encrypted test questions to the test question database; The 256-bit signature code is saved to the authorization credential device, or the 256-bit signature code is split and saved to two or more authorization credential devices respectively.
3. The method for encrypting confidential examination data according to claim 1, characterized in that: The process of generating a set of test papers from the test question bank based on the test paper generation requirement option, encrypting and sending the set of test papers, and encrypting and sending the acquired feature code comprises the following steps: Select questions from the question bank based on test paper composition requirements; Obtain the feature code in the authorization credential device; Decrypt the test questions selected from the test question bank using the acquired feature code and generate a set of test papers; Encrypt the complete set of test papers based on the feature code and send them; The acquired feature code is encrypted and sent.
4. The method for encrypting confidential examination data according to claim 1, characterized in that: The examinee client connects to the examination room server and obtains a set of examination papers for answering questions, including the following steps: The examinee client connects to the examination room server through a web browser; The examination room server generates candidate client feature data based on the IP address, browser cookie signature and other data information of the connected candidate client, and locks the candidate client's login account; When the examinee user terminal is answering questions based on the complete set of test papers, the examination room server collects the examinee user terminal's test answer flow records and connection history records in real time, and generates a signature for the test answer flow records based on the USB-KEY private key to prevent the examinee's answers from being modified during the test; The examination room server encrypts and compresses the test answer flow record of the examinee user end to generate an encrypted answer sheet data packet of the examinee user end.
5. A confidential examination data encryption system, characterized in that: include: The question bank data center subsystem is used to access the question bank through the authorization key to select test questions and generate feature codes based on the selected test questions; Generate an encryption algorithm in the cryptographic system through the feature code, encrypt the selected test questions, save the encrypted test questions to the test question database, and save the feature code to the authorization credential device; Generate a set of test papers from the test question bank based on the test paper generation requirement options, encrypt the set of test papers and send them, encrypt the acquired feature code once and send it to the secondary test center subsystem; The secondary examination center subsystem is used to obtain the once-encrypted feature code and the encrypted set of examination papers, decrypt the once-encrypted feature code based on the public key cryptography to obtain the feature code, perform secondary encryption on the feature code, and send the secondary-encrypted feature code and the encrypted set of examination papers to the examination service subsystem; The examination service subsystem is used to obtain the twice-encrypted feature code and the encrypted set of examination papers, decrypt the twice-encrypted feature code by using a public key password to obtain the feature code, decrypt the encrypted set of examination papers based on the feature code to obtain the set of examination papers, and save them to the examination room server; The examinee's client connects to the examination room server and obtains a set of examination papers for answering; The question bank data center subsystem is used to access the question bank through the authorization key to select a question, and generate a feature code based on the selected question, including the following steps: Access the question bank through the authorization key to select test questions; Generate a 256-bit signature based on each selected test question; Among them, the 0-31 bit feature code represents the specific information of the question, the 32-95 bit feature code is used to sequentially select 16 from the 64 alternative S-boxes in the cryptographic system to form the nonlinear layer of the cryptographic algorithm, the 96-127 bit feature code is used to determine the selection and order of the MDS matrix in the cryptographic system, and the 128-255 bit feature code is the seed key in the cryptographic algorithm, which is used to generate 16 round keys in the key arrangement.
6. The confidential examination data encryption system according to claim 5, characterized in that: The question bank data center subsystem is used to generate an encryption algorithm in a cryptographic system through a feature code, encrypt the selected test questions, save the encrypted test questions to the test bank, and save the feature code to the authorization credential device, including the following steps: Generate encryption algorithm in the cryptographic system through 256-bit feature code; Encrypt the selected test questions using the generated encryption algorithm, and save the encrypted test questions to the test question database; The 256-bit signature code is saved to the authorization credential device, or the 256-bit signature code is split and saved to two or more authorization credential devices respectively.
7. The confidential examination data encryption system according to claim 5, characterized in that: The question bank data center subsystem is used to generate a set of test papers from the question bank based on the test paper generation requirement options, encrypt and send the set of test papers, and encrypt and send the acquired feature code, including the following steps: Select questions from the question bank based on test paper composition requirements; Obtain the feature code in the authorization credential device; Decrypt the test questions selected from the test question bank using the acquired feature code and generate a set of test papers; Encrypt the complete set of test papers based on the feature code and send them to the secondary test center subsystem; The acquired feature code is encrypted once and sent to the secondary examination center subsystem.
8. The confidential examination data encryption system according to claim 5, characterized in that: The test service subsystem is used for the examinee's client to connect to the test server and obtain a set of test papers for answering questions. The processing includes the following steps: The examinee client connects to the examination room server through a web browser; The examination room server generates candidate client feature data based on the IP address, browser cookie signature and other data information of the connected candidate client, and locks the candidate client's login account; When the examinee user terminal is answering questions based on the complete set of test papers, the examination room server collects the examinee user terminal's test answer flow records and connection history records in real time, and generates a signature for the test answer flow records based on the USB-KEY private key to prevent the examinee's answers from being modified during the test; The examination room server encrypts and compresses the test answer flow record of the examinee user end to generate an encrypted answer sheet data packet of the examinee user end.
