Query passwords with 'read -r'

'read' without '-r' interprets escape sequences, so it may not behave
properly if the password contains literal backslashes (depending on the
next character).
This commit is contained in:
Rusty Bird 2022-01-02 13:05:47 +00:00
parent e7e21d47b9
commit cf460ca6a5
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ Emergency Recovery Instructions
required, it will be handy later and will avoid saving the passphrase in
the shell's history.
[user@restore ~]$ read backup_pass
[user@restore ~]$ read -r backup_pass
3. Verify the integrity of `backup-header`. For compatibility reasons,
`backup-header.hmac` is an encrypted *and integrity protected*

View File

@ -72,7 +72,7 @@ To use this mode you need to:
(This way your password will not leak to the terminal command history file.)
```
read password
read -r password
```
Now run the following command to calculate your hashed password.