Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add usedforsecurity optional keyword argument to hashlib functions #3467

Open
youknowone opened this issue Nov 28, 2021 · 1 comment
Open

Add usedforsecurity optional keyword argument to hashlib functions #3467

youknowone opened this issue Nov 28, 2021 · 1 comment

Comments

@youknowone
Copy link
Member

@youknowone youknowone commented Nov 28, 2021

https://docs.python.org/3/library/hashlib.html

Changed in version 3.9: All hashlib constructors take a keyword-only argument usedforsecurity with default value True. A false value allows the use of insecure and blocked hashing algorithms in restricted environments. False indicates that the hashing algorithm is not used in a security context, e.g. as a non-cryptographic one-way compression function.

We can handle this in 2-steps.

  1. Adding an optional parameter usedforsecurity everywhere.
  2. Actually use the value.
@TeamTamoad
Copy link
Contributor

@TeamTamoad TeamTamoad commented Nov 28, 2021

I'll take this issue

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants