R/gen_nonce.r

Defines functions gen_nonce

Documented in gen_nonce

#' Generate a nonce
#' 
#' Generates a random raw (unsigned char*) vector.
#' 
#' @param length
#' The number of elements to return.
#' 
#' @return
#' A random raw vector.
#' 
#' @export
gen_nonce <- function(length=64)
{
  check.is.posint(length)
  
  .Call(R_gen_nonce, as.integer(length))
}

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.