title: How to find the modulus and exponent from a public key?
body: <p>I need to encrypt some data using RSA in PHP. All of the libraries around ask for an exponent and a modulus, yet I get a single public key like this </p>
  
  <p>Public Key:</p>
  
  <pre><code>-----BEGIN PUBLIC KEY-----
  MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVnXLu0FM37CmUYjJuu4JaB6bo
  liJ1b5BybAVcqlfvUxjpU+VVhKnZNd4IU7S0ITRTAKvoFk68CiUmaRA9871mfxjp
  sX6YeNs913LyGwFw0bmno+1o6URBui2p3gHwGQL8R/jIl4NHC1TF47Q5Vj3RuraV
  Ky4YH6dp7YIJRaU7JQIDAQAB
  -----END PUBLIC KEY----- 
  </code></pre>
  
  <p>How do you retrieve the public exponent and modulus part from this ?</p>