@withdouble/lucipher
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "@withdouble/lucipher", | ||
"description": "Encryption and JWT toolbox", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": { | ||
@@ -14,5 +14,2 @@ "name": "Double, inc", | ||
"license": "MIT", | ||
"files": [ | ||
"lib" | ||
], | ||
"repository": { | ||
@@ -19,0 +16,0 @@ "type": "git", |
@@ -8,1 +8,25 @@ # @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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
62358
57
925
31