Documentation ¶
Overview ¶
Package secstr provides methods and structs for working with protected (secure) strings
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type String ¶
type String struct {
Data []byte
}
String contains protected data
func NewSecureString ¶
NewSecureString creates new secure string
Example ¶
passwd := "MySuppaPassword12345" ss, err := NewSecureString(&passwd) if err != nil { panic(err) } fmt.Printf("Password: %s", string(ss.Data))
Output:
Click to show internal directories.
Click to hide internal directories.