Switch to argon2: WIP

This commit is contained in:
Jeremy Soller
2016-10-24 12:22:13 -06:00
parent a05b8f4d25
commit e0fe388ccf
5 changed files with 25 additions and 60 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ pub fn main() {
let stdout = io::stdout();
let mut stdout = stdout.lock();
loop {
stdout.write(b"\x1Bc").unwrap();
//stdout.write(b"\x1Bc").unwrap();
let _ = stdout.flush();
match Command::new("file:bin/login").spawn() {
Ok(mut child) => match child.wait() {
+1 -1
View File
@@ -28,7 +28,7 @@ pub fn main() {
let user = (&mut stdin as &mut Read).read_line().unwrap().unwrap_or(String::new());
if ! user.is_empty() {
let mut passwd_string = String::new();
File::open("file:etc/passwd").unwrap().read_to_string(&mut passwd_string).unwrap();
File::open("/etc/passwd").unwrap().read_to_string(&mut passwd_string).unwrap();
let mut passwd_option = None;
for line in passwd_string.lines() {