title: Store and encrypt a password locally
body: <p>I'm writing a QML client for a service that needs authentication with a username and password. At the moment I am using a c++ plugin to encrypt and decrypt the password, but I'd like to replace that with plain QML to avoid the platform-specific binary.</p>
  
  <p>Not an option:</p>
  
  <ul>
  <li>hard-coding an encryption key (since that could be extracted from the package)</li>
  <li>hashing (since I need to be able to recover the password in plain-text)</li>
  <li>security by obscurity (obviously)</li>
  </ul>