473,385 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Windows Encrypted File System, ASP.NET and IIS

Is there a way to easily and securely use the Windows Encrypted File
System (EFS) with IIS and ASP.NET? Alternatively, I would prefer to
find some sort of totally encrypted low-level device driver to
lock-down and encrypt a hard drive. I remember back in my high school
days experimenting with a low-level driver called KOH.COM that would
require a password upon startup to decrypt file system files. It would
be wonderful if a similar solution were available for NTFS.

-Alan

Nov 19 '05 #1
4 1827
You can use the following API to encrypt with EFS:

[DllImport("advapi32.dll", EntryPoint="EncryptFile", CharSet=CharSet.Auto)]

private static extern int EncryptFile(string file);

Mariano
"Alan Samet" <al*******@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Is there a way to easily and securely use the Windows Encrypted File
System (EFS) with IIS and ASP.NET? Alternatively, I would prefer to
find some sort of totally encrypted low-level device driver to
lock-down and encrypt a hard drive. I remember back in my high school
days experimenting with a low-level driver called KOH.COM that would
require a password upon startup to decrypt file system files. It would
be wonderful if a similar solution were available for NTFS.

-Alan

Nov 19 '05 #2
My issue isn't encrypting data with .net -- it's an issue of protecting
intellectual property on a laptop in the event that it's stolen. I
believe the encrypted file system can do the trick, except for the
security holes that I open up setting up certain services to run under
my user account.

I'd be willing to risk the security risks associated w/ the above if I
could get EFS to work on my asp.net source files without having to
hardcode my username and password in my machine.config file (which
would really totally defeat the purpose). I'm running XP Pro on my
laptop.

-Alan

Nov 19 '05 #3
One alternative that I'm considering is running Virtual PC w/ an
encrypted virtual hard drive file. I'm apprehensive about the
performance of this solution though.

Nov 19 '05 #4
It looks as if I'm going to go with a product by softwinter --
www.softwinter.com called Sentry 2020, or something similar. I'm
playing with it right now. The product allows you to create an
encrypted file that can be mounted and formatted as a hard drive if you
have the key file, and the password to the key file. This solves all of
my authentication issues with Windows EFS. I tested loading a SQL
Server database on the mounted drive. My data loading routing took
about about 5% longer to run (2:30 instead of 2:24). Performance seems
quite acceptable.

-Alan

Alan Samet wrote:
Is there a way to easily and securely use the Windows Encrypted File
System (EFS) with IIS and ASP.NET? Alternatively, I would prefer to
find some sort of totally encrypted low-level device driver to
lock-down and encrypt a hard drive. I remember back in my high school
days experimenting with a low-level driver called KOH.COM that would
require a password upon startup to decrypt file system files. It would
be wonderful if a similar solution were available for NTFS.

-Alan


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ben Kial | last post by:
I need to write a program to "copy" files and preserved the files' atime, mtime, ctime, file permissions. I also need to have this program working in Unix and Windows, where the "Archive"...
2
by: Garry Freemyer | last post by:
I wrote a screensaver, via Visual Studio 2003 in C# and I decided a wiser choice for me was to use an xml file to save my configs. Btw: I wonder if this is why every bit of documentation I've found...
12
by: Dave Bailey | last post by:
I need to store an encrypted connection string in the web.config file. I have found several examples on the Net but nothing specific as to how to accomplish task. Thanks in advance, Dave
8
by: Pete Wittig | last post by:
Hello, I am wondering if it is possible to create a networked application with C# that is seen as a windows user. For example, if Bob logged onto windows and then started the application, any...
4
by: Debbie Carter | last post by:
Would anyone know how to read the file attributes of a file on the hard drive to check if the file is encrypted or not? I have searched Visual Studio Help and MSDN and the samples I have found do...
8
by: robert | last post by:
Hello, I want to put (incrementally) changed/new files from a big file tree "directly,compressed and password-only-encrypted" to a remote backup server incrementally via FTP,SFTP or DAV.... At...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
1
by: MimiMi | last post by:
I'm trying to decrypt a byte array in java that was encrypted in C#. I don't get any error messages, just a result that's completely not what I was hoping for. I think I am using the same type of...
2
by: MimiMi | last post by:
I'm trying to decrypt a byte array in java that was encrypted in C#. I don't get any error messages, just a result that's completely not what I was hoping for. I think I am using the same type of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.