mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-09-02 15:17:25 -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
|
|
}
|
|
}
|