![]() |
|
#4
|
|||
|
|||
|
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);
}
|
| Thread Tools | |
| Display Modes | |
|
|
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 |