Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard
int encrypted_num = input_num*12345;RITZ wrote:It's not in any way difficult to make an encryption algo that is "unbreakable" without brute forcing. Your teacher sounds like he doesn't know anything about cracking and how it is actually done, when you make a keygen for example the effort is in reverse engineering the validator code and from there finding how to generate a key that validates. All it requires to make an "unbreakable" encryption like that is to use a "magic number", and you can only decrypt the code by knowing this magic number. But any application for it that would work without internet access would give away the magic number and make it breakable again.
For example:
- Code: Select all
int encrypted_num = input_num*12345;
That can't be decrypted without knowing that it is the product of the number and 12345. But a program would check if the encrypyed number was divisable by 12345 to validate it, and reverse engineering the valididator would give the magic number away.

Return to Algorithms & Data Structures
Users browsing this forum: No registered users and 0 guests