Unverified Commit 3e2558ba authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub

Merge pull request #16 from MggMuggins/master

Tests! Fix #15
parents 820ab8f1 468c5c9d
......@@ -6,10 +6,11 @@ description = "A Rust library to access Redox users and groups functionality"
license = "MIT"
repository = "https://github.com/redox-os/users"
documentation = "https://docs.rs/redox_users"
readme = "README.md"
keywords = ["redox", "auth"]
[dependencies]
argon2rs = { version = "0.2", default-features = false }
rand = "0.4"
extra = { git = "https://github.com/redox-os/libextra.git" }
redox_syscall = "0.1"
failure = "0.1.1"
......@@ -32,3 +32,9 @@ extern crate redox_users;
```
And `redox_users` is now ready to roll!
## Hashing
redox_users uses the Argon2 hashing algorithm. The default hashing parameters are as follows:
```Rust
Argon2::new(10, 1, 4096, Variant::Argon2i)
```
This diff is collapsed.
root;0;root
user;1000;user
wheel;1;user,root
root;$argon2i$m=4096,t=10,p=1$Tnc4UVV0N00$ML9LIOujd3nmAfkAwEcSTMPqakWUF0OUiLWrIy0nGLk;0;0;root;file:/root;file:/bin/ion
user;;1000;1000;user;file:/home/user;file:/bin/ion
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment