title: Generate a QR Code in ASP.NET C# without using a 3rd party provider
body: <p>I'm using ASP.NET identity 2 and one of the tutorials includes using a 3rd part provider to generate a QR Code for Google authenticator for two-factor authentication. However, I don't want to send that data to a 3rd party (which is what other solutions point to, like google, etc). I'm specifically looking for code to solve my issue.</p>
  
  <p>I'd like either the server or the client to generate the QR Code. Anyone else have a good solution for doing this? Below is the line of code that generates the QR Code in the cshtml file. The <code>@(Model.BarcodeURL)</code> is the razor model attribute with the data for the QR Code.</p>
  
  <pre><code>        &lt;img src="http://qrcode.kaywa.com/img.php?s=4&amp;d=@(Model.BarcodeUrl)" /&gt;
  </code></pre>