MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / generateToken

Function generateToken

src/webInterface.cpp:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122String generateToken(int length = 24) {
123 String token = "";
124 const char charset[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
125 for (int i = 0; i < length; i++) token += charset[launcherRandom(0, sizeof(charset) - 1)];
126 return token;
127}
128
129String urlDecode(const String &input) {
130 String output;

Callers 1

loginHandlerFunction · 0.70

Calls 1

launcherRandomFunction · 0.85

Tested by

no test coverage detected