Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vars1ty/lxshadow
Password-checking binding around /etc/shadow
https://github.com/vars1ty/lxshadow
crate library linux linux-rust password rust rust-crate security shadow
Last synced: about 1 month ago
JSON representation
Password-checking binding around /etc/shadow
- Host: GitHub
- URL: https://github.com/vars1ty/lxshadow
- Owner: vars1ty
- License: mit
- Created: 2023-02-24T06:07:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-24T06:16:49.000Z (almost 2 years ago)
- Last Synced: 2024-10-25T11:44:27.481Z (3 months ago)
- Topics: crate, library, linux, linux-rust, password, rust, rust-crate, security, shadow
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lxshadow
Password-checking binding around /etc/shadow, without the direct use of unsafe code or libc calls.
## Usage example
```rust
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}")
}
```