proxy.golang.org : github.com/adnaan/memguard
Package memguard is designed to allow you to easily handle sensitive values in memory. Please note that it is important to never use append() or to assign values directly. Only ever copy() values into protected slices. When you do not know the length of the data in advance, you may have to allocate first and then protect, even though this is not generally the best way of doing things. An example is accepting user input. Arrays can be protected too. When you're about to exit, call Cleanup() first. This will wipe and then unlock all protected data. In order to handle most exit cases, do the following:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/adnaan/memguard
License: LGPL-3.0
Latest release: about 8 years ago
First release: about 8 years ago
Namespace: github.com/adnaan
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 10 days ago