lundi 28 août 2017

How to 8 digit random number is less secure using Python

I am generating an 8 character random string and using it as a password. Code:

import random
import string
password = ''.join(random.SystemRandom().choice(
                         string.ascii_uppercase + string.digits) for _ in range(8))

I need to know if this type of random generation is secure or not, and how an attacker could attack this.




Aucun commentaire:

Enregistrer un commentaire