Skip to contents

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)
#> List of 3
#>  $ public_key : raw [1:32] ae ef 5c 21 ...
#>  $ private_key: raw [1:32] 09 82 05 bd ...
#>  $ seed       : raw [1:32] 4b 3d 42 f1 ...