Skip to content

Password-checking binding around /etc/shadow

License

Notifications You must be signed in to change notification settings

vars1ty/lxshadow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lxshadow

Password-checking binding around /etc/shadow, without the direct use of unsafe code or libc calls.

Usage example

fn main() {
    let result = is_eq("username", "password", true).expect("Failed reading /etc/shadow, check the log!").expect("Failed retrieving necessary info, check the log!");
    println!("is password eq: {result}")
}