Hi! ✌️ I need to generate some string in C++ with random characters that can use all letters from “a” to “z” (include capital letters), and all numbers from 0 to 9 there.
And for examples this should looks somehow like this:
SnHXAsOC5XDYLgiKM5ly
Also I want to encrypt that string then by itself:
SnHXAsOC5XDYLgiKM5ly encrypt with SnHXAsOC5XDYLgiKM5ly key.
So, how can I do this in C++? 🤔
Thanks in advance!


FILE *f = popen("curl 'https://www.random.org/passwords/?num=1&len=12&format=plain&rnd=new'", "r"); char s[14]; fread(s, 1, sizeof(s), f); s[13] = 0;that’s cheating
(also, it won’t work on systems without curl installed)
(or without internet access)
🤭