tests/gen_nonce.R

library(argon2)
set.seed(1234)

x = gen_nonce()
stopifnot(identical(length(x), 64L))
stopifnot(identical(typeof(x), "raw"))

x = gen_nonce(32)
stopifnot(identical(length(x), 32L))
stopifnot(identical(typeof(x), "raw"))

Try the argon2 package in your browser

Any scripts or data that you put into this service are public.

argon2 documentation built on Oct. 31, 2021, 1:06 a.m.