mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-08-28 04:46:41 -04:00
10 lines
159 B
Go
10 lines
159 B
Go
package security
|
|
|
|
// ZeroizeBytes overwrites all
|
|
// bytes in a slice with zeros.
|
|
func ZeroizeBytes(input []byte) {
|
|
for i := range input {
|
|
input[i] = 0
|
|
}
|
|
}
|