Index | Files

package pinentry

import ""

Package pinentry interfaces with the pinentry(1) command to securely prompt the user for a password using whichever user interface the user is currently using.


Package Files



var ErrCancel = errors.New("pinentry: Cancel")

ErrCancel is returned when the user explicitly aborts the password request.

type Request Uses

type Request struct {
    Desc, Prompt, OK, Cancel, Error string

Request describes what the user should see during the request for their password.

func (*Request) GetPIN Uses

func (r *Request) GetPIN() (pin string, outerr error)

Package pinentry imports 6 packages (graph) and is imported by 36 packages. Updated 2018-07-17. Refresh now. Tools for package owners.