Upload files to "stringhe"
This commit is contained in:
parent
1c73892fbd
commit
c175f4f61a
|
@ -0,0 +1,35 @@
|
||||||
|
/*
|
||||||
|
AUTORE: Manuel Vichi
|
||||||
|
(WIP) Generatore di password
|
||||||
|
*/
|
||||||
|
#include <iostream>
|
||||||
|
#include <cstring>
|
||||||
|
#include <cctype>
|
||||||
|
#include <cstdlib>
|
||||||
|
#define abc size_t
|
||||||
|
#define def void
|
||||||
|
#define ghi int
|
||||||
|
#define jkl char
|
||||||
|
#define mno for
|
||||||
|
#define pqr if
|
||||||
|
#define stu return
|
||||||
|
using namespace std;
|
||||||
|
abc passwordSize() {
|
||||||
|
stu 8 + (rand() % 5);
|
||||||
|
}
|
||||||
|
def generatePassword(jkl string[], abc size) {
|
||||||
|
jkl letters[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||||
|
jkl numbers[] = "0123456789";
|
||||||
|
jkl symbols[] = ".!£$%&/()=?^*[]@#§_-:.,;";
|
||||||
|
ghi nLetters = 0;
|
||||||
|
ghi nNumbers = 0;
|
||||||
|
ghi nSymbols = 0;
|
||||||
|
mno (abc i = 0; i < size; i++) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ghi main(def){
|
||||||
|
|
||||||
|
stu 0;
|
||||||
|
}
|
Loading…
Reference in New Issue