Created
October 17, 2020 05:37
-
-
Save akionsight/a0e63669653b0506790e97a2686f48d7 to your computer and use it in GitHub Desktop.
secrets.token_urlsafe example
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
import secrets | |
print(secrets.token_urlsafe(2)) | |
print(secrets.token_urlsafe(4)) | |
print(secrets.token_urlsafe(8)) | |
print(secrets.token_urlsafe(12)) | |
print(secrets.token_urlsafe(16)) | |
print(secrets.token_urlsafe(12)) | |
print(secrets.token_urlsafe(144)) | |
## returned this in one random test case | |
''' | |
fIg | |
cxtvGA | |
LvX1vL7VPYQ | |
A4-HHJo-HUC8_Fp2 | |
31dSVIYPvSDJ3KEy_ND9Dg | |
yR8Dvwh-TCEjw3pi | |
74K2Xps1O2om5ujSWxtgq449D4_RmHGSqH2HIJgM_m4YclfhxR0LHJTtnt-9obVC8gJOXLrCzVL63OuK6Qc_BcLJioNPm4Yjz9oKOSmTqT8Kn2BnpZ7qIs7JjTleGeXa119rMfxFdoDg5zeqInGT5NMWK_y0mI2U_ldbFaiSnsfDtwMSiBGvaKCvBL7wnXkW | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment