Closed maxisme closed 6 years ago
I have noticed the dataValue
but what about being able to set this?
All keys (symmetric and asymmetric) have a constructor - initWithData:dataValue
and a getter dataValue
which work with the raw key values. PEM is just the raw values BASE64 encoded. Have a look at the unit tests in MIHRSAKeyTests.m for sample usage with PEM files.
Awesome thank you.
Have you thought about implementing Elliptic Curve technology?
Yes, ECC was on my TODO list. But since I never needed it I also never done so.
How could I go about sharing and then using a generated public key?
I have wrote the functions:
The first function will return a string representation of the
MIHPublicKey
orMIHPrivateKey
object. And the second from the string to the object.It would be cool if I could export the key in a format similar to a .pem file. It would also be great if I could read that format and turn it back into the object.
How would you recommend doing it?