The invention discloses a distributed
data security sharing method and
system based on a block chain, and a computer readable medium. The method comprises the following steps: outputting a
system master key pair and a user key pair; performing
encryption; packaging and then uploading the
system master key to the block chain; generating a conversion key by the
master key agency storage node; converting the key calculation node to generate a new
capsule; obtaining the master key
ciphertext from the block chain by the data user and obtaining the system master key; obtaining an attribute private key; and obtaining the shared data
ciphertext by the data user, inputting the attribute private key, and obtaining the
plaintext through a decryption
algorithm. According to the distributed
data security sharing method and system based on the block chain, and the computer readable medium,
key encapsulation of the master key is realized by using a distributed proxy
key encapsulation mechanism, the problem of secure distribution and management of the master key in a block
chain network is solved, the generation efficiency of the private key is improved, and the problems of safe distribution and management of the master key in the block
chain network and the like in the prior art are solved.