Hello sir,
I'm new to vmprotect. I'm using .net to develope a console program. I just don't now is "VMProtect.SDK.DecryptString" to use is required to use for visible text only (Console.WriteLine or Console.Write) or for all methods will use the text content passed from the varibles? Is it require to use for File.WriteAllText, too?
How to use VMProtect.SDK.DecryptString
Re: How to use VMProtect.SDK.DecryptString
You have to use VMProtect.SDK.DecryptString for all const strings that you want to hide from your assembly. Something like this:
Code: Select all
private void btnCheckPassword_Click(object sender, EventArgs e)
{
if (CheckPassword(txtPassword.Text))
{
MessageBox.Show(VMProtect.SDK.DecryptString("Correct password"), VMProtect.SDK.DecryptString("Password check"), MessageBoxButtons.OK, MessageBoxIcon.Information);
} else
{
MessageBox.Show(VMProtect.SDK.DecryptString("Incorrect password"), VMProtect.SDK.DecryptString("Password check"), MessageBoxButtons.OK, MessageBoxIcon.Error);
txtPassword.Focus();
}
}
Re: How to use VMProtect.SDK.DecryptString
Is that require to put all varibles contain some strings (they're not visible to user) inside DecryptString method when put them into the constructor of another method or an method sir?
Regards,
Regards,
Last edited by khangminh on Wed Jan 15, 2020 5:13 pm, edited 1 time in total.
Re: How to use VMProtect.SDK.DecryptString
thank you Sir!Admin wrote:You have to use VMProtect.SDK.DecryptString for all const strings that you want to hide from your assembly. Something like this:Code: Select all
private void btnCheckPassword_Click(object sender, EventArgs e) { if (CheckPassword(txtPassword.Text)) { MessageBox.Show(VMProtect.SDK.DecryptString("Correct password"), VMProtect.SDK.DecryptString("Password check"), MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(VMProtect.SDK.DecryptString("Incorrect password"), VMProtect.SDK.DecryptString("Password check"), MessageBoxButtons.OK, MessageBoxIcon.Error); txtPassword.Focus(); } }
now i got a new problem. Seem all details about the Exception error are disappeared after using VMProtect. all errors are now very generally like this: "Exception has been throw by the target of an invocation." Was this really related to VMProtect? How could I handle these sir?
Regards,
Re: How to use VMProtect.SDK.DecryptString
Please send us a test example (original EXE+VMP files) that shows your problem.