title: Simple AES encryption using WinAPI
body: <p>I need to do simple single-block AES encryption / decryption in my Qt / C++ application. This is a "keep the honest people honest" implementation, so just a basic <code>encrypt(key, data)</code> is necessary--I'm not worried about initialization vectors, etc. My input and key will always be exactly 16 bytes.</p>
  
  <p>I'd <em>really</em> like to avoid another dependency to compile / link / ship with my application, so I'm trying to use what's available on each platform. On the Mac, this was a one-liner to <code>CCCrypt</code>. On Windows, I'm getting lost in the API from <code>WinCrypt.h</code>. Their example of encrypting a file is almost 600 lines long. <em>Seriously?</em></p>
  
  <p>I'm looking at <code>CryptEncrypt</code>, but I'm falling down the rabbit hole of dependencies you have to create before you can call that.</p>
  
  <p>Can anyone provide a simple example of doing AES encryption using the Windows API? Surely there's a way to do this in a line or two. Assume you already have a 128-bit key and 128-bits of data to encrypt.</p>