How to hide the source code

How to hide the source code

The reasons for which there can be a need for protection of the source code of the page, can be much. Protection of own solutions in the code, protection of texts against nonprofessional or unauthorized intervention, forming of demonstration addon-solutions of the version for transfer "outside" concerns those.

It is required to you

  • - Navutilus Object Squeeze utility.

Instruction

1. The Navutilus application is engaged in the cardinal solution of these tasks. Such utility is used for physical removals of source texts from Navision objects, and for reduction of the size of these objects. Way of fight against similar technologies is use of decompilers, however cases when someone undertook such task are unknown. Let's illustrate technology of use of this utility.

2. Testing of the utility will be made after processing with its participation code unit 12Gen.Jnl.PostLine. By the way, the utility processing only of that object to which at users the right for modification and reading is had is available.

3. Open the skvizirovaniye card. For this purpose it is necessary to set type of objects Codeunit and to assign it number 12. After to select a checkbox in the selected ReplaceSource field — otherwise the source code will be saved in initial option. Import the text file in the field of SourceReplacerText. In this field the text which will replace texts in program functions and triggers is set. In certain cases import of the file, but not text can make sense.

4. Select a checkbox in the field of ReplaceDocumentation. Otherwise the Documentation trigger will remain not changed. Import DocumentationReplacerText to text files in which the text replacing the text of the Documentation trigger will be set. In certain cases on this step use of the file for import is possible too.

5. Select the EraseLocalVariableNames checkbox. Otherwise the name of a local variable will remain the same. Start the SqueezeObjects function. Several seconds later if it is about work in local option, the user receives the message about a complete task.

6. After completion of the procedures described above it is possible to open in the processed object in the designer. After opening it is necessary to pay attention that instead of a name of a local variable the empty field is displayed. It means that after processing by the utility the protected objects which completely maintained working capacity are result. And their size can decrease to two times — the tested object with a capacity of 437 kilobyte, for example, the kilobyte decreased to the 211th.

Author: «MirrorInfo» Dream Team


Print