Exetools  

Go Back   Exetools > General > Source Code

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-08-2018, 19:28
UniSoft's Avatar
UniSoft UniSoft is offline
Family
 
Join Date: May 2010
Location: Shenzhen, China
Posts: 124
Rept. Given: 24
Rept. Rcvd 259 Times in 42 Posts
Thanks Given: 25
Thanks Rcvd at 406 Times in 73 Posts
UniSoft Reputation: 200-299 UniSoft Reputation: 200-299 UniSoft Reputation: 200-299
Quote:
Originally Posted by dila View Post
I created a key extraction challenge using this method. Maybe it can be solved?

Code:
bool check(const std::string& key) {
  uint64_t b = 0;  
  for(size_t i = 0; i < key.length(); ++i) {
    uint64_t a = 0;
    for(size_t j = 0; j < key.length(); ++j) {
        uint64_t d=uint64_t(key[j]);
      a += uint64_t(key[j]) << (i * j);
    }   
    b += (a % 127) << (i * 8);   
  }
  return (b == 0x000b762957335657);
}
I don't think shifting in the opposite direction will work though @evlncrn8
I don't think that this can be solved in opposite direction...
I think only simple brootforce, maximum 7 characters (2nd-8th), 1st character you calculate like ([sum of all characters] % 127) == (b & 0x7F))
Reply With Quote
The Following User Says Thank You to UniSoft For This Useful Post:
dila (02-09-2018)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On


Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Reactor v. 6.7.0.0 CF and String Cleaners Source Code Aesculapius Source Code 0 08-28-2021 02:13
Code snippet for Base34 Encoding TempoMat General Discussion 11 03-29-2020 17:58
Base Encoding Library for Delphi XorRanger Source Code 0 04-30-2015 15:37


All times are GMT +8. The time now is 06:21.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )