Test that `Secret` is zeroized
I was looking through the source code of the `secret` crate today and saw that they have a test for zeroizing secrets. Their impl relies on an FFI call to ensure `rustc` keeps the code.
My impl is unsafe, all kinds of UB and reliant on the inner working of `SecretBox`.
The question is: is this better than nothing?
合并状态:未合并 关闭于 2025-05-09 4 条评论