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)

safer documentation built on March 24, 2026, 9:08 a.m.