-
Notifications
You must be signed in to change notification settings - Fork 271
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
Don't let Debug or Display accidentally log SecretKeys #226
Comments
I think this is probably the right thing for For |
A short ID would be ideal, with some other method to print hex that is unlikely to be accidentally invoked. The goal is to make access explicit. C.f. the secrecy crate's |
We could go the same route as That would make it an explicit action to print them while still being relatively ergonomic to use if you want to opt into it. |
There's also the question of what to do with the |
would it make sense to have a wrapper type that implements redacted |
We now hash secrets in the
Once |
Wasn't it solved in #312? |
@dr-orlovsky not for |
Debug and Display print the lowercase hex of the scalar, which can easily lead to accidental key leakage in logs. Consider updating these to print some generic
[ redacted ]
message insteadThe text was updated successfully, but these errors were encountered: