Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: securely wipe sensitive data from memory #18645

Closed
leonklingele opened this issue Jan 13, 2017 · 3 comments
Closed

proposal: securely wipe sensitive data from memory #18645

leonklingele opened this issue Jan 13, 2017 · 3 comments

Comments

@leonklingele
Copy link
Contributor

This is a follow-up of https://groups.google.com/forum/#!topic/golang-nuts/sKQtvluD_So (from early 2013).

It would be nice to somehow wipe sensitive data from memory (e.g. a password/key, once it is no longer required). Is this idea already ruled-out? It looks like Cipher.Reset() was removed, as it couldn't guarantee to remove a key from memory.

@minux
Copy link
Member

minux commented Jan 13, 2017 via email

@mdempsky mdempsky changed the title Securely wipe sensitive data from memory proposal: securely wipe sensitive data from memory Jan 13, 2017
@bradfitz
Copy link
Contributor

This isn't so much of a proposal as it is a wishlist item.

The Go proposal process is not about asking others to do design & implementation work.

I'm going to close this until there's an actual design proposal.

As @minux says, there are OS-specific things like mlock that would be necessary, and anything Go offers would be need to be done portably and available on all operating systems.

I'd prefer to see it done as an external library first, before brought into the Go core, especially since nobody working on the Go core has time for this at the moment.

If you would like to work on this, though, please re-open and provide a bit more of a proposal.

@leonklingele
Copy link
Contributor Author

This library seems to the job.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants