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.
Click to show internal directories.
Click to hide internal directories.