Categorygithub.com/notwithering/zero
repositorypackage
0.0.0-20240607054058-19e29d4eefae
Repository: https://github.com/notwithering/zero.git
Documentation: pkg.go.dev

# README

🔁 MIGRATED 🔁

This has been changed into a more broad repo here

Zero

MIT License

Zero is a very simple package that takes any input of any data type and zeros it from memory, making it unusable and unreadable in memory.

This is especially useful for when you're dealing with sensitive data that needs to be quickly removed from memory.

This package also provides plenty of tests to ensure that each function works as expected.

Example

package main

import (
	"fmt"

	"github.com/notwithering/zero"
)

func main() {
	// data you do not want to be stored into memory for long
	var info string = "my super secret password"

	// zero out the data
	zero.Zero(&info)

	// there is no data to even print
	fmt.Println(info)
}