jerson / react-native-fast-openpgp

OpenPGP for react native made with golang for fast performance
https://www.npmjs.com/package/react-native-fast-openpgp
MIT License
45 stars 18 forks source link

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

Open sagark1510 opened 8 months ago

sagark1510 commented 8 months ago

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 commented 8 months ago

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