This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <iostream> | |
#include <vector> | |
#include <string> | |
static constexpr const int start = 52; | |
static const std::string digits = "BCDFGHJKMPQRTVWXY2346789"; | |
// The Microsoft Windows product key is hidden in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion, | |
// which is base24-encoded & encrypted in a binary string. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
#include <sstream> | |
#include <iomanip> | |
#include <format> | |
using namespace std; | |
using namespace std::chrono; | |
system_clock::time_point strToTp(string dateString) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "strconv.h" | |
// Per comprendere meglio il funzionamento di queste funzioni, si consiglia di leggere: | |
// https://en.wikipedia.org/wiki/UTF-8 | |
// https://en.wikipedia.org/wiki/UTF-16 | |
// https://en.wikipedia.org/wiki/UTF-32 | |
// UTF-8 encodes code points in one to four bytes, depending on the value of the code point. |