Are there any security measures that I should implement when I do a password cli field on rust? Will using readline()
method from the std::io::Stdin
be enough?
Something like this:
use std::io;
fn main() -> io::Result<()> {
let mut buffer = String::new();
let stdin = io::stdin(); // We get `Stdin` here.
stdin.read_line(&mut buffer)?;
Ok(())
}
Edit: Without using external crates like rpassword
or using other programming language