Security encryption method and system for digital collections
By generating hash fingerprints on the metadata of digital collections and storing encrypted files based on blockchain, the problem that digital collection encrypted files in the prior art is easily tampered with, achieving higher security and stability.
Patent Information
- Application Number
- CN202510363970.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-04-25
AI Technical Summary
The existing digital collection encryption technology has insufficient security when storing and reading, resulting in encrypted digital collections being easily tampered with by others.
By generating a hash fingerprint on the metadata of the digital collection, a digital fingerprint is obtained, and an encrypted encoding is generated based on the digital fingerprint to encrypt the content file. Then, the digital fingerprint and encrypted files are stored on the blockchain. When the user accesses, verify the identity and find and restore the digital collection based on the selected metadata.
Improve the security of digital collections, prevent others from tampering with encrypted files, and enhance the storage and access security of digital collections.
Smart Images

Figure CN119885243A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital collection encryption, and in particular to a method and system for securely encrypting digital collections. Background Art
[0002] Digital collection encryption technology refers to a comprehensive technical system that uses cryptographic methods, blockchain technology and security protocols to encrypt and protect digital collections to ensure their uniqueness, tamper-proofing, ownership verification, privacy security and legal circulation.
[0003] Existing digital collection encryption technologies usually directly store digital collections after encryption calculation, which lacks metadata protection for digital collections. At the same time, when reading digital collections, they can usually be read directly, that is, the storage path of digital collections is fixed, and others can easily obtain the storage path of a certain digital collection. At this time, the digital collection cannot be cracked, but it can be tampered with, and the security is seriously insufficient. For example, in the patent application with publication number CN118779905A, "security protection method, system, computing device and storage medium for digital collections" are disclosed. This solution does not perform special processing on the storage path or the method of obtaining encrypted image files after storage. If the user wants to obtain the digital collection, the encrypted image file corresponding to the digital collection can be directly read and only needs to be decrypted. However, since the storage path of this method is fixed and known in the storage platform, others can easily tamper with the encrypted image file. The existing digital collection encryption technology also has the problem of insufficient security when reading the encrypted digital collection, which makes the digital collection easy to be tampered by others. Summary of the invention
[0004] The present invention aims to solve one of the technical problems in the prior art to at least a certain extent, by generating a hash fingerprint for the metadata of a digital collection to obtain a digital fingerprint of the digital collection, then generating an encryption code based on the digital fingerprint, and then encrypting the content file through the encryption code, and then storing the digital fingerprint and the encrypted file based on blockchain storage, and finally when the user accesses the digital collection, verifying the user's identity, and after the verification is passed, finding the digital collection that the user wants to access based on the metadata selected by the user and restoring it, so as to solve the problem that the existing digital collection encryption technology still has insufficient security when reading the encrypted digital collection, which makes the digital collection easy to be tampered with by others.
[0005] To achieve the above objectives, in a first aspect, the present application provides a method for securely encrypting digital collections, comprising the following steps: Generate a hash fingerprint of the metadata of the digital collection to obtain the digital fingerprint of the digital collection; Performing encryption operation on the content file of the digital collection to obtain an encrypted file; Store digital fingerprints and encrypted files based on blockchain storage; When a user accesses a digital collection, the user's identity is verified. After the verification is passed, the digital collection that the user wishes to access is found and restored based on the metadata selected by the user.
[0006] Furthermore, the metadata of the digital collection is subjected to hash fingerprint generation to obtain the digital fingerprint of the digital collection, which includes the following sub-steps: The metadata includes the collection name, collection author, collection description and collection owner; Combine the metadata into basic data in the format of "(collection name)(collection author)(collection introduction)(collection owner)"; Calculate the hash value of the basic data to obtain the hash fingerprint, and use the hash fingerprint as the digital fingerprint of the digital collection.
[0007] Furthermore, performing encryption operation on the content file of the digital collection to obtain the encrypted file includes the following sub-steps: Generate encryption code based on digital fingerprint; Encrypt the content file through encryption coding.
[0008] Furthermore, generating an encryption code based on a digital fingerprint includes the following sub-steps: Obtain a digital fingerprint, convert the digital fingerprint into a decimal ASCII code and mark it as an encrypted credential, obtain the number of digits of the encrypted credential, and mark it as the number of digits of the credential; Calculate the voucher digit number modulo the first parameter and mark the remainder as the voucher remainder; Remove the characters of the remainder of the credential after the encrypted credential, and mark the remaining part as encrypted.
[0009] Furthermore, performing encryption operation on the content file through encryption coding includes the following sub-steps: From left to right, every two characters form a two-digit number, and every three two-digit numbers form a group. The encrypted codes are grouped to obtain different character combinations. The character combinations are numbered from left to right, using the symbol S i Represents, where i is a positive integer and i is the sequence number of S; The characters in the character group are marked, and the first two-digit number, the second two-digit number, and the third two-digit number in the character group are represented by K1, K2, and K3 respectively; The content file is a collection image. The collection image is obtained, and the pixels in the collection image are numbered in the order from left to right and then from top to bottom. nIndicates, where n is a positive integer and n is the serial number of P; Get P n RGB color, marked as C n , the format of the RGB color is (R, G, B), where R is the color value of the red channel, G is the color value of the green channel, and B is the color value of the blue channel; C n The corresponding R, G and B are marked as R n , G n and B n , S i The corresponding K1, K2 and K3 are marked as K1 respectively. i , K2 i and K3 i ; Get the maximum value of i, marked as max(i), for any C n , calculate n%max(i), mark the remainder as j, and if j is zero, set j to max(i), where % is the modulo operator; C n By (R n ,G n ,B n ) is changed to (R n +K1 j ,G n -K2 j ,B n +K3 j ), where K1 j , K2 j and K3 j K1 represents i=j i , K2 i and K3 i If R n +K1 j , G n -K2 j or B n +K3 j If there is a value greater than 255 or less than 0, the corresponding value will be reduced by 255 or increased by 255 to make it within the range of 0 to 255; P n The RGB color is adjusted to the changed C n After that, get the encrypted file.
[0010] Furthermore, when the digital fingerprint and encrypted file are stored based on blockchain storage, a copy of the digital fingerprint and the encrypted file are stored in each storage node in the blockchain platform, and the metadata of the digital collection is stored at the same time. The blockchain platform stores the metadata of all digital collections owned by all users, and the digital fingerprint corresponds to the encrypted file during storage.
[0011] Furthermore, when a user accesses a digital collection, the user identity is verified, and after the verification is passed, the digital collection that the user wants to access is searched based on the metadata selected by the user and restored, including the following sub-steps: When users access digital collections, they authenticate their identities through facial recognition and verification code login; After verification, the metadata of all digital collections owned by the user is extracted from the blockchain platform for the user to choose, and the metadata selected by the user is obtained and marked as access data; A hash fingerprint is generated by accessing data based on the metadata, and the hash fingerprint is marked as a verification fingerprint; Find the digital fingerprint that is the same as the verification fingerprint in the blockchain platform, mark it as the access fingerprint, obtain the encrypted file corresponding to the access fingerprint, and mark it as the access file; Based on the verification fingerprint, the accessed file is restored through the inverse operation of the encryption operation.
[0012] In a second aspect, the present application provides a secure encryption system for digital collections, including a fingerprint generation module, an encryption operation module, a blockchain storage module, and a collection restoration module; the fingerprint generation module, the encryption operation module, and the collection restoration module are respectively connected to the blockchain storage module data; The fingerprint generation module is used to generate a hash fingerprint of the metadata of the digital collection to obtain a digital fingerprint of the digital collection; The encryption operation module is used to perform encryption operation on the content file of the digital collection to obtain an encrypted file; The blockchain storage module is used to store digital fingerprints and encrypted files based on blockchain storage; The collection restoration module is used to verify the user's identity when the user accesses the digital collection. After the verification is passed, the module searches for the digital collection that the user wants to access based on the metadata selected by the user and restores it.
[0013] Beneficial effects of the present invention: The present invention generates a hash fingerprint of the metadata of the digital collection to obtain the digital fingerprint of the digital collection, then generates an encryption code based on the digital fingerprint, and then performs encryption operation on the content file through the encryption code, and then stores the digital fingerprint and the encrypted file based on the blockchain storage. Finally, when the user accesses the digital collection, the user identity is verified. After the verification is passed, the digital collection that the user wants to access is searched and restored based on the metadata selected by the user. The advantage is that after storage, the user will not directly read the encrypted file when accessing the digital collection, but needs to perform a specific conversion based on the selected metadata and then search in the blockchain platform, so that there is no correlation between the metadata and the encrypted file. Therefore, others cannot find the specific digital collection and tamper with it, thereby improving the effectiveness and security of the secure storage of the digital collection. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a functional block diagram of the system of the present invention; Figure 2 A schematic diagram of a process for a user of the present invention to obtain an encrypted file; Figure 3 The figure is a flow chart of the steps of the method of the present invention. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0016] Example 1, please refer to Figure 1 As shown, the present application provides a secure encryption system for digital collections, including a fingerprint generation module, an encryption operation module, a blockchain storage module, and a collection restoration module; the fingerprint generation module, the encryption operation module, and the collection restoration module are respectively connected to the blockchain storage module data; The fingerprint generation module is used to generate a hash fingerprint of the metadata of the digital collection to obtain the digital fingerprint of the digital collection; The fingerprint generation module is configured with a fingerprint generation strategy, which includes: Metadata includes the collection name, collection author, collection description, and collection owner; Combine the metadata into basic data in the format of "(collection name)(collection author)(collection introduction)(collection owner)"; Calculate the hash value of the basic data to obtain the hash fingerprint, and use the hash fingerprint as the digital fingerprint of the digital collection; In actual application, it is assumed that the name of the digital collection to be encrypted in this embodiment is "AA", the author of the collection is "BB", the introduction of the collection is "ABC", and the owner of the collection is "CC". The basic data obtained is "(AA)(BB)(ABC)(CC)", where the quotation marks are only for determining the starting point of the metadata and basic data and are not included in the scope of the metadata and basic data; the hash value of the basic data is calculated to obtain a hash fingerprint of "5776aabe7f0081b38df3cd74ffa5b4435051d29e7704dc10b6a9cef27fa25133", that is, the digital fingerprint.
[0017] The encryption operation module is used to perform encryption operation on the content file of the digital collection to obtain an encrypted file; the encryption operation module includes a code generation unit and an encryption operation unit; The code generation unit is used to generate an encrypted code based on the digital fingerprint; The code generation unit is configured with a code generation strategy, which includes: Obtain a digital fingerprint, convert the digital fingerprint into a decimal ASCII code and mark it as an encrypted credential, obtain the number of digits of the encrypted credential, and mark it as the number of digits of the credential; Calculate the voucher digit number modulo the first parameter and mark the remainder as the voucher remainder; Remove the characters of the remainder of the credential after the encrypted credential, and mark the remaining part as encrypted code; In actual applications, the encrypted certificate obtained by conversion is "535555549797981015510248485649985156100102519910055521021029753985252515348534910050571015555485210099494898549757991011025055102975053495151", and the number of digits of the obtained certificate is 141. In order to ensure that the change of each color value channel is above two digits when the color value is changed later, and there are three color value channels in each pixel, The first parameter is set to 6. Every 6 characters can change the RGB color value of a pixel. The remainder of the credential is calculated as 141%6, which is 3. Since the remainder of the credential is 3, the 1, 5, and 1 at the end of the encrypted credential need to be removed to obtain the encrypted code "535555549797981015510248485649985156100102519910055521021029753985252515348534910050571015555485210099494898549757991011025055102975053495"; The encryption operation unit is used to perform encryption operation on the content file through encryption coding; The encryption operation unit is configured with an encryption operation strategy, which includes: From left to right, every two characters form a two-digit number, and every three two-digit numbers form a group. The encrypted codes are grouped to obtain different character combinations. The character combinations are numbered from left to right, using the symbol S i Represents, where i is a positive integer and i is the sequence number of S; The characters in the character group are marked, and the first two-digit number, the second two-digit number, and the third two-digit number in the character group are represented by K1, K2, and K3 respectively; In practical applications, groups and numbers are obtained from S1 to S 47 They are 535555, 549797, 981015, 510248, 485649, 985156, 100102, 519910, 055521, 021029, 753985, 252515, 348534, 910050, 571015, 555485, 210099, 494898, 549757, 991011, 025055, 102975 and 053495 respectively. For example, if S1 is 535555, its K1, K2 and K3 are 53, 55 and 55 respectively. The content file is the collection image. The collection image is obtained and the pixels in the collection image are numbered from left to right and then from top to bottom. n Indicates, where n is a positive integer and n is the serial number of P; Get P n RGB color, marked as C n , the format of RGB color is (R,G,B), where R is the color value of the red channel, G is the color value of the green channel, and B is the color value of the blue channel; C n The corresponding R, G and B are marked as R n , G n and B n , S i The corresponding K1, K2 and K3 are marked as K1 respectively. i , K2 i and K3 i ; In practical applications, digital collections are usually in image format, that is, collection images. There are 489,600 pixels in the collection image, so the number is P. n, 1≤n≤489600, taking P1 as an example, the C1 corresponding to P1 is (201,138,155), where 201 is R1, 138 is R2, 155 is R3, and K1, K2 and K3 in S1 are K11, K21 and K31; Get the maximum value of i, marked as max(i), for any C n , calculate n%max(i), mark the remainder as j, and if j is zero, set j to max(i), where % is the modulo operator; C n By (R n ,G n ,B n ) is changed to (R n +K1 j ,G n -K2 j ,B n +K3 j ), where K1 j , K2 j and K3 j K1 represents i=j i , K2 i and K3 i If R n +K1 j , G n -K2 j or B n +K3 j If there is a value greater than 255 or less than 0, the corresponding value will be reduced by 255 or increased by 255 to make it within the range of 0 to 255; P n The RGB color is adjusted to the changed C n After that, get the encrypted file; In actual application, the maximum value of i max(i) is 47. Taking C1 as an example, n=1, j=1%47=1, and C n Change from (201,138,155) to (201+K11,138-K21,155+K31), that is, (254,83,210), adjust the RGB color of pixel P1 to (254,83,210), and for each P n Make adjustments and finally get the encrypted file.
[0018] The blockchain storage module is used to store digital fingerprints and encrypted files based on blockchain storage; each storage node in the blockchain platform stores a digital fingerprint and an encrypted file, and also stores the metadata of the digital collection. The blockchain platform stores the metadata of all digital collections owned by all users, and the digital fingerprint corresponds to the encrypted file when stored; In actual applications, digital fingerprints, encrypted files and metadata are stored through the existing blockchain storage platform. Digital fingerprints are stored together with the corresponding encrypted files, and the metadata of different digital collections are stored together to form a collection catalog for users to choose from.
[0019] The collection restoration module is used to verify the user's identity when the user accesses the digital collection. After the verification is passed, the digital collection that the user wants to access is searched based on the metadata selected by the user and restored; The collection restoration module is configured with collection restoration strategies, which include: When users access digital collections, they authenticate their identities through facial recognition and verification code login; See also Figure 2 As shown, after the verification is passed, the metadata of all digital collections owned by the user are extracted from the blockchain platform for the user to select, and the metadata selected by the user is obtained and marked as access data; A hash fingerprint is generated by accessing data based on the metadata, and the hash fingerprint is marked as a verification fingerprint; Find the digital fingerprint that is the same as the verification fingerprint in the blockchain platform, mark it as the access fingerprint, obtain the encrypted file corresponding to the access fingerprint, and mark it as the access file; Based on the verification fingerprint, the accessed file is restored through the inverse operation of the encryption operation; In actual applications, face recognition and verification code login are both existing identity authentication methods, which will not be described in detail in this embodiment. The user selects the corresponding metadata, generates a verification fingerprint based on the selected metadata, and then searches based on the verification fingerprint and the numerous digital fingerprints in the blockchain platform, and associates the same digital fingerprint with the verification fingerprint to find the encrypted file corresponding to the digital collection that the user wishes to access.
[0020] Example 2, please refer to Figure 3 As shown, the present application provides a method for securely encrypting digital collections, comprising the following steps: Step S1, generating a hash fingerprint of the metadata of the digital collection to obtain a digital fingerprint of the digital collection; Step S1 includes the following sub-steps: Step S101, metadata includes collection name, collection author, collection introduction and collection owner; Step S102, combining metadata into basic data in the format of "(collection name)(collection author)(collection introduction)(collection owner)"; Step S103, performing hash value calculation on the basic data to obtain a hash fingerprint, and using the hash fingerprint as the digital fingerprint of the digital collection; Step S2, performing encryption operation on the content file of the digital collection to obtain an encrypted file; Step S2 includes the following sub-steps: Step S201, generating an encryption code based on the digital fingerprint; Step S201 includes the following sub-steps: Step S2011, obtaining a digital fingerprint, converting the digital fingerprint into a decimal ASCII code and marking it as an encrypted credential, obtaining the number of digits of the encrypted credential, and marking it as the number of digits of the credential; Step S2012, calculating the voucher digit modulo the first parameter, and marking the remainder as the voucher remainder; Step S2013, remove the characters of the remainder of the credential after the credential is encrypted, and mark the remaining part as an encrypted code; Step S202, performing encryption operation on the content file through encryption coding; Step S202 includes the following sub-steps: Step S2021, grouping the encrypted codes in order from left to right, with every two characters forming a two-digit number and every three two-digit numbers forming a group, to obtain different character combinations; Step S2022: number the character combinations from left to right, using the symbol S i Represents, where i is a positive integer and i is the sequence number of S; Step S2023, marking the characters in the character group, using K1, K2 and K3 to represent the first two-digit number, the second two-digit number and the third two-digit number in the character group respectively; Step S2024: The content file is an image of the collection. The collection image is obtained, and the pixels in the collection image are numbered in the order from left to right and then from top to bottom. The pixel numbers are represented by the symbol P. n Indicates, where n is a positive integer and n is the serial number of P; Step S2025, obtain P n RGB color, marked as C n , the format of RGB color is (R,G,B), where R is the color value of the red channel, G is the color value of the green channel, and B is the color value of the blue channel; Step S2026, C n The corresponding R, G and B are marked as R n , G n and Bn , S i The corresponding K1, K2 and K3 are marked as K1 respectively. i , K2 i and K3 i ; Step S2027, obtain the maximum value of i, marked as max(i), for any C n , calculate n%max(i), mark the remainder as j, and if j is zero, set j to max(i), where % is the modulo operator; Step S2028, C n By (R n ,G n ,B n ) is changed to (R n +K1 j ,G n -K2 j ,B n +K3 j ), where K1 j , K2 j and K3 j K1 represents i=j i , K2 i and K3 i If R n +K1 j , G n -K2 j or B n +K3 j If there is a value greater than 255 or less than 0, the corresponding value will be reduced by 255 or increased by 255 to make it within the range of 0 to 255; Step S2029: P n The RGB color is adjusted to the changed C n After that, get the encrypted file; Step S3, storing the digital fingerprint and the encrypted file based on the blockchain storage; each storage node in the blockchain platform stores a copy of the digital fingerprint and the encrypted file, and also stores the metadata of the digital collection. The blockchain platform stores the metadata of all digital collections owned by all users, and the digital fingerprint corresponds to the encrypted file when stored; Step S4, when the user accesses the digital collection, the user identity is verified, and after the verification is passed, the digital collection that the user wants to access is searched and restored based on the metadata selected by the user; Step S4 includes the following sub-steps: Step S401, when a user accesses a digital collection, identity verification is performed through face recognition and verification code login; Step S402: after verification, the metadata of all digital collections owned by the user is extracted from the blockchain platform for the user to select, and the metadata selected by the user is obtained and marked as access data; Step S403, generating a hash fingerprint by accessing the data based on the metadata, and marking it as a verification fingerprint; Step S404, searching the blockchain platform for a digital fingerprint identical to the verification fingerprint, marking it as an access fingerprint, obtaining an encrypted file corresponding to the access fingerprint, and marking it as an access file; Step S405: based on the verification fingerprint, restore the access file by performing an inverse operation of the encryption operation.
[0021] Through the description of the above implementation methods, the embodiments of the present invention can be provided as methods, systems or computer program products. Based on such an understanding, the above technical solutions can be essentially or partly contributed to the prior art in the form of software products, which can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and include several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0022] In the embodiments provided in the present application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of systems, modules and units can be electrical, mechanical or other forms.
[0023] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. 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 secure encryption method for digital collections, characterized in that: The steps include: Generate a hash fingerprint of the metadata of the digital collection to obtain the digital fingerprint of the digital collection; Performing encryption operation on the content file of the digital collection to obtain an encrypted file includes the following sub-steps: generating an encryption code based on the digital fingerprint; performing encryption operation on the content file through the encryption code; Store digital fingerprints and encrypted files based on blockchain storage; When a user accesses a digital collection, the user's identity is verified. After the verification is passed, the digital collection that the user wishes to access is searched and restored based on the metadata selected by the user; The generation of encryption code based on digital fingerprint includes the following sub-steps: Obtain a digital fingerprint, convert the digital fingerprint into a decimal ASCII code and mark it as an encrypted credential, obtain the number of digits of the encrypted credential, and mark it as the number of digits of the credential; Calculate the voucher digit number modulo the first parameter and mark the remainder as the voucher remainder; Remove the characters of the remainder of the credential after the encrypted credential, and mark the remaining part as encrypted.
2. A method for secure encryption of digital collections according to claim 1, characterized in that: The hash fingerprint of the metadata of the digital collection is generated to obtain the digital fingerprint of the digital collection, which includes the following sub-steps: The metadata includes the collection name, collection author, collection description and collection owner; Combine metadata into basic data in the format of "(collection name)(collection author)(collection introduction)(collection owner)"; Calculate the hash value of the basic data to obtain the hash fingerprint, and use the hash fingerprint as the digital fingerprint of the digital collection.
3. A method for secure encryption of digital collections according to claim 1, characterized in that: The encryption operation of the content file by encryption coding includes the following sub-steps: From left to right, every two characters form a two-digit number, and every three two-digit numbers form a group. The encrypted codes are grouped to obtain different character combinations. The character combinations are numbered from left to right, using the symbol S i Represents, where i is a positive integer and i is the sequence number of S; The characters in the character group are marked, and the first two-digit number, the second two-digit number, and the third two-digit number in the character group are represented by K1, K2, and K3 respectively; The content file is a collection image. The collection image is obtained, and the pixels in the collection image are numbered in the order from left to right and then from top to bottom. n Indicates, where n is a positive integer and n is the serial number of P; Get P n RGB color, marked as C n , the format of the RGB color is (R, G, B), where R is the color value of the red channel, G is the color value of the green channel, and B is the color value of the blue channel; C n The corresponding R, G and B are marked as R n , G n and B n , S i The corresponding K1, K2 and K3 are marked as K1 respectively. i , K2 i and K3 i ; Get the maximum value of i, marked as max(i), for any C n , calculate n%max(i), mark the remainder as j, and if j is zero, set j to max(i), where % is the modulo operator; C n By (R n ,G n ,B n ) is changed to (R n +K1 j ,G n -K2 j ,B n +K3 j ), where K1 j , K2 j and K3 j K1 represents i=j i , K2 i and K3 i If R n +K1 j , G n -K2 j or B n +K3 j If there is a value greater than 255 or less than 0, the corresponding value will be reduced by 255 or increased by 255 to make it within the range of 0 to 255; P n The RGB color is adjusted to the changed C n After that, get the encrypted file.
4. A method for secure encryption of digital collections according to claim 3, characterized in that: When the digital fingerprint and the encrypted file are stored based on the blockchain storage, a copy of the digital fingerprint and the encrypted file are stored in each storage node in the blockchain platform, and the metadata of the digital collection is stored at the same time. The blockchain platform stores the metadata of all digital collections owned by all users, and the digital fingerprint corresponds to the encrypted file during storage.
5. A method for secure encryption of digital collections according to claim 4, characterized in that: When a user accesses a digital collection, the user's identity is verified. After the verification is passed, the digital collection that the user wants to access is searched based on the metadata selected by the user and restored, including the following sub-steps: When users access digital collections, they authenticate their identities through facial recognition and verification code login; After verification, the metadata of all digital collections owned by the user is extracted from the blockchain platform for the user to choose, and the metadata selected by the user is obtained and marked as access data; A hash fingerprint is generated by accessing data based on the metadata, and the hash fingerprint is marked as a verification fingerprint; Find the digital fingerprint that is the same as the verification fingerprint in the blockchain platform, mark it as the access fingerprint, obtain the encrypted file corresponding to the access fingerprint, and mark it as the access file; Based on the verification fingerprint, the accessed file is restored through the inverse operation of the encryption operation.
6. A security encryption system for digital collections, used to implement a security encryption method for digital collections as described in any one of claims 1 to 5, characterized in that: It includes a fingerprint generation module, an encryption operation module, a blockchain storage module and a collection restoration module; the fingerprint generation module, the encryption operation module and the collection restoration module are respectively connected to the blockchain storage module data; The fingerprint generation module is used to generate a hash fingerprint of the metadata of the digital collection to obtain a digital fingerprint of the digital collection; The encryption operation module is used to perform encryption operation on the content file of the digital collection to obtain an encrypted file; The blockchain storage module is used to store digital fingerprints and encrypted files based on blockchain storage; The collection restoration module is used to verify the user's identity when the user accesses the digital collection. After the verification is passed, the module searches for the digital collection that the user wants to access based on the metadata selected by the user and restores it.
Citation Information
Patent Citations
Security protection method and system for digital collections, computing equipment and storage medium
CN118779905A
Block chain-based asset data management method and system
CN114329529A
Electronic certificate generation method and device, equipment and storage medium
CN114866271A
Number string encryption method and decryption method, electronic equipment and storage medium
CN115442073A
Digital collection encryption method and system and readable storage medium
CN116684201A
Cited By
Biological sample database data security protection method based on block chain
CN121167753A
Blockchain-based data security protection method for biological sample database
CN121167753B