ttyaskpass 1.0.0

Rust implementation `libsodium/utils`.
docs.rs failed to build ttyaskpass-1.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: ttyaskpass-2.0.1

ttyaskpass

ttyaskpass

a safely passphrase prompt library and application, support Chroma-Hash-like colorhash, use seckey protecte password.

usage

library:

extern crate ttyaskpass;
use ttyaskpass::askpass;

fn main() {
	let pass = askpass::<Vec<u8>>("Password:", '*').unwrap();
	println!("Your password is {}", String::from_utf8(pass).unwrap());
}

see examples/readme.rs and ttyaskpass.rs.

application:

env SSH_ASKPASS=ttyaskpass ssh-add </dev/null