Gpg : Add pincheck command to unlock the card.

This commit is contained in:
Dmitry Voronin 2024-09-29 21:26:49 +03:00
parent 5059f25ad6
commit 628cd36ce6
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,5 +1,10 @@
{ ... }: { { ... }: {
text = '' text = ''
# Check smartcard pin.
function pincheck() {
echo verify | gpg --card-edit --no-tty --command-fd=0
}
# Encrypt files to myself. # Encrypt files to myself.
# Usage: encrypt <FILES> # Usage: encrypt <FILES>
function encrypt() { function encrypt() {