mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-10-26 21:39:56 -04:00
Harden functions that potentially deal with sensitive information
This commit is contained in:
1 parent
e1bb0012a7
commit
48e6abea8b
6 files changed
+43
-40
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user