NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1269 most downloaded on crates.io
Read passwords in console applications (unix, windows, macos, wasm).
Latest stable
7.5.5
Last release 11 days ago
10 Nov 2026
Release timing varies
gaps range from 8 days to 1.4 years
Most releases are documented
notes for 36 of 48 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
48 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Bugfix release, no breaking changes.
Bugfix release, no breaking changes.
Fixes a bug where SIGINT would not properly restore terminal configuration. Thanks @AlvaroParker for the fix in https://github.com/conradkleinespel/rpassword/pull/138!
I've added license checks with Cargo Deny to ensure that the Apache 2.0 license is compatible with dependencies.
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.
<img width="400" alt="image" src="https://github.com/user-attachments/assets/b5d29895-fa45-4c54-a3d2-ee74c1cc2b78" />
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Backwards compatible. No breaking change.
Fixes compile errors with Rust 1.85. Thanks @nwalfield for reporting in https://github.com/conradkleinespel/rpassword/issues/130.
Backwards compatible. No breaking change.
Backwards compatible. No breaking change.
Fixes a Unicode parsing bug which could lead to unwarranted panic (https://github.com/conradkleinespel/rpassword/commit/6c19a1e3160f2a52d3a0b433b5e62bbdeead4391).
Backwards compatible. No breaking change.
Backwards compatible. No breaking change.
This release fixes a cross-platform compilation issue that appeared in v.7.5.0 (https://github.com/conradkleinespel/rpassword/commit/60ee07189580c6e4ca2dc6c89990634ab50f0b0e).
Thanks @aharpervc for bringing this to my attention in https://github.com/conradkleinespel/rpassword/pull/126.
Backwards compatible. No breaking change.
Fix for CVE-2025-64170 which affects rpassword on versions v7.4.0 and below. Thank you, @squell and @DevLaTron, for reporting this.
This release comes with lots of stuff. It should be fully backward compatible.
read_password_with_config(config) and there is a ConfigBuilder that 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.rpassword on versions v7.4.0 and below. Thank you, @squell and @DevLaTron, for reporting this._from_bufread functions have been deprecated. You are encouraged to migrate to _with_config functions. See UPGRADE.md as well as the documentation which has examples that you can most likely drop into your code without other changes.windows-sys dependency.Feedback is very much welcome.
Changes and updates in this release:
Changes and updates in this release:
windows-sys from 0.52 to 0.59, see https://github.com/conradkleinespel/rpassword/commit/cb2244aba3e6b4358cf489e61c8e35c564e31952;rtoolbox crate (https://github.com/conradkleinespel/rtoolbox). Thank you @Jordan-Haidee for providing a fix in https://github.com/conradkleinespel/rpassword/issues/97.I've noticed after publishing the release that the size of the crate on crates.io went from 7KiB to 121KiB. That's due to the addition of an image in the README.md, which I did not anticipate would be distributed to everyone. The fix (https://github.com/conradkleinespel/rpassword/commit/7c30111dda0242967bd5ac494fbf3089d3d74dc6) will be included in the next release.
No functionality changes in this release. It is backwards compatible.
This release updates the README.md, so the latest version appears on crates.io.
This release updates the README.md, so the latest version appears on crates.io.
No functionality changes in this release. It is backwards compatible.
The winapi package has been replaced with the windows-sys package developed by Microsoft. Thanks for your help, @messense!
The winapi package has been replaced with the windows-sys package developed by Microsoft. Thanks for your help, @messense!
No functionality changes in this release. It is backwards compatible.
This release completely removes the dependency on serde. It adds a new dependency rtoolbox which are utility functions I use in multiple projects. Thi
This release completely removes the dependency on serde. It adds a new dependency rtoolbox which are utility functions I use in multiple projects. This change is meant to improve supply chain security. I don't own serde but I do own rtoolbox. Code for rtoolbox is available here: https://github.com/conradkleinespel/rtoolbox.
No functionality changes in this release. It is backwards compatible.
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 Ct
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.
This release contains a potentially breaking change in that it removes the dependency on serde. But in most cases you should not need to change any of…
This release contains a potentially breaking change in that it removes the dependency on serde. But in most cases you should not need to change any of your code. Thanks @BlackHoleFox for the help.
Thanks also @NovaliX-Dev for fixing a bug on Windows, see https://github.com/conradkleinespel/rpassword/commit/38589177d2014c70e04cd93d178ab098333fa742.
You will need at least Rust 1.60 to use this new release.
No code changes. Updated docs so they display correctly on sites such as https://docs.rs/rpassword and https://crates.io/crates/rpassword.
No code changes. Updated docs so they display correctly on sites such as https://docs.rs/rpassword and https://crates.io/crates/rpassword.
This release contains breaking changes.
This release contains breaking changes.
Notable changes:
The API has changed from:
pub fn read_password() -> Result<String>
pub fn read_password_from_tty(prompt: Option<&str>) -> ::std::io::Result<String>
pub fn read_password_with_reader<T: BufRead>(source: Option<&mut T>) -> Result<String>
pub fn prompt_password_stdout(prompt: &str) -> std::io::Result<String>
pub fn prompt_password_stderr(prompt: &str) -> std::io::Result<String>
To:
pub fn read_password_from_bufread(reader: &mut impl BufRead) -> std::io::Result<String>
pub fn read_password() -> std::io::Result<String>
pub fn prompt_password_from_bufread(reader: &mut impl BufRead, writer: &mut impl Write, prompt: impl ToString) -> std::io::Result<String>
pub fn prompt_password(prompt: impl ToString) -> std::io::Result<String>
By default, reading and writing is done from/to the TTY instead of stdin/stdout. This is more reliable for most cases. If you need to read or write from/to a different place, the function versions with from_bufread allow you to pass anything you'd like.
Fixes a unit test, see #55. No changes in functionality.
Fixes a unit test, see #55. No changes in functionality.
There is 1 breaking change in this release.
There is 1 breaking change in this release.
If you use the read_password_with_reader function, you will need to replace any calls to read_password_with_reader(Some(reader)) with read_password_with_reader(Some(&mut reader)). This change allows calling read_password_with_reader multiple times with the same reader, which makes unit testing much easier (see #46 for some background).
Thanks @dvermd for this contribution!
Fixes a bug that prevented memory from being zeroed in case of an error. Thanks again @tov !
Fixes a bug that prevented memory from being zeroed in case of an error. Thanks again @tov !
This should be non-breaking as long as you use an updated version of the Rust toolchain.
Fixes deprecation warnings. Thanks @tov !
Fixes deprecation warnings. Thanks @tov !
This should be non-breaking as long as you use an updated version of the Rust toolchain.
Updates the README.md instructions so they appear correctly on crates.io. No code changes.
Updates the README.md instructions so they appear correctly on crates.io. No code changes.
Updates the README.md instructions so they appear correctly on crates.io. No code changes.
Updates the README.md instructions so they appear correctly on crates.io. No code changes.
Updates the README.md instructions so they appear correctly on crates.io. No code changes.
Updates the README.md instructions so they appear correctly on crates.io. No code changes.
Updates winapi to version 0.3. Thanks @Draphar !
Updates winapi to version 0.3. Thanks @Draphar !
Nothing published for this version
This release fixes a bug on Windows, where no newline would be printed after hitting ENTER following a password. Thanks @joshuef for your help !
This release fixes a bug on Windows, where no newline would be printed after hitting ENTER following a password. Thanks @joshuef for your help !
Feel free to open an issue if you need any help.
This a breaking change so the version has been bumped up to 3.0.0 on crates.io.
This release allows reading the password even if there is no \n at the end of the input. Thanks @longshorej for this improvement. Here was the justification behind the change:
In general, GNU readline will return the input it has read when reaching EOF. It seems to me that rpassword's current behavior in this regard is not conventional.
This a breaking change so the version has been bumped up to 3.0.0 on crates.io.
Feel free to open an issue if you need any help.
There should be no breaking changes. read_password_from_tty is not used by default. It is opt-in, so that your code doesn't break.
Thanks to @teythoon, rpassword can now read the password from the TTY directly, instead of STDIN, which is safer. It goes something like this:
extern crate rpassword;
fn main() {
let pass = rpassword::read_password_from_tty(Some("Password: ")).unwrap();
println!("Password: {}", pass);
}
There should be no breaking changes. read_password_from_tty is not used by default. It is opt-in, so that your code doesn't break.
Feel free to open an issue if you need any help.
Deprecated functions have been removed. Use `rprompt` to read input other than passwords from the command line.
std::io::BufRead: https://github.com/conradkdotcom/rpassword/pull/20. This makes mocking STDIN easier for tests.rprompt to read input other than passwords from the command line.Easy upgrade path:
rpassword:1.0.2,rpassword:2.0.0.Breaking changes:
use rpassword::*;
use foobar as read_password_from_reader;
Fixes bug on Windows where \r would be read.
Fixes bug on Windows where \r would be read.
No breaking changes.
Maintenance release. No breaking changes.
Maintenance release. No breaking changes.
This release updates inline code documentation so that they are properly displayed on docs.rs.
This is a maintenance release. No breaking changes.
This is a maintenance release. No breaking changes.
I've moved up to version 1.x.x to signify that this release is stable.
termios-rs on UNIX which helps with cross-platform support because rpassword now uses the very well tested libc crate as the compatibility layerread_response, prompt_response_stdout and prompt_response_stderr to rprompt crate
rprompt will be the place for additional prompting functions in the futureFixes a bug where on UNIX, input piped to a program using rpassword would panic!().
Fixes a bug where on UNIX, input piped to a program using rpassword would panic!().
Updated the inline documentation.
Updated the inline documentation.
No breaking changes to be expected.
Adds read_response, prompt_response_stdout and prompt_response_stderr functions to allow reading lines without hiding them from the terminal.
Thanks @steveatinfincia for your contribution https://github.com/conradkleinespel/rustastic-password/pull/17 Thanks @equalsraf for reviewing the Windows build.
No breaking changes to be expected.
Adds documentation link to Crates.io.
Adds documentation link to Crates.io.
This may or may not be a breaking change depending on how you imported rpassword functions into your code.
Adds 2 utility functions:
rpassword::prompt_password_stdoutrpassword::prompt_password_stderrThese can be used to prompt for a password on respectively STDOUT or STDERR, displaying a message (immediately, even it does not contain \n) and then asking for the password.
This may or may not be a breaking change depending on how you imported rpassword functions into your code.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Adds support for armel platform.
Adds support for armel platform.
Adds support for mips and mipsel platforms.
Adds support for mips and mipsel platforms.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.