mirror of
https://github.com/drduh/YubiKey-Guide.git
synced 2025-03-12 10:56:08 +00: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
@ -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…
Reference in New Issue
Block a user