Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 253 Bytes

Using pinentry in a Bash script.md

File metadata and controls

6 lines (5 loc) · 253 Bytes

Pinentry is not supposed to be used from /Bash due to its protocol, but if you realy want:

{ echo "SETDESC KeePassXC"; echo "SETPROMPT PASS:"; echo "GETPIN"; } | pinentry-curses  -T $TTY -C UTF-8 | sed -n 's
/^D //p' | whatever-you-want