|
|
@ -5,16 +5,16 @@ |
|
|
|
|
|
|
|
int run_passwortGenerator(){ |
|
|
|
printf("\nPasswort Generator\n\n"); |
|
|
|
char zeichen[] = "abcdefghijklmnopqrstuvwxyz"; |
|
|
|
char zeichen[] = "abcdefghijklmnopqrstuvwxyz0123456789"; |
|
|
|
int tmp = 0; |
|
|
|
int GroSSklein = 0; |
|
|
|
printf("\nIhr Passwort: "); |
|
|
|
srand(time(0)); |
|
|
|
for(int i = 0; i < 10; i++) |
|
|
|
{ |
|
|
|
tmp = rand()%26; |
|
|
|
tmp = rand()%36; |
|
|
|
GroSSklein = rand()%2; |
|
|
|
printf("%c", (GroSSklein==0?toupper(zeichen[tmp]):zeichen[tmp])); |
|
|
|
printf("%c", (tmp<26?(GroSSklein==0?toupper(zeichen[tmp]):zeichen[tmp]):zeichen[tmp])); |
|
|
|
} |
|
|
|
printf("\n"); |
|
|
|
return 0; |
|
|
|