Skip to contents

Create a new empty morie keystore

Usage

morie_crypto_keystore_create(password, path = .morie_keystore_default_path())

Arguments

password

Character scalar: keystore password.

path

File path.

Value

Invisibly, NULL.

Examples

if (morie_crypto_sodium_available()) {
  path <- tempfile(fileext = ".keystore")
  morie_crypto_keystore_create("open sesame", path = path)
  print(file.exists(path))
  unlink(path)
}
#> [1] TRUE