Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecString ¶
type SecString struct { String []byte // Protected string Length int // Length of the target string }
func FromString ¶
Makes a new SecString from a string reference. Destroys str after creating the secstring
func NewSecString ¶
Takes a []byte and builds a SecString out of it, wiping str in the process.
A SecString should be destroyed when it's no longer needed to prevent memory leaks. It is probably a good idea to defer SecString.Destroy()
Click to show internal directories.
Click to hide internal directories.