title: Android password protect sqlite
body: <p>I have an android application in wich I can export/inport my database to sdcard.</p>
  
  <p>I do it simply by using:</p>
  
  <pre><code>FileChannel src = new FileInputStream(currentDB).getChannel();
  FileChannel dst = new FileOutputStream(backupDB).getChannel();
  dst.transferFrom(src, 0, src.size());
  src.close();
  dst.close();
  </code></pre>
  
  <p>What I would like to do is to password protect my exported database so if anyone tries to open it using sqlite browsing programms they would need to enter a password.</p>
  
  <p>Can this be done(and how)?</p>