Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Password Generator with Parameters

I'm trying to make a password generator program that generates 9 digit strings that all begin with 00. How would I go at this? Thank you!
try this. https://github.com/pbssubhash/PyPassGen it will be faster if you ask this @ google :)
Code
from random import randint

password = "00" + ''.join([str(randint(0,9)) for i in range(7)])

Not sure if I totally understand the question but this will create random string type data all beginning in "00" followed by 7 random numbers where 0 <= number <= 9.

Example: "004929681"


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by LynxNov 27, 2020 08:23 PM 9 426 Nov 27, 2020 08:23 PM
Last Post: Ayyyther
[C] by gigajewAug 27, 2019 12:50 AM 3 208 Aug 27, 2019 12:50 AM
Last Post: int main()
[Python] by hihihix12Mar 19, 2019 05:59 AM 4 154 Mar 19, 2019 05:59 AM
Last Post: hihihix12