mirror of
https://github.com/angt/secret
synced 2024-11-16 19:48:05 +01:00
Small fixes
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
parent
01aee5797f
commit
9e35f4afc6
2 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ Subkeys are also supported, this allows to update your secret in a clean way:
|
|||
|
||||
Storing binary secrets is supported:
|
||||
|
||||
$ dd if=/dev/urandom bs=1 count=32 bs=1 2>/dev/null | secret set mykey
|
||||
$ dd if=/dev/urandom bs=1 count=32 2>/dev/null | secret set mykey
|
||||
Passphrase:
|
||||
|
||||
Then, use a pipe to get it:
|
||||
|
|
2
secret.c
2
secret.c
|
@ -362,7 +362,7 @@ static size_t
|
|||
s_normalize_and_show(unsigned char *buf, size_t size, size_t want)
|
||||
{
|
||||
const unsigned n = 1U + '~' - '!';
|
||||
unsigned k = 0;
|
||||
size_t k = 0;
|
||||
|
||||
for (size_t i = 0; i < size && k < want; i++) {
|
||||
if (buf[i] < 2 * n)
|
||||
|
|
Loading…
Reference in a new issue