+ 1

What is password generator in c++

h

12th Nov 2017, 8:50 AM
Samsad Ansari
Samsad Ansari - avatar
2 Respostas
+ 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; }
12th Nov 2017, 9:11 AM
Predator
Predator - avatar
+ 5
C++ password generator means a program written in C++ that generates password(Randomly)
12th Nov 2017, 10:23 AM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar