I have windows universal app. In this app I use SQLite and I need secure this file. It is saved in the LocalFolder and user has access to him.
I need set access only for my APP or set password for this database or anything else. Please, Do you know about extension that can help me?
Thanks
In Windows Store API you will find some namespaces, which I think you can use for your purpose: Windows.Security.Cryptography, Windows.Security.Cryptography.Core and Windows.Security.Cryptography.DataProtection.
Edited after Maarten Bodewes comment - added randomized initialization vector.
A very simple example of encrypting some data can look like this:
I've tested it like this:
The above code is of course very simple and should be improved, but maybe will help you to start. Also please remember to protect your secret key, it's not so hard to decompile the package.