Answer the question
In order to leave comments, you need to log in
How to remove rsa 2048 keys before compilation?
Good day to all and straight to the point.
There is a simple program dismantled into parts in .NET reflector due to my redneck and the incredibly inflated cost of activation. In it, I came across a line with RSA2048 which contains my public key and the condition for calculating the activation key by adding the public and private keys. My knowledge of coding is limited to a couple of initial lessons on sololearn, so I may have wandered into the wrong place. Tell me, can I just remove the key verification condition, or set any key to be valid? Hacking it will not work, according to the wiki. I am attaching a piece of code, I think it will be clearer) Thank you in advance for breaking your brain)
publicKey = "ourfNiz5z3 + NKD + dXQ9JJ2WoNeZQPt + VK9Qqfl5QNY0deO2gwDiAw1w1S6xYmad1qyA0iJk6Z + c / lrOYAf5jDpPwfsGQ / 4SP8GHN7x099uOrqW9qRJPVYW23lGCllyUN5aGE1Xz + i3ErWIv6sob / s5o5C + WrIcpPCzr80DxRjSt0G4UPFQmwt4pW + F1pDDPkKPXVDw / WWdkKHPPF3cr5LfZfDHmY36Zk9zG83 / iCo54Gd7Iluy1MGiuTO1uoLDZlSYK7biBnqwDEUomgWuX2LqX8W3RfOehFB / SOvsRW7TfalRSH5zcaaUiChd / gaP9d + A4UyMz + 3VAXC3LmTyeKNQ == AQAB";
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static string Decrypt(string PrivateKey, string cipher)
{
return null;
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static string Encrypt(string PublicKey, string plain)
{
return null;
}
[MethodImpl(MethodImplOptions.NoInlining)]
public static void GenerateKeys(out string PublicKey, out string PrivateKey)
Answer the question
In order to leave comments, you need to log in
Methods return NULL everywhere, where is the check for the validity of the key? You need a place where the keys are compared and two different values are returned, depending on the success of the check. As you find such a place, you need to correct the code so that it always returns the same value.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question