A method and device for obfuscating strings in source code
A string and source code technology, applied in the field of software development, can solve problems such as application security risks, and achieve the effect of avoiding security risks
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] figure 1 A flow chart of the steps of a method for obfuscating character strings in source code provided by an embodiment of the present invention.
[0038] refer to figure 1 As shown, the obfuscation method provided by this embodiment is applied to software development tools to obfuscate the character strings in the source code of the application program project, so as to avoid the occurrence of plaintext strings that are easy to be deciphered by humans. The obfuscation method Specifically include steps:
[0039] S101: Using the Clang tool to compile the source code with obfuscation.
[0040] The source code here refers to the source code developed by the developer in advance, which will include many strings, such as defined variables, decryption keys, and characters that need to be displayed on the UI interface. After the developer develops the source code, he uses the Clang tool to compile and process the source code, so as to obtain the syntax tree of the source ...
Embodiment 2
[0064] image 3 A structural block diagram of an apparatus for obfuscating character strings in source code provided by an embodiment of the present invention.
[0065] refer to image 3 As shown, the obfuscation device provided by this embodiment is applied in a software development tool, and is used to obfuscate the character strings in the source code of the application program project, so as to avoid the occurrence of plaintext strings that are easy to be deciphered by humans. The obfuscation device It specifically includes a code compilation module 10 , a list generation module 20 , an encryption processing module 30 and a code insertion module 40 .
[0066] The code compilation module is used to compile the obfuscated source code using the Clang tool.
[0067] The source code here refers to the source code developed by the developer in advance, which will include many strings, such as defined variables, decryption keys, and characters that need to be displayed on the U...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


