RE: Encrypting data in the database



ok - ordered. I'll read throuhg that first. This is one of those things that
has to be done exactly right.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




"Dominick Baier" wrote:

in that case symmetric is easier.

- be aware against whom you want to protect
- data and key should be stored separately
- make sure you understand what you are doing (keys, session keys, IVs, algorithms,
block sizes etc)

i wrote about exactly that scenario in my book - maybe thats useful for you...
http://www.microsoft.com/mspress/books/9989.asp


-----
Dominick Baier (http://www.leastprivilege.com)

In our case it is the same ASP.NET app both encrypting and decrypting.
So I was thinking a symetric key is all we need. If we did a
public/private key, both would be held by the same app.

You say "if it is worth it." Do you think it might not be? If so, can
you explain? I don't want to add complexity if it doesn't buy us
anything.

Cubicle Wars - http://www.windwardreports.com/film.htm

"Dominick Baier" wrote:

have a look here:

http://msdn.microsoft.com/msdnmag/issues/06/01/SecurityBriefs/default
.aspx

this will add complexity to your app (if done correctly) - make sure
it is worth it...

-----
Dominick Baier (http://www.leastprivilege.com)
Good points - I'll add the encryption.

Any suggestions on creating the key for DESCryptoServiceProvider?
The example shows it never being set.

Cubicle Wars - http://www.windwardreports.com/film.htm

"Luke Zhang [MSFT]" wrote:

Hello Dave,

I think it is necessary to also encrypt the password in the
database, A sql server may have multiple administrator and used by
multiple applications. Even we can confirm that our ASP.NET
application is security enough, but we cannot ensure other
applications running with the SQL server is safe, so the db admin's
permission is still able to be leak. Especially, your system store
very important information and require strong security.

In .NET application we can encrypt data with
DESCryptoServiceProvider:
http://msdn2.microsoft.com/en-us/library/system.security.cryptograp
hy .descry ptoserviceprovider.aspx

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.a
sp
x#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues where an initial response from the community or a Microsoft
Support Engineer within 1 business day is acceptable. Please note
that each follow up response may take approximately 2 business days
as the support professional working with you may need further
investigation to reach the most efficient resolution. The offering
is
not appropriate for situations that require urgent, real-time or
phone-based interactions or complex project analysis and dump
analysis issues. Issues of this nature are best handled working
with
a dedicated Microsoft Support Engineer by contacting Microsoft
Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.




.



Relevant Pages

  • RE: Better security
    ... Cubicle Wars - http://www.windwardreports.com/film.htm ... Dominick Baier ... symmetric data encryption, only A,B will share a key. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Better security
    ... get rid of passwords in connection strings..... ... Dominick Baier ... Cubicle Wars - http://www.windwardreports.com/film.htm ... through symmetric data encryption, only A,B will share a key. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Weirdness in LogonUser
    ... Cubicle Wars - http://www.windwardreports.com/film.htm ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ... project analysis and dump analysis issues. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Weirdness in LogonUser
    ... Cubicle Wars - http://www.windwardreports.com/film.htm ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ... project analysis and dump analysis issues. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: WindowsIdentity, Memebrship/Role, or ???
    ... You will find this diagnostics page helpful - in the source you can see all code necessary to determine all security related settings... ... Dominick Baier, DevelopMentor ... authentication/authorization method. ... We support the first 2 and should work with outer systems if ...
    (microsoft.public.dotnet.framework.aspnet.security)