The invention discloses a
data security protection method and
system, and relates to the technical field of data protection, a parameter generator automatically outputs dimension parameters, modulus parameters and
noise parameters, a
random matrix and a secret key vector are obtained according to the dimension parameters and the modulus parameters, a public key vector is obtained through calculation of the
random matrix, the secret key vector and
noise, and the public key vector is stored in a
database; after data needing to be encrypted is converted into a binary vector, a
ciphertext is calculated in combination with a public key vector and the binary vector, data in a storage medium is encrypted through the
ciphertext, and when a
user needs to read the data, decryption and
data recovery are carried out through a secret key vector after the
ciphertext is received. The
protection system depends on solving the shortest vector problem on lattices, has considerable difficulty in both classical and
quantum computing environments, and can support various cryptographic applications, and the flexibility enables the security protection method to adapt to different application requirements and ensure secure storage of data.