Expand description

secret defines a structure for “safely” storing “secret” data in memory. Think things like keys, plaintext, etc.

Structs

Secret is somewhat like a Vec, but for sensitive data. It guarantees that its contents won’t be swapped out, and it also guarantees that the contents won’t be visible to any other process, or even the kernel.