mirror of
https://github.com/drduh/YubiKey-Guide.git
synced 2025-06-18 19:22:39 +02:00
ensure newline is expanded
echo from GNU coreutils requires -e to interpret backslash escape sequences without this, the encrypted file contains `\ntest message`
This commit is contained in:
parent
219423db05
commit
6c77d5dbe6
1 changed files with 1 additions and 1 deletions
|
@ -1074,7 +1074,7 @@ YubiKey is now ready for use!
|
||||||
Encrypt a message to yourself (useful for storing credentials or protecting backups):
|
Encrypt a message to yourself (useful for storing credentials or protecting backups):
|
||||||
|
|
||||||
```console
|
```console
|
||||||
echo "\ntest message string" | \
|
echo -e "\ntest message string" | \
|
||||||
gpg --encrypt --armor \
|
gpg --encrypt --armor \
|
||||||
--recipient $KEYID --output encrypted.txt
|
--recipient $KEYID --output encrypted.txt
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue