An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/awnumar/memguard

Package memguard implements a secure software enclave for the storage of sensitive information in memory. There are two main container objects exposed in this API. Enclave objects encrypt data and store the ciphertext whereas LockedBuffers are more like guarded memory allocations. There is a limit on the maximum number of LockedBuffer objects that can exist at any one time, imposed by the system's mlock limits. There is no limit on Enclaves. The general workflow is to store sensitive information in Enclaves when it is not immediately needed and decrypt it when and where it is. After use, the LockedBuffer should be destroyed. If you need access to the data inside a LockedBuffer in a type not covered by any methods provided by this API, you can type-cast the allocation's memory to whatever type you want. This is of course an unsafe operation and so care must be taken to ensure that the cast is valid and does not result in memory unsafety. Further examples of code and interesting use-cases can be found in the examples subpackage. Several functions exist to make the mass purging of data very easy. It is recommended to make use of them when appropriate. Core dumps are disabled by default. If you absolutely require them, you can enable them by using unix.Setrlimit to set RLIMIT_CORE to an appropriate value.

Ecosystem
proxy.golang.org
Latest Release
v0.23.0
7 months ago
Versions
47
Dependent Packages
211
Dependent Repos
105
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/awnumar/memguard
spec
License Apache-2.0
Namespace github.com/awnumar
First Release almost 9 years ago
Last Synced about 12 hours ago
Repository
Stars 2,658 on GitHub
Forks 131 on GitHub
Docker Dependents 78
Docker Downloads 693,103,056
Commits 332
Committers 12
Avg per Author 27.667
DDS 0.431
Rankings on proxy.golang.org
Overall Top 1.0%
Dependent packages Top 0.4%
Dependent repos Top 0.6%
Forks Top 2.5%
Docker downloads Top 0.1%