+ 1
What is password generator in c++
h
2 odpowiedzi
+ 6
#include <iostream> 
#include <cstdlib> 
#include <ctime> 
using namespace std; 
static const char alphanum[] = 
"0123456789" 
"!@#$%^&*" 
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" 
"abcdefghijklmnopqrstuvwxyz"; 
int size = sizeof(alphanum) - 1; 
int main() 
{ 
    //password length 
    int length = 8; 
    
    srand(time(0)); 
    for (int i = 0; i < length; i++) 
    { 
        cout << alphanum[rand() % size]; 
    } 
    return 0; 
}
+ 5
C++ password generator means a program written in C++ that generates password(Randomly)



