The invention discloses a medical image
encryption and secure storage method and
system based on a block chain, and the method comprises the steps: obtaining the
original data of a medical image, segmenting the
original data of the medical image into a plurality of segments through a fragmentation technology, carrying out the
encryption of each segment through a symmetric
encryption algorithm, generating an encrypted segment set, and storing the encrypted segment set in a
database; determining an
integrity check value of the encrypted fragment set; according to the encrypted fragment set, adopting a distributed storage protocol to distribute each fragment to a plurality of storage nodes, recording a storage position and an
integrity check value of each fragment to a block chain account book, and generating a storage index containing a storage path and check information; and establishing an
access control strategy through the block chain
smart contract, and if the obtained requester identity identifier and the authority level conform to the
access control strategy, generating a dynamic
authorization token including an access range and time limitation. According to the method, the privacy of the patient is protected, and meanwhile, the safety and availability of medical data are improved.