Hi is here any one who can tell me that how can i generate the licence key or any other things for securing my client server program please help me
Atul_4
0
Newbie Poster
Recommended Answers
Jump to Postuse the random module and a for loop like this.
import random ll = "a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y;z" ul = "A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;Y;Z" key = [] finalKey = [] finalKeyStr = "" lettersList = ll.split(";") + ul.split(";") for number in range(0, 100): key.append(str(random.randint(1, 26))) for letter in range(0, 100): key.append(str(random.choice(lettersList))) for char …
All 3 Replies
DragonMastur
23
Light Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
snippsat
661
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.