rpassword
Read passwords in console applications (unix, windows, macos, wasm).
7.5.4
53M downloads/mo
#1185 most downloaded on crates.io
conradkleinespel/rpassword
What this package is like to depend on
Last release 2 months ago
31 May 2026
Release timing varies
gaps range from 8 days to 1.4 years
Rarely documented
notes for 10 of 47 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
47 releases · first in 2015
5 releases in the last 12 months
see the full history below
Release timeline
47 releases · Feb 2015 to May 2026Releases
latest 47-
7.5.431 May 2026Release notes
Open source →No functional changes.
I've added license checks with Cargo Deny to ensure that the Apache 2.0 license is compatible with dependencies.
This release also updates the description to make it clear this library is cross-platform on crates.io.
-
7.5.322 May 2026Release notes
Open source →Fixes compile errors with Rust 1.85. Thanks @nwalfield for reporting in #130.
Backwards compatible. No breaking change.
-
7.5.203 May 2026Release notes
Open source →Fixes a Unicode parsing bug which could lead to unwarranted panic (6c19a1e).
Backwards compatible. No breaking change.
-
7.5.129 Apr 2026Release notes
Open source →This release fixes a cross-platform compilation issue that appeared in v.7.5.0 (60ee071).
Thanks @aharpervc for bringing this to my attention in #126.
Backwards compatible. No breaking change.
-
7.5.028 Apr 2026Release notes
Open source →This release comes with lots of stuff. It should be fully backward compatible.
New features
- Support for masking or partially masking a password as it's being typed. Thank you, @chipsenkbeil, for your contribution.
- New API. The documentation has been vastly improved to support this, see https://docs.rs/rpassword/. To sum up, you can now call
read_password_with_config(config)and there is aConfigBuilderthat allows you to configure how passwords should be read. This makes the library much more flexible and means new options will be added without breaking existing code.
Fixes
- Fix for CVE-2025-64170 which affects
rpasswordon versions v7.4.0 and below. Thank you, @squell and @DevLaTron, for reporting this. - Better support for multibyte characters and more reliable handling of control characters and terminal escape sequences. Thank you again, @chipsenkbeil, for your contribution.
Deprecations
_from_bufreadfunctions have been deprecated. You are encouraged to migrate to_with_configfunctions. See UPGRADE.md as well as the documentation which has examples that you can most likely drop into your code without other changes.
Misc
- Update of the
windows-sysdependency. - Update Rust edition from 2018 to 2024.
- Better cross-platform testing, through more unit tests and a CI that runs Linux, Windows and Wasm.
Feedback is very much welcome.
-
7.4.020 Apr 2025Release notes
Open source →Changes and updates in this release:
- Updates
windows-sysfrom0.52to0.59, see cb2244a; - Improves Chinese character handling, the commit is in the
rtoolboxcrate (https://github.com/conradkleinespel/rtoolbox). Thank you @Jordan-Haidee for providing a fix in #97.
I've noticed after publishing the release that the size of the crate on crates.io went from
7KiBto121KiB. That's due to the addition of an image in theREADME.md, which I did not anticipate would be distributed to everyone. The fix (7c30111) will be included in the next release.No functionality changes in this release. It is backwards compatible.
- Updates
-
7.3.111 Nov 2023Release notes
Open source →This release updates the
README.md, so the latest version appears on crates.io.No functionality changes in this release. It is backwards compatible.
-
7.3.011 Nov 2023Release notes
Open source →The
winapipackage has been replaced with thewindows-syspackage developed by Microsoft. Thanks for your help, @messense!No functionality changes in this release. It is backwards compatible.
-
7.2.026 Nov 2022Release notes
Open source →This release completely removes the dependency on
serde. It adds a new dependencyrtoolboxwhich are utility functions I use in multiple projects. This change is meant to improve supply chain security. I don't ownserdebut I do ownrtoolbox. Code forrtoolboxis available here: https://github.com/conradkleinespel/rtoolbox.No functionality changes in this release. It is backwards compatible.
-
7.1.020 Oct 2022Release notes
Open source →This release includes a fix from @LSchallot which allows users to hit Ctrl-U to remove the password and start from scratch, similar to when you hit Ctrl-U in your terminal to clear the line.
It also specifies a minimum Rust version in
Cargo.toml. -
7.0.012 Jul 2022Nothing published for this version
-
6.0.114 Mar 2022Nothing published for this version
-
6.0.013 Mar 2022Nothing published for this version
-
5.0.119 Jan 2021Nothing published for this version
-
5.0.008 Aug 2020Nothing published for this version
-
4.0.521 Jan 2020Nothing published for this version
-
4.0.417 Jan 2020Nothing published for this version
-
4.0.305 Dec 2019Nothing published for this version
-
4.0.203 Dec 2019Nothing published for this version
-
4.0.110 Aug 2019Nothing published for this version
-
4.0.010 Aug 2019Nothing published for this version
-
3.0.219 Apr 2019Nothing published for this version
-
3.0.129 Mar 2019Nothing published for this version
-
3.0.020 Mar 2019Nothing published for this version
-
2.1.026 Nov 2018Nothing published for this version
-
2.0.017 Oct 2017Nothing published for this version
-
1.0.208 Aug 2017Nothing published for this version
-
1.0.131 Jul 2017Nothing published for this version
-
1.0.031 Jul 2017Nothing published for this version
-
0.4.224 Jul 2017Nothing published for this version
-
0.4.121 Jul 2017Nothing published for this version
-
0.4.027 Mar 2017Nothing published for this version
-
0.3.123 Jan 2017Nothing published for this version
-
0.3.003 Sep 2016Nothing published for this version
-
0.2.317 Jul 2016Nothing published for this version
-
0.2.220 Apr 2016Nothing published for this version
-
0.2.116 Apr 2016Nothing published for this version
-
0.2.014 Mar 2016Nothing published for this version
-
0.1.301 Feb 2016Nothing published for this version
-
0.1.216 Jan 2016Nothing published for this version
-
0.1.114 Jan 2016Nothing published for this version
-
0.1.002 Nov 2015Nothing published for this version
-
0.0.608 Sep 2015Nothing published for this version
-
0.0.518 Jul 2015Nothing published for this version
-
0.0.419 Apr 2015Nothing published for this version
-
0.0.204 Mar 2015Nothing published for this version
-
0.0.111 Feb 2015Nothing published for this version