Solved

Which method is safer and faster for file encryption?

Posted on 2012-04-04
2
428 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

786 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