-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
In this file,
pythia/django/pythiaPrfService/crypto.py
return str(b64encode(os.urandom(n))[:n])
The output of secureRandom is not n byte random number. It is 3/4 * n bytes random number. Because after encoding in b64encoding the output string is bigger than n byte, which is being truncated here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels