The invention relates to the technical field of energy
data security protection, and discloses a block chain energy
data security protection method,
system and device based on attribute control and double-layer
encryption, and a medium, and the method comprises the steps: constructing an ABAC triple policy engine based on user attributes, resource attributes and environment attributes, converting the conventional static authority management into dynamic policy
verification, and carrying out the dynamic policy
verification; a double-layer AES-GCM
encryption algorithm is designed, the data anti-
cracking capability is improved through two
encryption operations, the linear
time complexity is kept while the encryption security is guaranteed, and the efficiency requirement of energy
data processing is considered; a dynamic
key management mechanism is matched, a
unique key pair is generated for each piece of data, the
key leakage risk is reduced, and the problem of contradiction between safety and efficiency in a traditional encryption
algorithm is solved; an on-chain and off-chain collaborative storage architecture is adopted, encrypted energy data are stored through an IPFS distributed storage
system, only the hash value is subjected to on-chain
verification for integrity, and capacity limitation caused by traditional block chain full-node storage is broken through.