The application discloses a memory
data management method, an electronic device, a storage medium and a program product, relates to the technical field of storage, and comprises the following steps: realizing memory
data management based on a native
memory management mechanism and a
page fault exception mechanism,
processing the
physical address of to-be-encrypted data by using a first key through step-by-step
encryption, performing
exclusive or operation on the obtained first
ciphertext and the to-be-encrypted data, and storing the obtained second
ciphertext into a red-black tree in a memory space, so that the
encryption range is expanded, the
data security is improved, the memory space and the red-black tree are fully utilized, and the addition, deletion and modification performance is improved. The target second
ciphertext to be migrated is further encrypted and written into a swap area file. The method is realized by using pure
software and does not depend on specific hardware devices. The technical problems of poor compatibility, high cost, being not conducive to large-scale application and great influence on
system performance are solved, the technical effects of good compatibility, reduced cost, convenience for large-scale application and reduced influence on
system performance are achieved.