The present invention discloses a method for secure data flow based on
access control encryption in a cloud-edge environment, belonging to the field of secure data circulation; specifically: First, a cloud-edge environment
simulation scenario is built; the receiving domain
authorization agency outputs the receiving domain public key and private key. Then, n sending domain
authorization agencies jointly execute an
algorithm to obtain the sending domain public key and their respective
authorization keys. Each sending domain authorization agency independently runs a partial
encryption key generation algorithm to obtain its respective partial
encryption key, and the sender runs an encryption key aggregation
algorithm to obtain the aggregated encryption key. Next, the receiving domain authorization agency obtains the decryption key and returns it to the
receiver. The sender uses the aggregated encryption key to encrypt the
plaintext data m and uploads it to the
edge node, and a purification algorithm generates a purified
ciphertext and uploads it to the
cloud server. Finally, after the user retrieves the purified
ciphertext, it is decrypted with the decryption key to obtain the message m. The present invention meets the requirements for secure circulation of private data in a cloud-edge environment.