read_jwk | R Documentation |
Read and write RSA, ECDSA or AES keys as JSON web keys.
read_jwk(file)
write_jwk(x, path = NULL)
file |
path to file with key data or literal json string |
x |
an RSA or EC key or pubkey file |
path |
file path to write output |
# generate an ecdsa key
library(openssl)
key <- ec_keygen("P-521")
write_jwk(key)
write_jwk(as.list(key)$pubkey)
# Same for RSA
key <- rsa_keygen()
write_jwk(key)
write_jwk(as.list(key)$pubkey)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.