Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 349 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 349 Bytes
package main

import (
	"fmt"

	"github.com/xaionaro-go/pinentry"
)

func main() {
	client, _ := pinentry.NewPinentryClient()
	client.SetTitle("Some title here")
	client.SetDesc("Some description here")
	client.SetPrompt("Enter the passphrase, please:")
	client.SetOK("Ok")
	p, _ := client.GetPin()
	fmt.Println(string(p))
	client.Close()
}