14 releases

0.4.5 Mar 31, 2024
0.4.4 Nov 4, 2023
0.4.3 Mar 30, 2022
0.4.0 Dec 31, 2020
0.1.0 Mar 28, 2018

#49 in Operating systems

Download history 337774/week @ 2024-01-05 352094/week @ 2024-01-12 393899/week @ 2024-01-19 373334/week @ 2024-01-26 368300/week @ 2024-02-02 370358/week @ 2024-02-09 349843/week @ 2024-02-16 388535/week @ 2024-02-23 377824/week @ 2024-03-01 375038/week @ 2024-03-08 377764/week @ 2024-03-15 381851/week @ 2024-03-22 399800/week @ 2024-03-29 369724/week @ 2024-04-05 376332/week @ 2024-04-12 321954/week @ 2024-04-19

1,541,551 downloads per month
Used in 9,402 crates (3 directly)

MIT license

57KB
1K 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

~0.5–1.3MB
~29K SLoC