Serious Table Flip
 
 
:berta::josef:
Currently Offline
Favorite Game
Favorite Game
432
Hours played
33
Achievements
🐳 Decrypt the secret to Happiness 🐳
//
// ONLINE COMPILER [ www.onlinegdb.com ]

#include<initializer_list>
#include<string>

// 👒
std::string IMPORTANT_MESSAGE=
"zÑ×AoffeApÐÇAqËÇÅÇBAIń÷đĤĒńøăĤĒJń÷đőĚėAńöĝńöãńöĝ.+ńöĎńöâńöĎŅåðIA"
"ĤĜAÁAĤĜŅåðJOOOAiÇÔÇ[AÊÖÖÒÕ[PPÏÃÐÉÃÔÇÃÆÇÔOÖÑPÔÇÃÆPÑÐÇNÒËÇÅÇNTPÇÐP"
"ÅÊÃÒÖÇÔNR";
// 👒

void enterKey(int); void enterSmallerKeys(std::initializer_list<int>);
void generateDecryptor(); void decrypt(std::string&); void print(std::string);

int main() {

enterKey(256);
enterSmallerKeys({0x0021, 0x007e, 0x00c0, 0x02af, 0x0531, 0x0556, 0x1c90, 0x1cb6});
generateDecryptor();
decrypt(IMPORTANT_MESSAGE);
print(IMPORTANT_MESSAGE);

}

int KEY; int *smallerKeys; int s_smallerKeys = 0;
#include<map>
#include<locale>
#include<codecvt>
std::map<std::string, unsigned int> decryptor;
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> converter;

void generateDecryptor() {

int k = 0, i = smallerKeys[k++], j = 0; while(k < s_smallerKeys && j < KEY) {
decryptor.insert(make_pair(std::string(converter.to_bytes(i++)), j++));
if(i == smallerKeys[k] + 1) { i = smallerKeys[++k]; k++; } }

}

#include<boost/multiprecision/cpp_int.hpp>
#include<stack>
void decrypt(std::string &str) {

boost::multiprecision::cpp_int imageBackTo10 = 0; std::u16string wstr = converter.from_bytes(str);
for(int i=wstr.length()-1,j=0;i>=0;) {boost::multiprecision::cpp_int temp=KEY; temp=pow(temp, j++);
temp *= decryptor.at((std::string)converter.to_bytes(wstr[i--])); imageBackTo10 += temp; }
std::stack<unsigned char> stack; while(imageBackTo10 > 0) { stack.push(static_cast<unsigned char>((imageBackTo10 >> 0) & 0xFF)); imageBackTo10 >>= 8; } str.clear(); while(!stack.empty()) {
str.push_back(stack.top());stack.pop(); }

}

void enterKey(int key) { KEY = key; } void enterSmallerKeys(std::initializer_list<int> smallKeys) {

smallerKeys = new int [smallKeys.size()];
for(int key : smallKeys) { smallerKeys[s_smallerKeys++] = key; }

}

#include<iostream>
void print(std::string str) { std::cout << std::endl << std::endl << str << std::endl; }
Recent Activity
1.1 hrs on record
last played on 9 Jan
4.9 hrs on record
last played on 5 Jan
23 hrs on record
last played on 4 Jan
Dragons̶l̶a̶y̶e̶r̶ Squad 29 May, 2023 @ 7:18am 
Hey, its Be'la, Half-Wold from colosseum, i gotta respect your unga-bunga, as a colossal enjoyer myself!
Serious Table Flip 29 May, 2023 @ 6:45am 
oh gee~ no I didn't:cozyteddymoo: stOp be1ng mad lad:steamsalty: and f*x your net:steammocking:
unit092 28 May, 2023 @ 4:19pm 
oh noob~ you lose to me 3 times lol:steamhappy: stop bul1shit and fxxk yourself idiot:steammocking:
unit092 28 May, 2023 @ 5:27am 
noob so ez
TaRanT 339 24 May, 2023 @ 7:00pm 
+rep got me good in ER #fisting :er_heart:
useTitan 23 May, 2023 @ 9:39am 
COWARD