password generator

Solutions on MaxInterview for password generator by the best coders in the world

showing results for - "password generator"
Christian
23 May 2018
1Goto https://www.microsoft.com/en-in/software-download/windows10
2Press 'ctrl + shift + i' or right click anywhere on website and select inspect element.
3A new side window will open. Select 'Toggle device emulation' on top left of the new window.
4Reload the webpage. Now it will be opened as in a android device. 
5Now Select the windows 10 ISO and prefered language and download.
Ilhan
04 Jul 2019
1Last Pass
2https://lastpass.wo8g.net <-- Affilate
3https://lastpass.com <-- no love
Antony
17 Feb 2016
1function CreatePassword(PassLenght) {
2    const Lenght = parseInt(PassLenght)
3   	const Charecters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
4    let Password = "";
5    for (var i = 0, n = Charecters.length; i < Lenght; ++i) { Password += Charecters.charAt(Math.floor(Math.random() * n)); }
6    console.log(Password)
7    return Password;
8}
9
10CreatePassword(18)
Vadim
15 May 2019
1function rand_string( $length ) {
2	$str = "";
3	$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
4
5	$size = strlen( $chars );
6	for( $i = 0; $i < $length; $i++ ) {
7		$str .= $chars[ rand( 0, $size - 1 ) ];
8	}
9
10	return $str;
11}
12//and call the function this way:
13$mypass = rand_string(10);
Tamara
02 Jul 2018
1// Password generator
2#include <iostream>
3#include <string>
4#include <algorithm>
5#include <sstream>  
6
7std::string password_gen() {
8  std::string result;
9  while (!any_of(result.begin(), result.end(), ::islower) ||
10         !any_of(result.begin(), result.end(), ::isupper) ||
11         !any_of(result.begin(), result.end(), ::isdigit)) {
12    std::stringstream ss;
13    int length = rand() % 15 + 6;
14    for (int i = 0; i < length; i++) {
15      unsigned randomChar = rand() % 62;
16      if (randomChar < 26)
17        ss << char(randomChar + 'a');
18      else if (randomChar < 52)
19        ss << char(randomChar - 26 + 'A');
20      else if (randomChar < 62)
21        ss << char(randomChar - 52 + '0');
22      result = ss.str();
23    }
24  }
25  return result;
26}
27
28using namespace std;
29
30int main() {
31
32    cout<<"New random password = " << password_gen();
33}
Liam
12 Aug 2016
1import string
2from random import *
3
4characters = string.ascii_letters + string.digits
5Password =  "".join(choice(characters) for x in range(randint(8, 16)))
6print(Password)
similar questions
queries leading to this page
password generator