36 lines
678 B
C++
36 lines
678 B
C++
/*
|
|
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;
|
|
}
|