mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-08-31 22:36:40 -04:00
10 lines
167 B
Go
10 lines
167 B
Go
package back
|
|
|
|
// EraseBytesSecurely overwrites all
|
|
// bytes in a slice with zeros.
|
|
func EraseBytesSecurely(input []byte) {
|
|
for i := range input {
|
|
input[i] = 0
|
|
}
|
|
}
|