Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromptAndUnlockPrivateKey ¶
func PromptAndUnlockPrivateKey(privateKeyArmored []byte, promptToStderr bool, maxAttempts int) (*crypto.Key, error)
PromptAndUnlockPrivateKey prompts the user for a passphrase and attempts to unlock the provided armored private key up to maxAttempts times. Prompts are written to stderr when promptToStderr is true, otherwise stdout. On repeated failure, returns a user-friendly error without leaking library internals.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.