@withdouble/lucipher
v2.0.8
Published
Encryption and JWT toolbox
Downloads
187
Keywords
Readme
@withdouble/lucipher
Install
npm i @withdouble/lucipher
Generate Keys
Generate Asymmetric Elliptic Curve Keys
From https://cloud.google.com/iot/docs/how-tos/credentials/keys#generating_an_elliptic_curve_keys
openssl ecparam -genkey -name prime256v1 -noout -out ec_private.pem
openssl ec -in ec_private.pem -pubout -out ec_public.pem
ec_private.pem
and ex_public.pem
contain your keys in text format.
Generate Asymmetric RSA Keys
From https://cloud.google.com/iot/docs/how-tos/credentials/keys#generating_an_rsa_key
openssl genpkey -algorithm RSA -out rsa_private.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -in rsa_private.pem -pubout -out rsa_public.pem
rsa_private.pem
and rsa_public.pem
contain your keys in text format.