Harden functions that potentially deal with sensitive information

This commit is contained in:
2026-02-09 22:15:47 -05:00
parent e1bb0012a7
commit 48e6abea8b
6 changed files with 43 additions and 40 deletions
+9
View File
@@ -0,0 +1,9 @@
package security
// ZeroizeBytes overwrites all
// bytes in a slice with zeros.
func ZeroizeBytes(input []byte) {
for i := range input {
input[i] = 0
}
}