diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /third_party/rust/redox_users/README.md | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/redox_users/README.md')
-rw-r--r-- | third_party/rust/redox_users/README.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/rust/redox_users/README.md b/third_party/rust/redox_users/README.md new file mode 100644 index 0000000000..ccb5d7965c --- /dev/null +++ b/third_party/rust/redox_users/README.md @@ -0,0 +1,23 @@ +# redox_users <a href="https://crates.io/crates/redox_users"><img src="https://img.shields.io/crates/v/redox_users.svg"></a> + +Redox OS APIs for accessing users and groups information. [Documentation](https://docs.rs/redox_users/0.1.0/redox_users/) + +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: +```Rust +Argon2::new(10, 1, 4096, Variant::Argon2i) +``` |