dint-dev / cryptography

Cryptography for Flutter developers: encryption, digital signatures, key agreement, etc.
https://pub.dev/packages/cryptography
Apache License 2.0
162 stars 90 forks source link

Converting ECPrivateKey SEC1 to PCKS8 #153

Open romgrm opened 1 year ago

romgrm commented 1 year ago

Hello ! I'm currently generating an EC keypair that I encode in PEM format.

The back end to which I send the keys tells me that they need the Pkcs8 format and not SEC1.

I wonder if it's possible with this lib, to convert an ECPrivateKey to Pcks8? Or is it only for RSA keys?

Thanks :)