redox_users

Redox OS APIs for accessing users and groups information.

High level APIs for:

We recommend to use these APIs instead of directly manipulating the /etc/group and /etc/passwd as this is an implementation detail and might change in the future.

Using redox_users

Make sure you have Rust nightly.

Add redox_users to Cargo.toml:

toml [dependencies.redox_users] git = "https://github.com/redox-os/users.git"

then import it in your main file:

rust extern crate redox_users;

And redox_users is now ready to roll!

Hashing

redox_users uses the Argon2 hashing algorithm. The default hashing parameters are as follows: Rust Argon2::new(10, 1, 4096, Variant::Argon2i)