2.0.8 • Published 4 years ago
@withdouble/lucipher v2.0.8
@withdouble/lucipher
Install
npm i @withdouble/lucipherGenerate 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.pemec_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.pemrsa_private.pem and rsa_public.pem contain your keys in text format.