Archived Forum Post

Index of archived forum posts


Convert XML to PEM

Dec 16 '13 at 10:44

I was trying out some of the encryption stuff and your software is phenomenal. However, in trying a basic program with my limited skills of VB.NET and encryption, I'm trying to convert .XML to .PEM and trying to encrypt and decrypt a string using the .PEM.

The reason I'm trying this is because I noticed that a lot of public keys are in the .PEM format and I would love to find a way to do this using your assembly.

Is there a way to convert .XML to .PEM and use the .PEM for encryption and decryption?


Use the Chilkat.PublicKey class. It provides methods for loading, saving, and getting (to a string) the public key in several formats. To convert from one format to another, just load the PublicKey object from one format, and save/get in another format.