# Call Hiding

### :fast\_forward:Performance: High         :closed\_lock\_with\_key:Potency: High            :brain:Resilience: High

## Understanding the protection

Call encryption is a technique used to encrypt the calls to methods and functions in a program, making it more difficult to understand and reverse engineer.

This is achieved by transforming the original code in such a way that the calls to methods and functions are replaced with encrypted versions that are decrypted at runtime.

#### Before Obfuscation:

{% tabs %}
{% tab title="C#" %}

```csharp
        public static void Main(string[] args) {
          int i, sum = 0, n;
          Console.Write("Enter the Nth Number : ");
          n = int.Parse(Console.ReadLine());
          for (i = 0; i <= n; i++) {
            sum = sum + i;
          }
          Console.WriteLine("\nSum of N Numbers : " + sum);
          Console.ReadLine();
        }
```

{% endtab %}
{% endtabs %}

#### After Obfuscation:

```csharp
        public static void Main(string[] args) {
            int i, sum = 0, n;
            for (i = 0; i <= n; i++) {
            sum = sum + i;
          }
        }
```

##


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cyphor.net/.net-code-obfuscation/code-obfuscation/call-hiding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
