UWP rekey query not working with special unicode characters


#1

Hello,

Currently I am using SQLCipher for UWP and it is working fine.
1
For creating the new connection, I am using
SQLiteConnection conn = new SQLiteConnection(new SQLitePlatformWinRT(user_key), System.IO.Path.Combine(ApplicationData.Current.LocalFolder.Path, dbPath))
2
But couldn’t find any method for rekey, so used the following as mentioned in your website
string query = string.Format("PRAGMA rekey = '{0}';", new_user_key); database.Execute(query);

Here when I use normal ASCII characters, this rekey code works good.

Problem: When using special unicode characters e.g. Ѭ, ¿ etc. my rekey function 2 doesn’t works properly. Although I can access the connection and make changes after rekey with these characters but when I try to open database again with the step 1 , it doesn’t opens the connection.

Am I doing anything wrong here or is there any other easy way to perform rekey?

When I use set these character as key with step 1, everything works fine and I am able to reopen the connection.

Please Help!!
Jatin


#2

Hi @Jatin

We have recently released an update which should address the behavior you are seeing. Please contact us at support@zetetic.net with your order number and we would be happy to provide you with an update.