Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in the javascript sample code on your website.... #166

Open
pperrin opened this issue Dec 6, 2017 · 1 comment
Open

Error in the javascript sample code on your website.... #166

pperrin opened this issue Dec 6, 2017 · 1 comment

Comments

@pperrin
Copy link

pperrin commented Dec 6, 2017

Hi

Been trying this all out, not going too well... but nailed the main problem down to the sample code I copied from the example on your website...

On page https://keybase.io/kbpgp/docs/generating_a_pair

under 'generating a keypair' in the javascript version is shows

   console.log("private key: ", priv);

This should be

    console.log("private key: ", pgp_private);

Really easy to fix once you have found it! :)

Great code, thanks for the share - I love open source heros.

@LoulergueC
Copy link

👍 You're absolutely write.

I even dare to say that on page https://keybase.io/kbpgp/docs/encrypting

In example 1 in the javascript version it's written

kbpgp.box(params, function(err, result_string, result_buffer) {
  console.log(err, result_armored_string, result_raw_buffer);
});

But to correspond to the parameters of the function it should be

kbpgp.box(params, function(err, result_string, result_buffer) {
  console.log(err, result_string, result_buffer);
});

These are only minor issues compared to your great work. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants