#include
#include
#include
#include
#include
#include
// Base64 table
static const char base64_chars[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/";
void* allocateMemory(size_t size) {
return malloc(size);
}
void deallocateMemory(void* ptr) {
free(ptr);
}
bool is_base64(unsigned char c) {
return (std::isalnum(c) || (c == '+') || (c == '/'));
}
char* allocateString(const char* str) {
size_t length = strlen(str);
char* allocatedString = static_cast(allocateMemory(length + 1));
strcpy(allocatedString, str);
return allocatedString;
}
char* base64_encode(const char* input) {
std::string encoded_string;
int i = 0;
int j = 0;
unsigned char char_array_3[3];
unsigned char char_array_4[4];
for (const char* p = input; *p; ++p) {
char_array_3[i++] = *p;
if (i == 3) {
char_array_4[0] = (char_array_3[0] & 0xfc) 2;
char_array_4[1] = ((char_array_3[0] & 0x03) 4);
char_array_4[2] = ((char_array_3[1] & 0x0f) 6);
char_array_4[3] = char_array_3[2] & 0x3f;
for (i = 0; i 2;
char_array_4[1] = ((char_array_3[0] & 0x03) 4);
char_array_4[2] = ((char_array_3[1] & 0x0f) 6);
for (j = 0; j (std::find(base64_chars, base64_chars + 64, char_array_4[i]) - base64_chars);
}
char_array_3[0] = (char_array_4[0] 4);
char_array_3[1] = ((char_array_4[1] & 0xf) 2);
char_array_3[2] = ((char_array_4[2] & 0x3) (std::find(base64_chars, base64_chars + 64, char_array_4[j]) - base64_chars);
}
char_array_3[0] = (char_array_4[0] 4);
char_array_3[1] = ((char_array_4[1] & 0xf) 2);
for (j = 0; j (allocateMemory(sum * sizeof(char)));
std::cout (allocateMemory(strlen("Eğer bunu görüyorsan şanslısın") + 1));
memcpy(hiddenString, "Eğer bunu görüyorsan şanslısın", strlen("Eğer bunu görüyorsan şanslısın"));
hiddenString[strlen("Eğer bunu görüyorsan şanslısın")] = '\0';
std::cout |
==> |
cnathansmith I congratulate you my friend if you have a discord account I want to talk to you |
==> |
@RedVi gimme your discord |
==> |