Re: Create hash with AES?
From: Michel Gallant (neutron_at_NOSPAMistar.ca)
Date: 11/08/03
- Next message: Dan Malloy: "RE: Custom Membership Condition"
- Previous message: Michel Gallant: "Re: Create hash with AES?"
- In reply to: Pieter Philippaerts: "Re: Create hash with AES?"
- Next in thread: Michael Giagnocavo [MVP]: "Re: Create hash with AES?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 8 Nov 2003 10:36:25 -0500
"Pieter Philippaerts" <Pieter@nospam.mentalis.org> wrote in message
news:OVOZExgpDHA.3688@TK2MSFTNGP11.phx.gbl...
> "Bob" <bob@nospam.com> wrote in message
> > It just occured to me that I should probably ask if AES is in fact the
> best
> > way to go for the encryption of sensitive Govt data? Mainly text and
> binary
> > files, but also email, and text such as passwords...
>
> Yes, the AES is the most sensible choice.
>
> However if you're going to encrypt government data with it, I suggest you do
> not use the code posted here in this thread; it has some serious issues.
-- snip
> Long story short: don't use
> passwords, use a secure random key. [You can generate a random key by using
> the RNGCryptoServiceProvider. Before storing the key on a disk, encrypt it
> with a public/private key pair of the user. For government purposes, it
> would be wise to use a public/private key pair on a smart card. If this is
> not possible, you can always use the public/private key pairs Windows
> generates for each user account. Unfortunately, I don't think .NET has
> direct support for this, so you may have to do some interop.]
An article will appear next week (will advise here) showing how to use any
X509 certificate file, or any CryptoAPI store certificate, to "envelope" the
symmetric key (i.e. encrypt with the RSA public key) any .NET symmetric key
and associated IV for best protection, as Pieter advises above. Currently, this
functionality requires Pinvoke to CryptoAPI, but next release of .NET will
have classes supporting this EnvelopedData funtionality.
Cheers,
- Mitch Gallant
- Next message: Dan Malloy: "RE: Custom Membership Condition"
- Previous message: Michel Gallant: "Re: Create hash with AES?"
- In reply to: Pieter Philippaerts: "Re: Create hash with AES?"
- Next in thread: Michael Giagnocavo [MVP]: "Re: Create hash with AES?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|