Crates.io | pwin |
lib.rs | pwin |
version | 1.0.1 |
source | src |
created_at | 2024-03-02 13:31:46.945069 |
updated_at | 2024-03-05 20:17:00.303972 |
description | Simple Password Prompt |
homepage | https://www.github.com/rexsum420/pwin |
repository | https://www.github.com/rexsum420/pwin |
max_upload_size | |
id | 1159707 |
size | 6,196 |
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.