title: encryption and decryption in Sqlite database?
body: <p>I want to create a different project in .Net. That will be used for encryption and decryption of SQLite database. I am using this code for encryption, which is working:</p>
  
  <pre><code>SQLiteConnection cnn = new SQLiteConnection("Data Source=c:\\test.db3");
  cnn.Open();
  cnn.ChangePassword("mypassword");
  </code></pre>
  
  <p>But i want to decrypt the database and for that i am using this code for decryption:</p>
  
  <pre><code>SQLiteConnection cnn = new SQLiteConnection("DataSource=c:\\test.db3;Password=mypassword");
  
  cnn.Open();
  cnn.ChangePassword(null);
  </code></pre>
  
  <p>But the code  cnn.ChangePassword(null); shows the below error:</p>
  
  <pre><code>   The call is ambiguous between the following methods or properties: 'System.Data.SQLite.SQLiteConnection.ChangePassword(byte[])' and 'System.Data.SQLite.SQLiteConnection.ChangePassword(string)' 
  </code></pre>
  
  <p>I found this useful link for the above code </p>
  
  <p><a href="http://gater3.rssing.com/chan-3257136/latest.php" rel="nofollow">http://gater3.rssing.com/chan-3257136/latest.php</a></p>
  
  <p>but I don't where i am doing mistake.</p>
  
  <p>Needs help.Thanks in advance.</p>