title: M2Crypto - import keys from non-standard file?
body: <p>I have a file with the public exponent and modulus in it. They're not in pem or xml or der format, they're just the values written in at their offsets. </p>
  
  <p>How can I make a public key out of them with M2Crypto? I also have the private key in the same format. I've managed to use code that someone posted here on Stackoverflow to generate a PEM file with php, but this seems like an extremely ridiculous way to do it.</p>
  
  <p>This isn't a one-time thing either, I need to be able to read the public exponent and modulus from files in this format to check the signature.</p>