title: knockout and password encrypted
body: <p>I am trying to have a password input box that can be filled  in and will encrypt and saves.</p>
  
  <p>On reload it read saved and display **** encrypted password so if get saved again still valid</p>
  
  <p>( This is for Username and Password for SMTP email)</p>
  
  <p>Cannot work out how to do this.</p>
  
  <pre><code>#------------------------------------------------------------------------------------------------------------------------
  # check_password
  #------------------------------------------------------------------------------------------------------------------------
  def encrypt_decrypt(password):
      enc_str = self._settings.get(["email_salt"])
      return "".join([chr(ord(a) ^ ord(b)) for a,b in zip(password,enc_str)])
      # https://www.quora.com/Whats-the-best-way-to-store-a-password-in-a-plain-text-file-so-thats-its-not-human-readable
  </code></pre>
  
  <p>html</p>
  
  <pre><code>&lt;div class="control-group"&gt;
      &lt;label class="control-label"&gt;{{ _('SMTP Password') }}&lt;/label&gt;
      &lt;div class="controls"&gt;
         &lt;input type="password" class="input-block-level" data-bind="value: global_settings.settings.plugins.enclosure.email_password"&gt; 
          &lt;span class="help-inline"&gt;Password to login SMTP&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>