Registry / cli / rpassword

rpassword

JSON →
library7.5.4rscratesunverified

Read passwords in console applications (unix, windows, macos, wasm).

# Cargo.toml [dependencies] rpassword = "7.5.4"
INSTALL
IMPORT
SIG · RPASSWORD
R
rpassword
clirustv7.5.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

read_password
use rpassword::read_password;

Reads a password from stdin without echoing.

use rpassword::read_password; fn main() { let password = read_password().unwrap(); println!("Password length: {}", password.len()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
7.5.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Amazon
1
Resources
rpassword — cargo add rpassword · libregistry