From 6c084e6b48e089b0a85571bdb5d4759ff285536b Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 30 Jul 2016 16:04:57 -0400 Subject: [PATCH] typo 6553 -> 65537 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3b75d62..6ee60ac 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ var PromiseA = require('bluebird'); var RSA = PromiseA.promisify(require('rsa-compat').RSA); var bitlen = 1024; -var exp = 6553; +var exp = 65537; var options = { public: true, pem: true, internal: true }; RSA.generateKeypair(bitlen, exp, options).then(function (keypair) { @@ -34,7 +34,7 @@ RSA.generateKeypair(bitlen, exp, options).then(function (keypair) { , privateKeyJwk: { kty: "RSA" , n: '/*base64 modulus n = pq*/' - , e: '/*base64 exponent (usually 6553)*/' + , e: '/*base64 exponent (usually 65537)*/' , d: '/*base64 private exponent (d = e^−1 (mod ϕ(n))/' , p: '/*base64 first prime*/' , q: /*base64 second prime*/ @@ -45,7 +45,7 @@ RSA.generateKeypair(bitlen, exp, options).then(function (keypair) { , publicKeyJwk: { kty: "RSA" , n: /*base64 modulus n = pq*/ - , e: /base64 exponent (usually 6553)*/ + , e: /base64 exponent (usually 65537)*/ } , _ursa: /*undefined or intermediate ursa object*/ , _forge: /*undefined or intermediate forge object*/ @@ -68,12 +68,12 @@ 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, 6553, { pem: false, public: false, internal: false }, function (keypair) { /*...*/ }); +RSA.generateKeypair(1024, 65537, { pem: false, public: false, internal: false }, function (keypair) { /*...*/ }); ``` `bitlen`: *1024* (default), 2048, or 4096 -`exp`: *6553* (default) +`exp`: *65537* (default) `options`: ```javascript