The invention relates to the technical field of
computer software, and discloses an offline
software license encryption and decryption method and
system based on limited random
encryption, and the method comprises the steps: configuring a secret key matrix and an
encryption and decryption matrix, and employing a generation
license encryption configuration table built in a target encryption
server and a
license decryption configuration table built in target
verification software, the encryption and distribution of the
software license information at the
server side and the decryption and
verification of the
software license information periodically at the
verification software side are realized. Therefore, traditional symmetric encryption is expanded into a symmetric encryption matrix to form an encryption cluster, and when license information is verified at a licensed software end, a two-dimensional random path
planning method is adopted to carry out small-scale random basic license unit
list decryption license and information verification within a limited area range; while the decryption and verification efficiency is ensured, certain randomness is increased, and the difficulty of
cracking the permission is remarkably increased.