Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
/ zero Public archive

πŸ” MIGRATED πŸ” Package that takes any input of any data type and zeros it from memory

License

Notifications You must be signed in to change notification settings

notwithering/zero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” 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)
}

About

πŸ” MIGRATED πŸ” Package that takes any input of any data type and zeros it from memory

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages