Skip to content

Commit 73a2588

Browse files
committed
docs: state that password is taken in from stdin
1 parent c29e509 commit 73a2588

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ cargo binstall argon2-cli
2020
echo -n "password" | argon2
2121
```
2222

23+
This CLI accepts the password via `stdin`, which avoids putting the password in shell history.
24+
2325
### Options
2426

2527
```
@@ -57,7 +59,7 @@ echo -n "password" | argon2 somesalt -e
5759

5860
## Compatibility
5961

60-
This CLI strives for interface compatibility with the [C reference implementation](https://github.com/P-H-C/phc-winner-argon2), but does not guarantee it. Deviations are made where the original interface significantly hinders usability. For example, the salt is optional in our implementation and a cryptographically secure random salt is generated by default.
62+
This CLI strives for interface compatibility with the [C reference implementation](https://github.com/P-H-C/phc-winner-argon2), but does not guarantee it. Deviations are made where the original interface significantly hinders usability. For example, the salt is optional in our implementation and a cryptographically secure random salt is generated by default. This CLI also accepts the password via `stdin`, unlike the standard Linux `argon2` CLI, which helps avoid leaking passwords into shell history.
6163

6264
## License
6365

0 commit comments

Comments
 (0)