Skip to content

Commit d108ea3

Browse files
authored
Update compliant01.py
Updated the blank spaces. Signed-off-by: BartyBoi1128 <[email protected]>
1 parent 5a048fe commit d108ea3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/compliant01.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# SPDX-License-Identifier: MIT
33
""" Compliant Code Example """
44
import secrets
5-
6-
5+
6+
77
def generate_web_token():
88
"""Better cryptographic number generator"""
99
return secrets.token_urlsafe()
10-
11-
10+
11+
1212
#####################
1313
# attempting to exploit above code example
1414
#####################

0 commit comments

Comments
 (0)