This invention discloses a method for secure
encryption of medical data, relating to the field of data
encryption technology. The method includes implementing
access control based on security levels, acquiring original medical images after
authorization verification, stacking the images into a three-dimensional cube by channels, dynamically dividing them into blocks according to security levels, generating a
chaotic encryption key based on the block information, and performing encryption operations on each three-dimensional block to obtain encrypted
ciphertext. By destroying
pixel correlation through channel stacking and segmentation, combined with differentiated keys generated by
chaotic mapping, the
key space and encryption efficiency are significantly improved, effectively resisting brute-force and statistical attacks. Permutation and substitution operations enhance the randomness of the
ciphertext, ensuring encryption adapts to security levels and operates in a
closed loop, guaranteeing controllable access permissions, improving the targeting and security of medical image encryption, and enabling flexible access for authorized users while ensuring efficient data encryption.