How to use VMProtect.SDK.DecryptString

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?

You have to use VMProtect.SDK.DecryptString for all const strings that you want to hide from your assembly. Something like this:

		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();
			}
		}

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,

thank you Sir!
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,

Please send us a test example (original EXE+VMP files) that shows your problem.