Learn R Programming

PKI (version 0.1-14)

PKI.random: Generate cryptographically strong pseudo-random bytes.

Description

PKI.random generates n cryptographically strong pseudo-random bytes.

Usage

PKI.random(n)

Value

Raw vector of n cryptographically strong pseudo-random bytes.

Arguments

n

non-negative integer, number of bytes to generate

Author

Simon Urbanek

Details

PKI.random is the preferred way to generate cryptographically strong random content that can be used as keys, seeds etc. Not to be confused with random number generators in R, it is entirely separate for cryptographics purposes.

Examples

Run this code
  PKI.random(10)

Run the code above in your browser using DataLab