You are not logged in.
Hi ab,
i want to encrypt some data (files) with your "mormot.tools.ecc"
is it possible to decrypt with the public-key with standard tools (openssl?)
How to get a private key in openssl-compatible format?
openssl ecparam -genkey -name prime256v1 | openssl ec -aes256 -out private_key.pem
openssl ec -in private_key.pem -pubout -out public_key.pem
should the "Base64" from (ecc infopriv -auth key.private -pass P@ssW0rd -rounds 60000) represent the key in pem-format?
Thanks.
Offline
No, mormot.tools.ecc is for our own format.
For ASN.1 / X.509 standard formats, use mormot.crypt.ecc.pas functions, or even better the simpler and safer API from CryptPublicKey[ckaEcc256] and CryptPrivateKey[ckaEcc256].
Offline