unl0kr: add the CLI option to avoid suffixing a password with a newline character
Appending the newline character '\n' is the right thing to do when you print a password to a tty or a text file. But different tools process it differently. For example, cryptsetup strips the newline character, but systemd-cryptsetup with a password agent does not. This commit allows to control the newline character with an option.
This commit is contained in:
parent
3196e47d51
commit
9bb6b3acdf
5 changed files with 16 additions and 7 deletions
|
|
@ -32,7 +32,7 @@ password is printed to STDOUT. All other output happens on STDERR.
|
|||
*-g, --geometry=NxM[@X,Y]*
|
||||
Force a display size of N horizontal times M vertical pixels, offset
|
||||
horizontally by X pixels and vertically by Y pixels.
|
||||
*-d --dpi=N*
|
||||
*-d --dpi=N*
|
||||
Override the display's DPI value.
|
||||
*-r, --rotate=[0-3]*
|
||||
Rotate the UI to the given orientation. The
|
||||
|
|
@ -42,11 +42,13 @@ password is printed to STDOUT. All other output happens on STDERR.
|
|||
* 1 - clockwise orientation (90 degrees)
|
||||
* 2 - upside down orientation (180 degrees)
|
||||
* 3 - counterclockwise orientation (270 degrees)
|
||||
*-h, --help*
|
||||
*-h, --help*
|
||||
Print this message and exit.
|
||||
*-v, --verbose*
|
||||
*-n*
|
||||
Do not append a newline character to a password.
|
||||
*-v, --verbose*
|
||||
Enable more detailed logging output on STDERR.
|
||||
*-V, --version*
|
||||
*-V, --version*
|
||||
Print the unl0kr version and exit.
|
||||
|
||||
# EXAMPLES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue