Skip to content

Avoid replacing secrets without zeroizing old memory #39

@lwilk0

Description

@lwilk0

Before overwriting userpass.password, zeroize() the existing SecretBox contents (get a mutable reference and scrub) then replace. Avoid needless extra allocations.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions