A method for archive storage control based on archive security management
By performing double verification and encrypted storage in electronic file storage management, the problem of insufficient security in electronic file storage management in the existing technology is solved, and higher security and speed are achieved.
Patent Information
- Application Number
- CN202410931132.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-12
AI Technical Summary
The existing technology lacks effective access verification measures in electronic archive storage management and is susceptible to network hijacking and login identity leakage, resulting in insufficient security of archive databases.
Using a method based on file security management, binary conversion verification is performed by obtaining the user's access ID and password, and the bag-of-words model and word embedding technology are used to determine the user's access rights. After double verification, the access records are encrypted and stored.
Significantly improves the security of the archive database, preventing irrelevant personnel and unauthorized personnel from accessing the archives, while reducing the complexity of the verification process and improving security.
Smart Images

Figure CN118468345B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of archive management, and in particular relates to an archive storage control method based on archive security management. Background Art
[0002] In the information age, the rapid growth of data has become a norm. Enterprises are faced with the challenge of handling a large number of electronic files, such as personnel contracts, legal regulations involved in enterprise management, and various contracts signed with partners within the scope of business operations, all of which need to be processed into electronic files and archived. When dealing with such a large amount of data, effective file management becomes crucial. In the prior art, the storage and management of electronic files is mostly carried out by performing login identity authentication and restrictions on personnel who can access the archives, but no separate verification of personnel access to the archives is performed. This method is susceptible to network hijacking and login identity leakage. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes an archive storage control method based on archive security management.
[0004] The technical solution of the present invention is: a method for file storage control based on file security management comprises the following steps:
[0005] S1. Obtain the user's access ID and login password in the archive database and verify the user's access;
[0006] S2, obtaining the access keyword sequence of the user who has passed the access verification in the archive database, and determining the user's permitted access content based on the user's access keyword sequence;
[0007] S3. After the user views the content that is allowed to be accessed, the user's access record is encrypted and stored in the archive database.
[0008] Furthermore, S1 includes the following sub-steps:
[0009] S11, obtaining the user's access ID in the archive database, and determining whether the user's access ID is in the archive database access whitelist, if so, proceeding to S12, otherwise the user access verification fails;
[0010] S12, converting the user's access ID and login password into binary form, and combining them to generate an access data sequence;
[0011] S13. Determine whether there is an identical access data sequence in the archive database. If so, the user access verification is successful. Otherwise, the user access verification is unsuccessful.
[0012] The beneficial effect of the above further scheme is: in the present invention, in S11, the concept of whitelist corresponds to the blacklist. If a whitelist is established, users in the whitelist will be given priority and will not be rejected, and the security and convenience are greatly improved. In S12, the user's access ID may contain English letters, so the access ID must be converted into ASCII code and then converted into binary form. After the binary access ID and access password are combined, they are compared with the access data packet preset in the archive database. If there is an identical access data packet, the user verification is passed. The binary conversion operation of the present invention can reduce the complexity of the verification process, and the binary verification method is more secure.
[0013] Furthermore, S2 includes the following sub-steps:
[0014] S21, obtaining an access keyword sequence of a user who has passed the access verification in the archive database, and constructing an access search interval for the user's access keyword sequence;
[0015] S22, using a bag-of-words model to convert the summary content of each file in the file database into a summary vector, and generating an access search value for each file according to the summary vector;
[0016] S23, among all the archives whose access search values belong to the access search interval, select the archive with the largest access search value as the content to be accessed by the user;
[0017] S24, obtaining the access password input by the user for the content to be accessed, and when the access password is passed, treating the content to be accessed as the content allowed to be accessed.
[0018] Furthermore, S21 includes the following sub-steps:
[0019] S221, mapping each keyword in the access keyword sequence into a low-dimensional vector using word embedding technology;
[0020] S222, determining an adjustment value of the access search interval according to the low-dimensional vector of each keyword;
[0021] S223: Determine the upper limit and the lower limit of the access search interval according to the adjustment value of the access search interval.
[0022] The beneficial effect of the above further solution is that in the present invention, the word embedding technology can express the words in the text through a low-dimensional vector. After mapping each keyword into a low-dimensional vector using word embedding, it is also necessary to obtain the maximum number of archives that the user can access in the archive database, for example, a user with administrator authority can access more archive data in the archive database than a user with visitor authority. Using the above parameters, the access search interval of the access keyword input by the user is determined.
[0023] Furthermore, in S222, the calculation formula of the adjustment value A of the access search interval is:
[0024] ; In the formula, d h represents the low-dimensional vector of the hth keyword in the access keyword sequence, H represents the number of keywords in the access keyword sequence, and exp(·) represents the exponential function.
[0025] Furthermore, in S223, the upper limit S of the access search interval is OUT The calculation formula is:
[0026] ; In the formula, A represents the adjustment value of the access search interval, H represents the number of keywords in the access keyword sequence, and M represents the maximum number of archives that a user can access in the archive database;
[0027] In S23, the lower limit S of the search interval is accessed. IN The calculation formula is:
[0028] .
[0029] Furthermore, in S22, the calculation formula of the archive access retrieval value β is:
[0030] ; Where D represents the summary vector corresponding to the summary content of the file, and K represents the number of words in the summary content of the file.
[0031] The bag-of-words model is a text representation method widely used in natural language processing and information retrieval, which can convert text into vectors.
[0032] Further, S24 includes the following sub-steps:
[0033] S241, obtaining the access password input by the user for the content to be accessed, and evenly splitting the access password into a number of password data blocks;
[0034] S242, inputting a plurality of password data blocks into a password verification equation;
[0035] S243, determine whether the password verification equation is established. If so, the access password entered by the user is passed, and the content to be accessed is regarded as the content allowed to be accessed. Otherwise, the access password entered by the user is not passed.
[0036] Furthermore, in S242, the expression of the password verification equation is:
[0037] ; In the formula, G represents the checksum value of the content to be accessed, CRC jIndicates the CRC value of the jth password data block in the access password, J indicates the password data block of the access password, and L indicates the length of the password data block. Indicates rounding up.
[0038] The beneficial effect of the above further scheme is: in the present invention, a check value is set for each file in the file database for checking with the access password input by the user. When the value corresponding to the user's access password is equal to the check value of the file, it is determined that the password is correct, which can greatly reduce the comparison time between the access password and the file. CRC is a cyclic redundancy check code, which is a commonly used check code in the field of computer network communication.
[0039] Furthermore, in S3, after the user views the permitted access content, the user's viewing time for the permitted access content, the user's access ID, and the user's access keyword sequence are used as an access data packet, and the access data packet is encrypted using a symmetric encryption algorithm and stored in the archive database.
[0040] The beneficial effects of the present invention are:
[0041] (1) The present invention discloses an archive storage control method based on archive security management, which performs two verifications on the user's access to the archive database, which can greatly improve the security of the archive database, and can prevent irrelevant personnel from viewing the contents of the archive database, and prevent the access personnel from viewing archives that exceed their personal authority;
[0042] (2) The present invention converts the format of the access password corresponding to the user ID and performs a preliminary verification of the user's identity. After the user identity verification is passed, when the user accesses a single file, the user is required to enter the correct file access password to perform a secondary verification of the user's access rights;
[0043] (3) The present invention also packages and encrypts the entire access record of the user to prevent the access record of the archive database from being leaked. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 The following is a flow chart of the archive storage control method based on archive security management. DETAILED DESCRIPTION
[0045] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
[0046] like Figure 1 As shown, the present invention provides an archive storage control method based on archive security management, comprising the following steps:
[0047] S1. Obtain the user's access ID and login password in the archive database and verify the user's access;
[0048] S2, obtaining the access keyword sequence of the user who has passed the access verification in the archive database, and determining the user's permitted access content based on the user's access keyword sequence;
[0049] S3. After the user views the content that is allowed to be accessed, the user's access record is encrypted and stored in the archive database.
[0050] In this embodiment of the present invention, S1 includes the following sub-steps:
[0051] S11, obtaining the user's access ID in the archive database, and determining whether the user's access ID is in the archive database access whitelist, if so, proceeding to S12, otherwise the user access verification fails;
[0052] S12, converting the user's access ID and login password into binary form, and combining them to generate an access data sequence;
[0053] S13. Determine whether there is an identical access data sequence in the archive database. If so, the user access verification is successful. Otherwise, the user access verification is unsuccessful.
[0054] In the present invention, in S11, the concept of a whitelist corresponds to a blacklist. If a whitelist is established, users in the whitelist will be given priority and will not be rejected, and security and speed are greatly improved. In S12, the user's access ID may contain English letters, so the access ID must first be converted into ASCII code and then converted into binary form. After the binary access ID and access password are combined, they are compared with the access data packet preset in the archive database. If there is an identical access data packet, the user verification is passed. The binary conversion operation of the present invention can reduce the complexity of the verification process, and the binary verification method is more secure.
[0055] In this embodiment of the present invention, S2 includes the following sub-steps:
[0056] S21, obtaining an access keyword sequence of a user who has passed the access verification in the archive database, and constructing an access search interval for the user's access keyword sequence;
[0057] S22, using a bag-of-words model to convert the summary content of each file in the file database into a summary vector, and generating an access search value for each file according to the summary vector;
[0058] S23, among all the archives whose access search values belong to the access search interval, select the archive with the largest access search value as the content to be accessed by the user;
[0059] S24, obtaining the access password input by the user for the content to be accessed, and when the access password is passed, treating the content to be accessed as the content allowed to be accessed.
[0060] In the embodiment of the present invention, S21 includes the following sub-steps:
[0061] S221, mapping each keyword in the access keyword sequence into a low-dimensional vector using word embedding technology;
[0062] S222, determining an adjustment value of the access search interval according to the low-dimensional vector of each keyword;
[0063] S223: Determine the upper limit and the lower limit of the access search interval according to the adjustment value of the access search interval.
[0064] In the present invention, the word embedding technology can express the words in the text through a low-dimensional vector. After mapping each keyword into a low-dimensional vector using word embedding, it is also necessary to obtain the maximum number of archives that the user can access in the archive database. For example, a user with administrator authority can access more archive data in the archive database than a user with visitor authority. Using the above parameters, the access search interval of the access keyword input by the user is determined.
[0065] In the embodiment of the present invention, in S222, the calculation formula of the adjustment value A of the access search interval is:
[0066] ; In the formula, d h represents the low-dimensional vector of the hth keyword in the access keyword sequence, H represents the number of keywords in the access keyword sequence, and exp(·) represents the exponential function.
[0067] In the embodiment of the present invention, in S223, the upper limit S of the access search interval is OUT The calculation formula is:
[0068] ; In the formula, A represents the adjustment value of the access search interval, H represents the number of keywords in the access keyword sequence, and M represents the maximum number of archives that a user can access in the archive database;
[0069] In S23, the lower limit S of the search interval is accessed. IN The calculation formula is:
[0070] .
[0071] In the embodiment of the present invention, in S22, the calculation formula of the access retrieval value β of the archive is:
[0072] ; Where D represents the summary vector corresponding to the summary content of the file, and K represents the number of words in the summary content of the file.
[0073] The bag-of-words model is a text representation method widely used in natural language processing and information retrieval, which can convert text into vectors.
[0074] In this embodiment of the present invention, S24 includes the following sub-steps:
[0075] S241, obtaining the access password input by the user for the content to be accessed, and evenly splitting the access password into a number of password data blocks;
[0076] S242, inputting a plurality of password data blocks into a password verification equation;
[0077] S243, determine whether the password verification equation is established. If so, the access password entered by the user is passed, and the content to be accessed is regarded as the content allowed to be accessed. Otherwise, the access password entered by the user is not passed.
[0078] In the embodiment of the present invention, in S242, the expression of the password verification equation is:
[0079] ; In the formula, G represents the checksum value of the content to be accessed, CRC j Indicates the CRC value of the jth password data block in the access password, J indicates the password data block of the access password, and L indicates the length of the password data block. Indicates rounding up.
[0080] In the present invention, a check value is set for each file in the file database for checking with the access password input by the user. When the value corresponding to the user's access password is equal to the check value of the file, the password is determined to be correct, which can greatly reduce the comparison time between the access password and the file. CRC is a cyclic redundancy check code, which is a commonly used check code in the field of computer network communication.
[0081] In the embodiment of the present invention, in S3, after the user views the permitted access content, the duration of the user's viewing of the permitted access content, the user's access ID, and the user's access keyword sequence are used as an access data packet, and the access data packet is encrypted using a symmetric encryption algorithm and stored in the archive database.
[0082] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A method for file storage control based on file security management, characterized in that: The following steps are involved: S1. Obtain the user's access ID and login password in the archive database and verify the user's access; S2, obtaining the access keyword sequence of the user who has passed the access verification in the archive database, and determining the user's permitted access content based on the user's access keyword sequence; S3. After the user views the content that is allowed to be accessed, the user's access record is encrypted and stored in the archive database; The S2 comprises the following sub-steps: S21, obtaining an access keyword sequence of a user who has passed the access verification in the archive database, and constructing an access search interval for the user's access keyword sequence; S22, using a bag-of-words model to convert the summary content of each file in the file database into a summary vector, and generating an access search value for each file according to the summary vector; S23, among all the archives whose access search values belong to the access search interval, select the archive with the largest access search value as the content to be accessed by the user; S24, obtaining the access password input by the user for the content to be accessed, and when the access password is passed, treating the content to be accessed as the content allowed to be accessed; The S21 comprises the following sub-steps: S221, mapping each keyword in the access keyword sequence into a low-dimensional vector using word embedding technology; S222, determining an adjustment value of the access search interval according to the low-dimensional vector of each keyword; S223, determining the upper limit and the lower limit of the access search interval according to the adjustment value of the access search interval; In S222, the calculation formula of the adjustment value A of the access search interval is: ; In the formula, d h represents the low-dimensional vector of the hth keyword in the access keyword sequence, H represents the number of keywords in the access keyword sequence, and exp(·) represents the exponential function; In the above S223, the upper limit S of the access search interval is OUT The calculation formula is: ; In the formula, A represents the adjustment value of the access search interval, H represents the number of keywords in the access keyword sequence, and M represents the maximum number of archives that a user can access in the archive database; In S23, the lower limit S of the search interval is accessed. IN The calculation formula is: ; In S22, the calculation formula of the access retrieval value β of the archive is: ; Where D represents the summary vector corresponding to the summary content of the file, and K represents the number of words in the summary content of the file; The S24 comprises the following sub-steps: S241, obtaining the access password input by the user for the content to be accessed, and evenly splitting the access password into a number of password data blocks; S242, inputting a plurality of password data blocks into a password verification equation; S243, determine whether the password verification equation is established. If so, the access password entered by the user is passed, and the content to be accessed is regarded as the content allowed to be accessed. Otherwise, the access password entered by the user is not passed.
2. The archive storage control method based on archive security management according to claim 1 is characterized in that: The S1 comprises the following sub-steps: S11, obtaining the user's access ID in the archive database, and determining whether the user's access ID is in the archive database access whitelist, if so, proceeding to S12, otherwise the user access verification fails; S12, converting the user's access ID and login password into binary form, and combining them to generate an access data sequence; S13. Determine whether there is an identical access data sequence in the archive database. If so, the user access verification is successful. Otherwise, the user access verification is unsuccessful.
3. The archive storage control method based on archive security management according to claim 1 is characterized in that: In S242, the expression of the password verification equation is: ; In the formula, G represents the checksum value of the content to be accessed, CRC j Indicates the CRC value of the jth password data block in the access password, J indicates the password data block of the access password, and L indicates the length of the password data block. Indicates rounding up.
4. The archive storage control method based on archive security management according to claim 1 is characterized in that: In S3, after the user views the permitted access content, the user's viewing time for the permitted access content, the user's access ID and the user's access keyword sequence are used as an access data packet, which is encrypted using a symmetric encryption algorithm and stored in the archive database.
Citation Information
Patent Citations
Document pushing method and device
CN109492156A
Medical data information retrieval method based on co-occurrence analysis and spectral clustering
CN114691826A
Information processing device and program
JP2021168087A
Hash method for high dimension vector, and vector quantization method and device
WO2016110125A1
