hey all,
I am an absolute beginner trying to learn Rust by writing a TUI. The goal of my program is to listen on a port on the network and serve some secret content whenever a user connects and authenticates very similar to SSH/telnet. Using termion I am able to get username and password (without echoing it back to the terminal) just fine but how can I replicate the same behavior for password over the network?
termion has a https://docs.rs/termion/latest/termion/input/trait.TermRead.html#method.read_passwd method but I can only find an example that works with stdin. How can I use it over the network?
Is this even the right direction to look?
P.S. this is purely a learning project and not a production one. A good excuse to learn Rust.
Thanks in advance
API documentation for the Rust TermRead trait in crate termion.