Yes I found this article too, thanks anyway for posting.
I immediately tried the code explained below the article
http://msdn.microsoft.com/en-us/library/89211k9b(VS.80).aspx
the code in this method:
ToggleConfigEncryption(string exeConfigName) does all the
magic of encryption, the decryption process is only needed when you
have to change the connection string.
I removed the parameter in nhibernate.cfg.xml
<property name="connection.connection_string">
Data source=MyDatabase.s3db;Version=3
</property>
I placed the connection string in the app.config
<add name="SQLiteCon"
connectionString="Data source=MyDatabase.s3db;Version=3"/>
Then I went again to nhibernate.cfg.xml and placed this
<property name="connection.connection_string_name">SQLiteCon</
property>
at the startup of my application I ensured that the app.config is
encrypted with
the ToggleConfigEncryption("MyApp.exe") command explained in the
article.
It did wonderfully worked, but I didn't understand the process of
decryption
in runtime, how, when etc!
Jason Dentler can you tell me something about SQLite db its seems
your familiar with it according to your BLOG, I have some questions:
1) What is the capacity if SQLite? How many GB of information can it
hold?
2) I don't know how to set up a relative path to my connection string
I tried
..\..\MyDb.s3db etc.. but it seems it does not create it where I want
it seems somehow it holds it in memory, because if I specify such a
relative
file path the file disappears, but when I run the application it does
work
and the information are saved and retrieved, also after I exit and
start
again the application, it somehow stores in some secret place but I
cannot
find it.
3) If you had to deploy something with embedded databse which embedded
DB
would you choose?
Visar
On Apr 21, 8:05 am, Jason Dentler <
jasondent...@gmail.com> wrote:
> Being a web guy, I immediately thought of aspnet_regiis encryption, which
> doesn't really apply to desktop apps, but is completely transparent to the
> application.
>
> Combined with Jose's suggestion, this might do the trick for you.
http://msdn.microsoft.com/en-us/library/89211k9b(VS.80).aspx
> > <
nhusers%2Bunsu...@googlegroups.com<nhusers%252Bunsubscribe@googlegroup
s.com>