Secure Password Hashing
Utilities for secure password hashing via the argon2 algorithm.
It is a relatively new hashing algorithm and is believed to be very secure.
The 'argon2' implementation included in the package is the reference
implementation. The package also includes some utilities that should be
useful for digest authentication, including a wrapper of 'blake2b'. For
similar R packages, see sodium and 'bcrypt'. See
<https://eprint.iacr.org/2015/430.pdf> for more information.
- Version: 0.2-0
- License: BSD 2-Clause
- Author: Drew Schmidt (wrathematics .AT. gmail .DOT. com)
- Project home: https://github.com/wrathematics/argon2
- Bug reports: https://github.com/wrathematics/argon2/issues
argon2 is an R package for secure password hashing via the argon2 algorithm. It is a relatively new hashing algorithm and is believed to be very secure. The package also includes some utilities that should be useful for digest authentication, including a wrapper of blake2b. For similar R packages, see sodium and bcrypt.
The package includes a source distribution of the latest implementation from the argon2 developers: https://github.com/P-H-C/phc-winner-argon2. Note that we are unaffiliated with their project; if we break something, don't blame them!
You can install the stable version from CRAN using the usual
The development version is maintained on GitHub, and can easily be installed by any of the packages that offer installations from GitHub:
### Pick your preference devtools::install_github("wrathematics/argon2") ghit::install_github("wrathematics/argon2") remotes::install_github("wrathematics/argon2")
library(argon2) pass <- "myPassw0rd!" hash <- pw_hash(pass) hash ##  "$argon2i$v=19$m=8192,t=20,p=1$KZrdgD04xYK158QoZUEJgQb0QgayasYvjl98hRXf5C7cCqDr/MPARFdp4HtnrSrpZr70SupTrfGVfovUp81VeA$V8WHHdR7a4S0RTOFDAjJCHIerlIjzsPAuPu0rT2lpnObmNOUhldPIgEqBzxQBF71tyjsEIuuRMdG/b5JN3omiA" ## attr(,"hashtype") ##  "argon2" pw_check(hash, pass) ##  TRUE pw_check(hash, "password") ##  FALSE pw_check(hash, "1234") ##  FALSE
Functions in argon2
|gen_nonce||Generate a nonce|
Last month downloads
|License||BSD 2-clause License + file LICENSE|
|Copyright||See inst/COPYRIGHTS for files in src/argon2.|
|Packaged||2017-06-12 12:31:03 UTC; mschmid3|
|Date/Publication||2017-06-12 16:00:50 UTC|
|depends||R (>= 3.0.0)|
Include our badge in your README