title: Javascript library for decryption of SMIME.p7m files
body: <p>I am looking for a way to decrypt S/MIME emails on client-side. I specifically don't want client to share private key with the server and thus need to find a way for client to do everything on it's own.</p>
  
  <p>I do not need to support multiple browsers, so employing something like <a href="https://developer.mozilla.org/en-US/docs/JavaScript_crypto">window.Crypto that currently works only with Mozilla Firefox</a> is completely fine. This is especially since browser on client will somehow need to access Certificate store that's on client computer (in order to access private key - with approval of user of course).</p>
  
  <p>I am just lost as to where to start since it's almost impossible to find any example or tutorial on doing something like this, so any code you can share will be more than welcome.</p>