Skip to content

Commit 1387b86

Browse files
committed
add python secrets
1 parent cf7c082 commit 1387b86

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

python-tutorials/python_secrets.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import string
2+
import secrets
3+
alphabet = string.ascii_letters + string.digits
4+
password = ''.join(secrets.choice(alphabet) for i in range(12))
5+
6+
print(password)
7+
#Resultado X7JaQgxj21dO

0 commit comments

Comments
 (0)