mirror of
https://github.com/drduh/YubiKey-Guide.git
synced 2024-11-22 15:28:06 +00:00
Fix secret function
This commit is contained in:
parent
8458f76129
commit
b7baf0cbd0
@ -1027,7 +1027,7 @@ Decrypt the message - a prompt for the User PIN will appear:
|
|||||||
gpg --decrypt --armor encrypted.txt
|
gpg --decrypt --armor encrypted.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
To encrypt to multiple recipients/keys (set the preferred key ID last):
|
To encrypt to multiple recipients/keys, set the preferred key ID last:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
echo "test message string" | \
|
echo "test message string" | \
|
||||||
@ -1040,7 +1040,7 @@ Use a [shell function](https://github.com/drduh/config/blob/master/zshrc) to mak
|
|||||||
|
|
||||||
```console
|
```console
|
||||||
secret () {
|
secret () {
|
||||||
output=~/"${1}".$(date +%s).enc
|
output="${1}".$(date +%s).enc
|
||||||
gpg --encrypt --armor --output ${output} \
|
gpg --encrypt --armor --output ${output} \
|
||||||
-r $KEYID "${1}" && echo "${1} -> ${output}"
|
-r $KEYID "${1}" && echo "${1} -> ${output}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user