Skip to content

secrecy: consider adding mlock feature for SecretVec and SecretString #480

@ordian

Description

@ordian

//! Presently this crate favors a simple, no_std-friendly, safe i.e.
//! forbid(unsafe_code)-based implementation and does not provide more advanced
//! memory protection mechanisms e.g. ones based on mlock(2)/mprotect(2).
//! We may explore more advanced protection mechanisms in the future.

There is a rust crate https://github.com/darfink/region-rs that acts as a safe cross-platform wrapper for mlock.
Would you accept a PR to add optional mlock support for SecretVec and SecretString?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions