jsonwebtoken icon indicating copy to clipboard operation
jsonwebtoken copied to clipboard

Adding secrecy or zeroize for EncodingKey and DecodingKey

Open mettke opened this issue 1 year ago • 1 comments

It probably makes sense to either add the https://crates.io/crates/secrecy or the https://crates.io/crates/zeroize crate to this crate. This way we can make sure that private and secret keys are securely erased from memory when dropped.

mettke avatar Oct 25 '23 07:10 mettke

You mean in a custom Drop impl? I've used zeroize before so i would lean towards that

Keats avatar Oct 25 '23 14:10 Keats