Most of the functions in the random module aren’t cryptographically secure. for example trying to hash your password using the random module isn’t neccessarily all the protection you might need. The random module is primarily designed for games, quizes and simulations, not for cryptographic coding. The secrets module is design for cryptography - it generates robust random numbers which almost certainly don’t use the mersene twister generator that the random module uses by default. Also the functions in the secrets module are design for generation of secret keys, urls etc, whereas the functions in the random module are designed for shuffling data etc.
Usually password policy will have certain restrictions on number of Capital letters, small letters, numbers and special charaters. The given also doesn't guarantee it. In the video, the code could have been improvised to make it closer to real world scenarios.
Apply For Video Internship Program - script.geeksforgeeks.org/on-boarding/youtube
Perfectly works thanks for the tutorial
Most of the functions in the random module aren’t cryptographically secure. for example trying to hash your password using the random module isn’t neccessarily all the protection you might need. The random module is primarily designed for games, quizes and simulations, not for cryptographic coding.
The secrets module is design for cryptography - it generates robust random numbers which almost certainly don’t use the mersene twister generator that the random module uses by default. Also the functions in the secrets module are design for generation of secret keys, urls etc, whereas the functions in the random module are designed for shuffling data etc.
instant of storing password ,we can import string and we can store like this
Password = string.ascii_letters + string.punctuation + string.digits
Very helpful Thank you!!!!
Usually password policy will have certain restrictions on number of Capital letters, small letters, numbers and special charaters.
The given also doesn't guarantee it. In the video, the code could have been improvised to make it closer to real world scenarios.
We can use Regex for that.
Thank you so much
Thank you mam
Is there a way I can put this on a flash drive so I can have a password generator anywhere I go?
hrs