METHOD AND APPARATUS FOR PROTECTING SOURCE CODE, AND COMPUTER-READABLE STORAGE MEDIUM
A method and apparatus for protecting a source code, and a computer-readable storage medium. The method comprises: generating a key pair that includes a public key and a private key, and a password file that includes a password (101); executing encryption on a source code file by using the password,...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng ; fre |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | A method and apparatus for protecting a source code, and a computer-readable storage medium. The method comprises: generating a key pair that includes a public key and a private key, and a password file that includes a password (101); executing encryption on a source code file by using the password, so as to generate an encrypted source code file (102); executing encryption on the password file by using the public key, so as to generate an encrypted password file (103); embedding the private key in a starter program (104); and setting the starter program, the encrypted source code file and the encrypted password file into a software mirror image file, wherein after being run, the starter program executes decryption on the encrypted password file on the basis of the private key, so as to acquire the password file, and executes decryption on the encrypted source code file by using the password, so as to acquire the source code file (105). By means of the method, a source code can be protected, thereby preventin |
---|