securestring

package
v0.0.0-...-62e5099 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecureString

type SecureString struct {
	// contains filtered or unexported fields
}

SecureString is used to store a string securely in memory.

func NewSecureString

func NewSecureString(s string) (*SecureString, error)

NewSecureString creates a new SecureString instance from the given string.

func (*SecureString) String

func (ss *SecureString) String() string

String returns the securely stored string.

func (*SecureString) Wipe

func (ss *SecureString) Wipe() error

Wipe removes the string from memory and makes it unrecoverable.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL