Do not output the trailing newline in encoding.

Added -n to echo command to prevent newlines from showing up in encoding.
This commit is contained in:
Ryan Currah 2015-06-13 12:03:57 -04:00
parent f355049ef1
commit c232fee6b3

View file

@ -65,7 +65,7 @@ Now, if we wanted to encrypt a piece of plain text, we use the encrypt
endpoint using our named key:
```
$ echo "the quick brown fox" | base64 | vault write transit/encrypt/foo plaintext=-
$ echo -n "the quick brown fox" | base64 | vault write transit/encrypt/foo plaintext=-
Key Value
ciphertext vault:v0:czEwyKqGZY/limnuzDCUUe5AK0tbBObWqeZgFqxCuIqq7A84SeiOq3sKD0Y/KUvv
```