From f0adccbc31d660c04637415d77a70b5e99474e02 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 10 May 2018 21:01:54 +0000 Subject: [PATCH] 1024 deprecated, use 2048 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0caf41d..055704f 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Generate an RSA Keypair: ```javascript var RSA = require('rsa-compat').RSA; -var bitlen = 1024; +var bitlen = 2048; var exp = 65537; var options = { public: true, pem: true, internal: true }; @@ -111,10 +111,10 @@ Create a private keypair and export it as PEM, JWK, and/or internal formats ```javascript RSA.generateKeypair(null, null, null, function (keypair) { /*...*/ }); -RSA.generateKeypair(1024, 65537, { pem: false, public: false, internal: false }, function (keypair) { /*...*/ }); +RSA.generateKeypair(2048, 65537, { pem: false, public: false, internal: false }, function (keypair) { /*...*/ }); ``` -`bitlen`: *1024* (default), 2048, or 4096 +`bitlen`: 2048 or 4096 `exp`: *65537* (default)