Created
March 29, 2020 08:10
-
-
Save vladignatyev/5f33b84c867df8a2f49171f10e61bbd4 to your computer and use it in GitHub Desktop.
Python script to generate secure passwords
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
L = 12; import os; voc = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()'; print(''.join([voc[int.from_bytes(os.urandom(1), "big") % len(voc)] for i in range(L)])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage from the bash: