3 releases (stable)

1.0.1 Mar 5, 2024
1.0.0 Mar 2, 2024
0.1.3 Mar 2, 2024

#562 in Authentication

Download history 16/week @ 2024-09-23

217 downloads per month

MIT license

3KB

This is a simple library to get a password without the text echoing on the terminal. It only has one function and t's made to allow beginner developers to prompt users for passwords relatively easily.

Importing:

extern crate pwin;
use crate::pwin::readpw;

Usage:

fn main() {
    print!("Enter Password:")
    let passwd = readpw();
}

Simple. Takes no arguments and returns a non-mutable String that you can cast or use however you need to.

Dependencies

~180KB