Hi,
I have an SQL CIPHER encrypted db. All i want to do is remove the password from the encrypted db programtically in .NET . i tried using change password method and passed empty string it didint work but threw an exception.
The steps i took to decrypt was:
- Establish the connection to encrypted db with the password.
- When i use ChangePassword method of Sqlite and pass empty string its throwing an exception.
The code I wrote was
SQLiteConnection conn = new SQLiteConnection(“Data Source=database.db”);
conn.SetPassword(“test”);
conn.Open();
conn.changePassword(""); or conn.changePassword(String.Empty);
This will throw the exception details mentioned below.
Exception :
threw an exception of type 'System.Data.SQLite.SQLiteException’
base: {“SQL logic error or missing database\r\nnot an error”}
ErrorCode: 1
ResultCode: Error
So how should i remove the password from the db programtically ?