Skip to content

Commit

Permalink
Update docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md
Browse files Browse the repository at this point in the history
Signed-off-by: myteron <myteron@gmail.com>
  • Loading branch information
myteron authored Dec 12, 2024
1 parent 740d618 commit fcbe922
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/Secure-Coding-Guide-for-Python/CWE-693/CWE-330/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ Pure randomness can not be produced in software alone [[cloudflare 2017]](https:
# SPDX-License-Identifier: MIT
""" Compliant Code Example """
import secrets


def generate_web_token():
"""Better cryptographic number generator"""
return secrets.token_urlsafe()


#####################
# attempting to exploit above code example
#####################
Expand Down

0 comments on commit fcbe922

Please sign in to comment.