title: How would I load a Private / Public Key from a string / byte array or any other container
body: <p>Is it possible to store a RSA Private/Public Key in the source for example in a <code>byte[]</code> or <code>string</code> or any other <code>container</code> and use this key for encryption / decryption?</p>
  
  <p>A decode function from file would look like:</p>
  
  <pre><code>void Decode(const string&amp; filename, BufferedTransformation&amp; bt)
  {
      // http://www.cryptopp.com/docs/ref/class_file_source.html
      FileSource file(filename.c_str(), true /*pumpAll*/);
  
      file.TransferTo(bt);
      bt.MessageEnd();
  }
  </code></pre>
  
  <p>That loads the key from file which is not what I want.</p>
  
  <p>I know it's gotta be possible since I can create the key with <code>AutoSeededRandomPool</code>.</p>
  
  <p>I just don't know how to use an existing one.</p>
  
  <p>Maybe I'm overlooking this part in the documentation.</p>