3 releases (stable)

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

#282 in Authentication

Download history 137/week @ 2024-02-25 132/week @ 2024-03-03 32/week @ 2024-03-10 72/week @ 2024-03-17 1/week @ 2024-03-31

110 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

~165KB