#redox #auth

redox_users

A Rust library to access Redox users and groups functionality

3 releases (breaking)

0.3.0 Feb 5, 2019
0.2.0 Jun 17, 2018
0.1.0 Mar 28, 2018

#6 in Authentication

Download history 1192/week @ 2018-12-20 1279/week @ 2018-12-27 1198/week @ 2019-01-03 1375/week @ 2019-01-10 1614/week @ 2019-01-17 1450/week @ 2019-01-24 1837/week @ 2019-01-31 1828/week @ 2019-02-07 3290/week @ 2019-02-14 8327/week @ 2019-02-21 8747/week @ 2019-02-28 10000/week @ 2019-03-07 9132/week @ 2019-03-14 8301/week @ 2019-03-21 12606/week @ 2019-03-28

23,332 downloads per month
Used in 804 crates (2 directly)

MIT license

104KB
2K SLoC

redox_users

Redox OS APIs for accessing users and groups information. Documentation

High level APIs for:

  • Getting the current process effective user ID.
  • Getting the current process user ID.
  • Getting the current process effective group ID.
  • Getting the current process group ID.
  • Manipulating User and Group information (including adding, removing, and modifying groups and users, in addition to other functionality, see docs)

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.

Note that redox_users is an API designed only for use on Redox. It compiles on other platforms (for testing), but it will not work and might produce unexpected behavior.

Hashing

redox_users uses the Argon2 hashing algorithm. The default hashing parameters are as follows:

Argon2::new(10, 1, 4096, Variant::Argon2i)

Dependencies

~1MB