title: Using RSA to protect license files
body: <p>I want to use RSA to protect license files in an application. The idea is as follows:</p>
  
  <ol>
  <li>Create a license file (plaintext).</li>
  <li>Create an RSA-keypair.</li>
  <li>Use the public key to encrypt the license file.</li>
  <li>Put the private key in the binary of the application.</li>
  <li>The application can then decode the license file and start running.</li>
  </ol>
  
  <p>The thing is that I have to ship the private key with my application. Is that a problem if I keep the public key secret?</p>
  
  <p>If not, what other good (enough) schemes exist to create a license-file system?</p>