mirror of
https://bitbucket.org/stellabellumswg/hashtool.git
synced 2026-01-17 00:04:54 -05:00
convert it to an int, so we can show how...so that this code could be used to auto update/fix the db someday
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
int main() {
|
||||
std::string name;
|
||||
uint32_t uintname = 0;
|
||||
int64_t brokenSuidContainer = 0;
|
||||
char brokenSuid[50];
|
||||
|
||||
std::cout << "What is your username? ";
|
||||
@@ -35,6 +36,9 @@ int main() {
|
||||
// the below is a result of sprintf formatting with the hashing above
|
||||
sprintf(brokenSuid, "%i", uintname);
|
||||
|
||||
std::cout << "Username [" << name << "] StationID [proper: " << uintname << " broken: " << brokenSuid << "]\n";
|
||||
// get the above into an int field, partly to eximplify should we want to add this to the login code
|
||||
brokenSuidContainer = std::stoi(brokenSuid);
|
||||
|
||||
std::cout << "Username [" << name << "] StationID [proper: " << uintname << " broken: " << brokenSuidContainer << "]\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user