Re: Hardcoding RijndaelManaged Keys
From: Michael Giagnocavo [MVP] (mggUNSPAM_at_Atrevido.net)
Date: 03/16/04
- Previous message: Michel Gallant: "Re: securing an assembly"
- In reply to: moondaddy: "Hardcoding RijndaelManaged Keys"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 16 Mar 2004 00:41:22 -0500
In addition to Shawn's info, I'd suggest looking into Web Service
Enhancements (WSE), since they can make securing web services much easier.
You can download it (free) from MSDN. There's also a VS.NET addon for WSE
so you can set project settings using a GUI.
-mike
MVP
"moondaddy" <moondaddy@nospam.com> wrote in message
news:uPLs7H6BEHA.3848@TK2MSFTNGP11.phx.gbl...
> I have a vb.net WinForms app using web services which needs to send secure
> data back and forth to the server. This app will not be widely used and
> only a few people will have access to it.
>
> I was wanting to hardcode the private and public keys on both sides so I
> wouldn't have to be sending any keys across the wire. I generate the keys
> like this:
>
> Dim myRijndael As New RijndaelManaged
> myRijndael.GenerateKey()
> myRijndael.GenerateIV()
> 'Get the key and IV.
> key = myRijndael.Key
> IV = myRijndael.IV
>
> Does the Key and IV have to be generated each time data is encrypted, or
can
> I simply generate them once, write them to an output, and then hardcode
them
> into variables on both the server and the client app. If this isn't
> possible or is really wrong, then is there another wait to achieve this
like
> using some sort of certificate signature on both sides?
>
> Obviously I'm new at this and need some guidance. If I don't do it the
way
> explained above, then it seems that in order to send some secure data from
> the client to the server, the client needs to first request a public key
> from the server, then encrypt the data using this public key and send the
> encrypted data to the server which results in 2 round trips and also
passing
> a key around. If the key were intercepted, then a 'hacker' could use this
> key to encrypt his own parameters or data and send that to the server
which
> the server could then decrypt and posibly use such as inserting a new user
> and password which they could then use to hack access into the app.
>
> Thanks.
>
> --
> moondaddy@nospam.com
>
>
- Previous message: Michel Gallant: "Re: securing an assembly"
- In reply to: moondaddy: "Hardcoding RijndaelManaged Keys"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|