The application discloses a
software development method and
system based on an
encryption algorithm, and the method comprises the following steps: S1, initializing a
development environment, and distributing a hierarchical code
encryption key generated based on a hierarchical deterministic derivation mechanism to a development
client; S2, code
encryption editing, real-time recording of code changes and generation of a homomorphic hash value and a
quantum-resistant signature of the changes, storage of code files in an encrypted form; S3, encrypted version control,
verification of the integrity and signature validity of the submitted encrypted code by an encrypted version
control system; S4, encrypted building,
quantum-resistant signature and white-box
password protection of the
building product, and generation of an encrypted release
package; and S5, key rotation, rotation and update of the key of a specified level according to a
security policy by a KMS. The application realizes whole-process encryption protection from local editing of a developer, code submission, building and compilation to final release, and eliminates multiple
plaintext exposure points in a traditional development process.