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

What is the equivalent of the web function for on this library? #105

Open
sagark1510 opened this issue Mar 11, 2024 · 1 comment
Open

What is the equivalent of the web function for on this library? #105

sagark1510 opened this issue Mar 11, 2024 · 1 comment

Comments

@sagark1510
Copy link

In one of my project I need to generate public, private key using openpgp.. the thing is it has specific format to generate keys for web. But on mobile I'm not sure how to replicate this using fast openpgp library.

Web version:

const generatedKeys = await openpgp.generateKey({
        type: 'ecc',
        curve: 'curve25519',
        userIDs: [{ alias }],
        passphrase: '',
        format: 'armored',
      });

What would be the generate function arguments to achieve this?

@jerson
Copy link
Owner

jerson commented Mar 15, 2024

@sagark1510 thanks for asking, we don't support ecc for generation, you may need to find a different library for this

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