Secure password variables in memory
QuentinBrosse opened this issue · comments
Quentin Brosse commented
https://grokbase.com/t/gg/golang-nuts/138ess1xtr/go-nuts-how-to-secure-variables-in-memory
You allocate some memory directly from OS, lock it in memory, and then
construct some Go objects in there using unsafe. Then that memory won't be
paged to swap file and GC won't touch it as well.