internal

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL