Solved

Which method is safer and faster for file encryption?

Posted on 2012-04-04
2
407 Views
Last Modified: 2012-04-05
I have a requirement to upload medical files and encrypt them

Should I use this method :  (filestream)
http://weblogs.asp.net/aghausman/archive/2009/03/16/saving-and-retrieving-file-using-filestream-sql-server-2008.aspx

OR should I encrypt the file in the code, like this:
http://support.microsoft.com/kb/307010

-- As far as safety and speed, which one is better? I'm thinking if I use "filestream", I still need to encrypt the file. Would the file get corrupted?
0
Comment
Question by:Camillia
2 Comments
 
LVL 21

Accepted Solution

by:
masterpass earned 250 total points
ID: 37809463
The first method is just a standard method to store the file to the DB .. If you need to use the encryption, then you willl need to employ method two with method 1

hope this helps!
0
 
LVL 32

Assisted Solution

by:ewangoya
ewangoya earned 250 total points
ID: 37809827
Use the FileStream to store the files but Encrypt the data before saving it.

Similarly to retrieve the data, retrieve from the FileStream, then Decrypt it before display
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now