in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

Enabling NTFS Encrypted File System support - obsolete!

Last post 11-21-2005 8:49 AM by Robert Simpson. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 11-21-2005 8:49 AM

    Enabling NTFS Encrypted File System support - obsolete!

    If you're on a domain controller this may or may not work depending on how the domain administrator has setup recovery keys for EFS files.  The actual syntax is very similar to compressing and decompressing files.  It is also completely transparent.  Once encrypted, the file can be opened normally by the user that encrypted it or an administrator.

    using System;

    using System.Data;

    using System.Text;

    using System.Data.Common;

    using System.Data.SQLite;

     

    namespace test

    {

    class Program

    {

    static void Main(string[] args)

    {

    SQLiteConnection.EncryptFile("c:\\mydatabasefile.db3");

    SQLiteConnection.DecryptFile("c:\\mydatabasefile.db3");

    }

    }

    }

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems