The invention discloses a multi-level
privacy protection data sharing method and
system based on a block chain. The method comprises the following steps: S1, collecting and uploading
original data; generating an
encryption key by adopting a dynamic
DNA coding sequence and combining an AES key expansion method, encrypting the collected data by utilizing the generated
encryption key to obtain an encrypted file, and storing the encrypted file in a local storage
library; s2, uploading the encrypted file in the step S1 to a
distributed hash table of an IPFS distributed storage
system through an SHA-256
hash function, and verifying and confirming a block by adopting a dynamic
hybrid consensus mechanism; s3, accessing the block chain by the user through the
smart contract, and executing space-time double-attenuation permission control; and S4, after the permission
verification is passed, a decryption key is provided for the user, and the user performs
data decryption by using an AES decryption
algorithm and
DNA reverse coding. According to the method, more accurate authority management can be provided, the security and compliance of
data access are improved, and the method is suitable for management of large-scale data.