mirror of
https://github.com/Obfuscator-Collections/VMProtect.git
synced 2026-09-01 19:01:54 +03:00
first commit
Version 3.x.x
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace forms_cil
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private bool CheckPassword(string pwd)
|
||||
{
|
||||
UInt64 magicNum;
|
||||
return (UInt64.TryParse(pwd, out magicNum) && magicNum % 17 == 13);
|
||||
}
|
||||
|
||||
[VMProtect.BeginVirtualization]
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user