gecko-dev/third_party/rust/redox_users
Mike Hommey 889cf591cf Bug 1563925 - Update redox_users to 0.3.2. r=froydnj
There are even newer versions, but they pull in a new version of
rust-argon2 that pulls in a new version of base64.

Differential Revision: https://phabricator.services.mozilla.com/D62695

--HG--
extra : moz-landing-system : lando
2020-02-13 18:05:48 +00:00
..
src
tests/etc
.cargo-checksum.json
Cargo.toml
LICENSE
README.md

README.md

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)