Documentation
¶
Index ¶
- func AskDoublePassword() (string, error)
- func AskDoublePasswordPrompt(p1, p2 string) (string, error)
- func AskMnemonicPhrase() string
- func AskPassword() (string, bool)
- func AskPasswordPrompt(p1 string) (string, bool)
- func DeletePassword() error
- func StorePassword(pwd string) error
- type PasswordReader
- type StdInPasswordReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskDoublePassword ¶
AskDoublePassword will ask for a password (and confirmation) on the commandline
func AskDoublePasswordPrompt ¶
AskDoublePasswordPrompt will ask for a password (and confirmation) on the commandline, with a custom prompt
func AskMnemonicPhrase ¶
func AskMnemonicPhrase() string
AskMnemonicPhrase asks for the mnemonic phrase
func AskPassword ¶
AskPassword will ask for a password (without confirmation) on the commandline
func AskPasswordPrompt ¶
AskPasswordPrompt will prompt for a password
func DeletePassword ¶
func DeletePassword() error
DeletePassword will delete the password from the keychain if possible
func StorePassword ¶
StorePassword will store the given password into the keychain if possible
Types ¶
type PasswordReader ¶
PasswordReader is an interface to read a password.
type StdInPasswordReader ¶
type StdInPasswordReader struct { }
StdInPasswordReader Default password reader from stdin
func (*StdInPasswordReader) ReadPassword ¶
func (pr *StdInPasswordReader) ReadPassword() ([]byte, error)
ReadPassword reads password from stdin
Click to show internal directories.
Click to hide internal directories.