Text encryption storage and content dynamic hiding presentation method based on multi-level authority management

Through multi-level permission management mechanism and encryption technology, data security and privacy protection issues in existing text encrypted storage and content dynamic hidden presentation methods are solved, and refined management of text and complex permission control are realized, which improves data security and User experience.

CN119293825APending Publication Date: 2025-01-10XINJIANG UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411524311.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The existing text encrypted storage and dynamic content hiding presentation methods rely on centralized servers, with data security and privacy protection issues, and the permission control method is too simple to adjust permissions in a timely manner, and cannot meet the complex permission management needs.

Method used

Adopt a multi-level permission management mechanism to encrypt text data, and combine permission bits with character bits to achieve refined management and dynamic hidden presentation, and use advanced encryption technology to encrypt sensitive data to provide flexible access control mechanisms. .

Benefits of technology

It significantly improves the security and privacy of data, ensures that only authorized users can access sensitive content, reduces the risk of data leakage, improves user experience through refined permission management, and avoids unauthorized access and display of irrelevant information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119293825A_ABST
    Figure CN119293825A_ABST
Patent Text Reader

Abstract

The invention relates to the field of text processing in block chains, in particular to a text encryption storage and content dynamic hiding presentation method based on multilevel authority management. According to the technical scheme, the multi-level authority management text encryption storage and content dynamic hiding presentation method comprises a user authority management method; compared with a traditional text encrypted storage and content dynamic hiding and presenting method, the method mainly depends on a centralized server and has the problems of data security and privacy protection, meanwhile, an existing permission control method is too simple, and when the permission changes, the permission cannot be adjusted in time, so that the permission control efficiency is greatly improved. Compared with the prior art, the text encryption storage and content dynamic hiding presentation method is low in use efficiency and cannot meet complex authority management requirements, the text encryption storage and content dynamic hiding presentation method can achieve fine management of texts through authority combination, a flexible access control mechanism is provided, sensitive data are encrypted by adopting an advanced encryption technology, and the text encryption storage and content dynamic hiding presentation method is high in practicability. Therefore, the security and privacy of the data are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of text processing in blockchain, and in particular to a method for text encryption storage and content dynamic hiding presentation with multi-level authority management. Background Art

[0002] The multi-level permission management mechanism, that is, giving permissions to each character in the text, is a way of processing data. It involves converting the text into binary, combining it with permission bits and encrypting the data. Finally, the processed technology can be used to dynamically display or hide the corresponding characters according to user permissions, ensuring data security while protecting user privacy.

[0003] The existing text encryption storage and content dynamic hidden presentation methods mainly rely on centralized servers, which have problems with data security and privacy protection. At the same time, the existing permission control methods are often too simple, usually relying on manual hiding of sensitive words. When permissions change, permissions cannot be adjusted in time, the usage efficiency is low and cannot meet complex permission management needs.

[0004] The existing text encryption storage and content dynamic hiding presentation methods have problems with data security and privacy protection and cannot meet complex permission management requirements. This text encryption storage and content dynamic hiding presentation method can achieve refined management of text through a combination of permissions, provides a flexible access control mechanism, and uses advanced encryption technology to encrypt sensitive data, thereby significantly improving data security and privacy. Summary of the invention

[0005] In order to overcome the existing text encryption storage and content dynamic hidden presentation methods, which mainly rely on centralized servers, there are problems with data security and privacy protection. At the same time, the existing permission control methods are often too simple, usually relying on manual hiding of sensitive words. When permissions change, permissions cannot be adjusted in time, the usage efficiency is low and cannot meet complex permission management needs.

[0006] The technical solution of the present invention is: a method for text encryption storage and content dynamic hiding presentation with multi-level authority management, comprising the following steps:

[0007] S11: receiving the document uploaded by the user to be published and assigning the authority thereof;

[0008] S12: Check the permissions that the user has;

[0009] S13: Encrypt the text data and store the encrypted text in a database;

[0010] S14: Manage all user permissions;

[0011] S15: re-encode each character of the text and the permission double word, and combine them into a new format for storage;

[0012] S16: Acquire the encrypted text data;

[0013] S17: Setting multi-level permissions for characters;

[0014] S18: Decrypt the encrypted characters according to different permissions.

[0015] Preferably, when receiving the document uploaded by the user, the following steps are included:

[0016] S21: firstly, assign permissions and define permission levels, and set different permission levels according to permission bits, each permission level corresponding to different operation permissions and data access scopes;

[0017] S22: When a user logs in, he or she authenticates the user using a user name and password or other means. After the authentication is passed, the system obtains the user's permission information.

[0018] Preferably, when checking the user authority, the following steps are included:

[0019] S31: When a user tries to view a document, the system checks whether the user's permissions meet the requirements;

[0020] S32: If not satisfied, the access is denied and a corresponding error message is prompted.

[0021] Preferably, when encrypting and storing text data, the following steps are included:

[0022] S41: Segment the text into each single character and convert it into a character position of a 32-bit binary number;

[0023] S42: Combining the character bits and the permission bits into a 64-bit binary array to synthesize a new data block, and encrypting the new data block using encryption technology;

[0024] S43: Store the encrypted text information in the database.

[0025] Preferably, when managing user rights, the following steps are included:

[0026] S51: define a permission control list, where elements at different positions represent different permissions. The first digit being 1 and the rest being 0 is read permission, which determines which characters are text data that the user can read;

[0027] S52: The second bit is 1 and the rest are 0, which is write permission, i.e. permission 1, defining which characters are data that the user can write;

[0028] S53: The third bit is 1 and the rest are 0, which is the deletion permission, that is, permission 2, which defines which characters are data that the user can delete, and so on to n, the nth bit is 1, that is, permission n-1, and the rest are 0, which is a certain permission;

[0029] S54: If a character has multiple permissions, the permission is obtained by bitwise OR of permission i and permission b. The permission of a character can be a combination of multiple permissions, which is obtained by bitwise AND combination of permissions;

[0030] S55: Allowing users to combine multiple permissions to access, directly combining character bits and permission bits;

[0031] S56: Process the entire document, set special permissions for each sensitive character, and dynamically load and display the corresponding content according to the user's level of permissions. If the permissions are insufficient, hide or replace them with high-authority prompt information.

[0032] Preferably, when processing the entire document, the following steps are also included:

[0033] S61: Design permission model: Design a reasonable permission model, including permission scope, permission mask, permission relationship, etc.;

[0034] S62: Determine the authority allocation and verification mechanism, set the administrator authority to have both read and write authority, that is, all bits representing a certain authority are 1, set special authority for each character of the content that the administrator can see, and verify whether the user has the authority by bitwise ANDing the authority bit and the authority mask;

[0035] S63: classify the full text content and mark the content of each level;

[0036] S64: Replace the position of the character to hide the character.

[0037] Preferably, when the text is re-encoded into a new format for storage, the following steps are included:

[0038] S71: based on the text information, convert each character in the text into a binary encoding format and define a permission mask;

[0039] S72: using symmetric encryption technology to encrypt each character of the text data and the authority, i.e., the encryption object;

[0040] S73: Decrypt the text according to the user's authority and display the characters with corresponding authority.

[0041] Preferably, when the encrypted text data is obtained, the following steps are included:

[0042] S81: Obtain text data for encryption and generate new data after processing in combination with permission bits;

[0043] S82: Encrypt the characters to be encrypted together with the permission double word, and set permissions for each character according to the keywords given by the user. If the character has no special permissions, it is the default permission, and the permission bit defaults to 0.

[0044] Preferably, when setting multi-level permissions for characters, the following steps are included:

[0045] S91: Combine refined access control to set multi-level permissions for characters, and encrypt and store the text in combination with the permissions;

[0046] S92: Encrypt each 64-bit binary number using a suitable encryption algorithm.

[0047] Preferably, when decrypting the encrypted characters according to different permissions, the following steps are included:

[0048] S1001: finally decrypting and decoding according to different permissions, so that the content can be dynamically hidden and presented, and the corresponding characters can be displayed;

[0049] S1002: Characters with permissions will be replaced by special symbols, and the characters will be hidden and displayed, while characters without special permissions can be displayed normally.

[0050] Preferably, by improving security, protecting sensitive information, ensuring that only authorized users can access sensitive content, and reducing the risk of data leakage; through refined permission management, preventing unauthorized access, ensuring information data security, and users can see corresponding content according to their permissions, improving user experience, and users will not see irrelevant information, which helps to focus on key tasks.

[0051] Beneficial effects of the present invention:

[0052] 1. Compared with the traditional text encryption storage and content dynamic hiding presentation method, which mainly relies on centralized servers, there are problems with data security and privacy protection. At the same time, the existing permission control method is often too simple, usually relying on manual hiding of sensitive words. When permissions change, permissions cannot be adjusted in time, the use efficiency is low and cannot meet complex permission management requirements. This text encryption storage and content dynamic hiding presentation method can achieve refined management of text through the combination of permissions, provides a flexible access control mechanism, and uses advanced encryption technology to encrypt sensitive data, thereby significantly improving data security and privacy;

[0053] 2. By improving security and protecting sensitive information, ensuring that only authorized users can access sensitive content, the risk of data leakage is reduced; through refined permission management, unauthorized access is prevented and information data security is guaranteed. At the same time, users can see corresponding content according to their permissions, which improves user experience. At the same time, users will not see irrelevant information, which helps to focus on key tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 Shown is a flowchart of a method for text encryption storage and content dynamic hiding presentation with multi-level authority management of the present invention;

[0055] Figure 2 Shown is a user authority management flow diagram of the text encryption storage and content dynamic hiding presentation method of the multi-level authority management of the present invention;

[0056] Figure 3 What is shown is a document processing flow diagram of the text encryption storage and content dynamic hiding presentation method of the multi-level authority management of the present invention;

[0057] Figure 4 The diagram shows a structure diagram of the method for implementing the text encryption storage and content dynamic hiding presentation of the multi-level rights management of the present invention.

[0058] Figure 5 The diagram shows the implementation details of the method for text encryption storage and content dynamic hiding presentation of multi-level rights management of the present invention.

[0059] Figure 6 Shown is a system flow diagram of the text encryption storage and content dynamic hiding presentation method with multi-level authority management of the present invention. DETAILED DESCRIPTION

[0060] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0061] See also Figure 1-6 The present invention provides an embodiment: a method for text encryption storage and content dynamic hiding presentation with multi-level authority management, comprising the following steps:

[0062] S11: receiving the document uploaded by the user to be published and assigning the authority thereof;

[0063] S12: Check the permissions that the user has;

[0064] S13: Encrypt the text data and store the encrypted text in a database;

[0065] S14: Manage all user permissions;

[0066] S15: re-encode each character of the text and the permission double word, and combine them into a new format for storage;

[0067] S16: Acquire the encrypted text data;

[0068] S17: Setting multi-level permissions for characters;

[0069] S18: Decrypt the encrypted characters according to different permissions.

[0070] Preferably, when receiving the document uploaded by the user, the following steps are included:

[0071] S21: firstly, assign permissions and define permission levels, and set different permission levels according to permission bits, each permission level corresponding to different operation permissions and data access scopes;

[0072] S22: When a user logs in, he or she authenticates the user using a user name and password or other means. After the authentication is passed, the system obtains the user's permission information.

[0073] Preferably, when checking the user authority, the following steps are included:

[0074] S31: When a user tries to view a document, the system checks whether the user's permissions meet the requirements;

[0075] S32: If not satisfied, the access is denied and a corresponding error message is prompted.

[0076] Preferably, when encrypting and storing text data, the following steps are included:

[0077] S41: Segment the text into each single character and convert it into a character position of a 32-bit binary number;

[0078] S42: Combining the character bits and the permission bits into a 64-bit binary array to synthesize a new data block, and encrypting the new data block using encryption technology;

[0079] S43: Store the encrypted text information in the database.

[0080] Preferably, when managing user rights, the following steps are included:

[0081] S51: define a permission control list, where elements at different positions represent different permissions. The first digit being 1 and the rest being 0 is read permission, which determines which characters are text data that the user can read;

[0082] S52: The second bit is 1 and the rest are 0, which is write permission, i.e. permission 1, defining which characters are data that the user can write;

[0083] S53: The third bit is 1 and the rest are 0, which is the deletion permission, that is, permission 2, which defines which characters are data that the user can delete, and so on to n, the nth bit is 1, that is, permission n-1, and the rest are 0, which is a certain permission;

[0084] S54: If a character has multiple permissions, the permission is obtained by bitwise OR of permission i and permission b. The permission of a character can be a combination of multiple permissions, which is obtained by bitwise AND combination of permissions;

[0085] S55: Allowing users to combine multiple permissions to access, directly combining character bits and permission bits;

[0086] S56: Process the entire document, set special permissions for each sensitive character, and dynamically load and display the corresponding content according to the user's level of permissions. If the permissions are insufficient, hide or replace them with high-authority prompt information.

[0087] Preferably, when processing the entire document, the following steps are also included:

[0088] S61: Design permission model: Design a reasonable permission model, including permission scope, permission mask, permission relationship, etc.;

[0089] S62: Determine the authority allocation and verification mechanism, set the administrator authority to have both read and write authority, that is, all bits representing a certain authority are 1, set special authority for each character of the content that the administrator can see, and verify whether the user has the authority by bitwise ANDing the authority bit and the authority mask;

[0090] S63: classify the full text content and mark the content of each level;

[0091] S64: Replace the position of the character to hide the character.

[0092] Preferably, when the text is re-encoded into a new format for storage, the following steps are included:

[0093] S71: based on the text information, convert each character in the text into a binary encoding format and define a permission mask;

[0094] S72: using symmetric encryption technology to encrypt each character of the text data and the authority, i.e., the encryption object;

[0095] S73: Decrypt the text according to the user's authority and display the characters with corresponding authority.

[0096] Preferably, when the encrypted text data is obtained, the following steps are included:

[0097] S81: Obtain text data for encryption and generate new data after processing in combination with permission bits;

[0098] S82: Encrypt the characters to be encrypted together with the permission double word, and set permissions for each character according to the keywords given by the user. If the character has no special permissions, it is the default permission, and the permission bit defaults to 0.

[0099] Preferably, when setting multi-level permissions for characters, the following steps are included:

[0100] S91: Combine refined access control to set multi-level permissions for characters, and encrypt and store the text in combination with the permissions;

[0101] S92: Encrypt each 64-bit binary number using a suitable encryption algorithm.

[0102] Preferably, when decrypting the encrypted characters according to different permissions, the following steps are included:

[0103] S1001: finally decrypting and decoding according to different permissions, so that the content can be dynamically hidden and presented, and the corresponding characters can be displayed;

[0104] S1002: Characters with permissions will be replaced by special symbols, and the characters will be hidden and displayed, while characters without special permissions can be displayed normally.

[0105] Preferably, by improving security, protecting sensitive information, ensuring that only authorized users can access sensitive content, and reducing the risk of data leakage; through refined permission management, preventing unauthorized access, ensuring information data security, and users can see corresponding content according to their permissions, improving user experience, and users will not see irrelevant information, which helps to focus on key tasks.

[0106] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of those skilled in the art without departing from the spirit of the present invention.

Claims

1. A method for text encryption storage and content dynamic hiding presentation with multi-level authority management; characterized in that: The following steps are included: S11: receiving the document uploaded by the user to be published and assigning the authority thereof; S12: Check the permissions that the user has; S13: Encrypt the text data and store the encrypted text in a database; S14: Manage all user permissions; S15: re-encode each character of the text and the permission double word, and combine them into a new format for storage; S16: Acquire the encrypted text data; S17: Setting multi-level permissions for characters; S18: Decrypt the encrypted characters according to different permissions.

2. The method for text encryption storage and content dynamic hiding presentation with multi-level rights management according to claim 1 is characterized by: When receiving documents uploaded by users, the following steps are included: S21: firstly, assign permissions and define permission levels, and set different permission levels according to permission bits, each permission level corresponding to different operation permissions and data access scopes; S22: When a user logs in, he or she authenticates the user using a user name and password or other means. After the authentication is passed, the system obtains the user's permission information.

3. The method for text encryption storage and content dynamic hiding presentation with multi-level rights management according to claim 2 is characterized by: When checking user permissions, the following steps are included: S31: When a user tries to view a document, the system checks whether the user's permissions meet the requirements; S32: If not satisfied, the access is denied and a corresponding error message is prompted.

4. The method for text encryption storage and content dynamic hiding presentation with multi-level rights management according to claim 3 is characterized by: When encrypting and storing text data, the following steps are included: S41: Segment the text into each single character and convert it into a character position of a 32-bit binary number; S42: Combining the character bits and the permission bits into a 64-bit binary array to synthesize a new data block, and encrypting the new data block using encryption technology; S43: Store the encrypted text information in the database.

5. The method for text encryption storage and content dynamic hiding presentation with multi-level rights management according to claim 4 is characterized by: When managing user permissions, the following steps are included: S51: define a permission control list, where elements at different positions represent different permissions. The first digit being 1 and the rest being 0 is read permission, which determines which characters are text data that the user can read; S52: The second bit is 1 and the rest are 0, which is write permission, i.e. permission 1, defining which characters are data that the user can write; S53: The third bit is 1 and the rest are 0, which is the deletion permission, that is, permission 2, which defines which characters are data that the user can delete, and so on to n, the nth bit is 1, that is, permission n-1, and the rest are 0, which is a certain permission; S54: If a character has multiple permissions, the permission is obtained by bitwise OR of permission i and permission b. The permission of a character can be a combination of multiple permissions, which is obtained by bitwise AND combination of permissions; S55: Allowing users to combine multiple permissions to access, directly combining character bits and permission bits; S56: Process the entire document, set special permissions for each sensitive character, and dynamically load and display the corresponding content according to the user's level of permissions. If the permissions are insufficient, hide or replace them with high-authority prompt information.

6. The method for text encryption storage and content dynamic hiding presentation with multi-level rights management according to claim 5 is characterized by: When processing the entire document, the following steps are also included: S61: Design permission model: Design a reasonable permission model, including permission scope, permission mask, permission relationship, etc.; S62: Determine the authority allocation and verification mechanism, set the administrator authority to have both read and write authority, that is, all bits representing a certain authority are 1, set special authority for each character of the content that the administrator can see, and verify whether the user has the authority by bitwise ANDing the authority bit and the authority mask; S63: classify the full text content and mark the content of each level; S64: Replace the position of the character to hide the character.

7. The method for text encryption storage and content dynamic hiding presentation with multi-level rights management according to claim 6 is characterized by: When re-encoding the text into a new format for storage, the following steps are included: S71: based on the text information, convert each character in the text into a binary encoding format and define a permission mask; S72: using symmetric encryption technology to encrypt each character of the text data and the authority, i.e., the encryption object; S73: Decrypt the text according to the user's authority and display the characters with corresponding authority.

8. The method for text encryption storage and content dynamic hiding presentation with multi-level authority management according to claim 7 is characterized in that: When obtaining the encrypted text data, the following steps are included: S81: Obtain text data for encryption and generate new data after processing in combination with permission bits; S82: Encrypt the characters to be encrypted together with the permission double word, and set permissions for each character according to the keywords given by the user. If the character has no special permissions, it is the default permission, and the permission bit defaults to 0.

9. The method for text encryption storage and content dynamic hiding presentation with multi-level rights management according to claim 8, characterized in that: When setting multi-level permissions for characters, the following steps are included: S91: Combine refined access control to set multi-level permissions for characters, and encrypt and store the text in combination with the permissions; S92: Encrypt each 64-bit binary number using a suitable encryption algorithm.

10. The method for text encryption storage and content dynamic hiding presentation with multi-level authority management according to claim 9, characterized in that: When decrypting the encrypted characters according to different permissions, the following steps are included: S1001: finally decrypting and decoding according to different permissions, so that the content can be dynamically hidden and presented, and the corresponding characters can be displayed; S1002: Characters with permissions will be replaced by special symbols, and the characters will be hidden and displayed, while characters without special permissions can be displayed normally.