keypair: Generate a public key and private key pair

View source: R/keypair.R

keypairR Documentation

Generate a public key and private key pair

Description

Using sodium's 'keygen' and 'pubkey' based on curve25519

Usage

keypair(seed = NULL)

Arguments

seed

A raw object. If NULL, a randon seed will be chosen.

Value

A list with:

  • public_key: A raw object

  • private_key: A raw object

  • seed: A raw object

Examples

temp <- keypair()
str(temp)

talegari/safer documentation built on Feb. 9, 2023, 3:43 p.m.