title: Compile time string encryption using constexpr
body: <p>I want to have a compile-time string encryption, such that I could write in my code:</p>
  
  <pre><code>const auto encryptedInvalidLicense = ENCRYPT("Invalid license");
  std::cout &lt;&lt; encryptedInvalidLicense.decrypt() &lt;&lt; std::endl; // outputs "Invalid license"
  </code></pre>
  
  <p>and the string "Invalid license" wont appear in the binaries.
  Pre-builds might be the answer, but I'm looking for a pure c++ <code>constexpr</code> solution to this problem, and that it will be supported by VS2015.</p>
  
  <p>Any suggestions?</p>
  
  <hr>
  
  <ol>
  <li><p>I've already looked into <a href="https://stackoverflow.com/questions/7270473/compile-time-string-encryption">Compile-time string encryption</a>, which doesn't provide a constexpr solution to the problem.</p></li>
  <li><p>I've also looked into <a href="http://www.unknowncheats.me/forum/c-and-c/113715-compile-time-string-encryption.html" rel="nofollow noreferrer">http://www.unknowncheats.me/forum/c-and-c/113715-compile-time-string-encryption.html</a> . Though it's a constexpr solution, VS2015 still adds the strings plain text to the binaries.</p></li>
  </ol>