Add secure byte slice erase helper; add alternative input methods for Windows

This commit is contained in:
2026-02-07 22:54:02 -05:00
parent 9ee213eeb4
commit e1bb0012a7
6 changed files with 151 additions and 25 deletions
+9
View File
@@ -0,0 +1,9 @@
package back
// EraseBytesSecurely overwrites all
// bytes in a slice with zeros.
func EraseBytesSecurely(input []byte) {
for i := range input {
input[i] = 0
}
}