#redox #auth

redox_users

A Rust library to access Redox users and groups functionality

7 releases

new 0.3.4 Jan 22, 2020
0.3.3 Jan 20, 2020
0.3.1 Aug 7, 2019
0.3.0 Feb 5, 2019
0.1.0 Mar 28, 2018

#3 in Authentication

Download history 21862/week @ 2019-10-15 23022/week @ 2019-10-22 21841/week @ 2019-10-29 25581/week @ 2019-11-05 26089/week @ 2019-11-12 27805/week @ 2019-11-19 25829/week @ 2019-11-26 29245/week @ 2019-12-03 27933/week @ 2019-12-10 26732/week @ 2019-12-17 15406/week @ 2019-12-24 19111/week @ 2019-12-31 32714/week @ 2020-01-07 31631/week @ 2020-01-14 34549/week @ 2020-01-21

109,501 downloads per month
Used in 1,702 crates (2 directly)

MIT license

110KB
2.5K 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

~625KB
~11K SLoC