HighTechTalks DotNet Forums  

How to generate validationKey ??

Dotnet Security microsoft.public.dotnet.security


Discuss How to generate validationKey ?? in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Bragadiru
 
Posts: n/a

Default How to generate validationKey ?? - 02-15-2007 , 07:48 AM






Hi all,

I want to protect my web.config - connectionStrings section like in
http://msdn2.microsoft.com/en-us/lib...ky(VS.80).aspx - with
RSAProtectedConfigurationProvider.

But i don't want to use the decryptKey+validationKey from that example. How
can I generate my own keys ? An example or link would be very helpfull.
I don't think I can use RNGCryptoServiceProvider from
http://support.microsoft.com/kb/312906

Thanks for any advice




Reply With Quote
  #2  
Old   
Dominick Baier
 
Posts: n/a

Default Re: How to generate validationKey ?? - 02-15-2007 , 09:18 AM






I think you are mixing things up -

the article shows how to protect configuration sections using the RSA provider
- the use the machineKey element (which contains the validationKey) just
as an example..

However - if you want to generate machine keys - you can use this tool (which
indeed uses RNGCryptoServiceProvider - but you have to convert the output
to hex)

http://www.develop.com/us/technology...5-b080117ceac0

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

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Quote:
Hi all,

I want to protect my web.config - connectionStrings section like in
http://msdn2.microsoft.com/en-us/lib...ky(VS.80).aspx - with
RSAProtectedConfigurationProvider.

But i don't want to use the decryptKey+validationKey from that
example. How
can I generate my own keys ? An example or link would be very
helpfull.
I don't think I can use RNGCryptoServiceProvider from
http://support.microsoft.com/kb/312906
Thanks for any advice




Reply With Quote
  #3  
Old   
Bragadiru
 
Posts: n/a

Default Re: How to generate validationKey ?? - 02-15-2007 , 10:46 AM



Thanks Dominick. You are totally right, it was a mess in my head.

What are you recommending me to encrypt connectionStrings in a sql table ?
I don't need to sign or to hash the crypted text.
I'm thinking that a symetric encryption with a secret key is enough, if my
app is the only one who needs to encrypt+decrypt the data.
I choosed DESCryptoServiceProvider.

Thanks again




"Dominick Baier" <dbaier (AT) pleasepleasenospam_leastprivilege (DOT) com> wrote in
message news:51eb304886598c91f2bbeb62440 (AT) news (DOT) microsoft.com...
Quote:
I think you are mixing things up -

the article shows how to protect configuration sections using the RSA
provider - the use the machineKey element (which contains the
validationKey) just as an example..

However - if you want to generate machine keys - you can use this tool
(which indeed uses RNGCryptoServiceProvider - but you have to convert the
output to hex)

http://www.develop.com/us/technology...5-b080117ceac0

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

Developing More Secure Microsoft ASP.NET 2.0 Applications
(http://www.microsoft.com/mspress/books/9989.asp)

Hi all,

I want to protect my web.config - connectionStrings section like in
http://msdn2.microsoft.com/en-us/lib...ky(VS.80).aspx - with
RSAProtectedConfigurationProvider.

But i don't want to use the decryptKey+validationKey from that
example. How
can I generate my own keys ? An example or link would be very
helpfull.
I don't think I can use RNGCryptoServiceProvider from
http://support.microsoft.com/kb/312906
Thanks for any advice






Reply With Quote
  #4  
Old   
Dominick Baier
 
Posts: n/a

Default Re: How to generate validationKey ?? - 02-16-2007 , 04:39 AM



Hi,

i would use RijndaelManaged with a key/block size of 128 bits...


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

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Quote:
Thanks Dominick. You are totally right, it was a mess in my head.

What are you recommending me to encrypt connectionStrings in a sql
table ?
I don't need to sign or to hash the crypted text.
I'm thinking that a symetric encryption with a secret key is enough,
if my
app is the only one who needs to encrypt+decrypt the data.
I choosed DESCryptoServiceProvider.
Thanks again

"Dominick Baier" <dbaier (AT) pleasepleasenospam_leastprivilege (DOT) com> wrote
in message news:51eb304886598c91f2bbeb62440 (AT) news (DOT) microsoft.com...

I think you are mixing things up -

the article shows how to protect configuration sections using the RSA
provider - the use the machineKey element (which contains the
validationKey) just as an example..

However - if you want to generate machine keys - you can use this
tool (which indeed uses RNGCryptoServiceProvider - but you have to
convert the output to hex)

http://www.develop.com/us/technology...x?id=78da5ca5-
5079-4f8f-99c5-b080117ceac0

-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications
(http://www.microsoft.com/mspress/books/9989.asp)

Hi all,

I want to protect my web.config - connectionStrings section like in
http://msdn2.microsoft.com/en-us/lib...ky(VS.80).aspx - with
RSAProtectedConfigurationProvider.

But i don't want to use the decryptKey+validationKey from that
example. How
can I generate my own keys ? An example or link would be very
helpfull.
I don't think I can use RNGCryptoServiceProvider from
http://support.microsoft.com/kb/312906
Thanks for any advice



Reply With Quote
  #5  
Old   
Bragadiru
 
Posts: n/a

Default Re: How to generate validationKey ?? - 02-19-2007 , 03:27 AM



Thank you, Dominick



"Dominick Baier" <dbaier (AT) pleasepleasenospam_leastprivilege (DOT) com> wrote in
message news:51eb304887918c91fcddb083be0 (AT) news (DOT) microsoft.com...
Quote:
Hi,
i would use RijndaelManaged with a key/block size of 128 bits...


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

Developing More Secure Microsoft ASP.NET 2.0 Applications
(http://www.microsoft.com/mspress/books/9989.asp)

Thanks Dominick. You are totally right, it was a mess in my head.

What are you recommending me to encrypt connectionStrings in a sql
table ?
I don't need to sign or to hash the crypted text.
I'm thinking that a symetric encryption with a secret key is enough,
if my
app is the only one who needs to encrypt+decrypt the data.
I choosed DESCryptoServiceProvider.
Thanks again

"Dominick Baier" <dbaier (AT) pleasepleasenospam_leastprivilege (DOT) com> wrote
in message news:51eb304886598c91f2bbeb62440 (AT) news (DOT) microsoft.com...

I think you are mixing things up -

the article shows how to protect configuration sections using the RSA
provider - the use the machineKey element (which contains the
validationKey) just as an example..

However - if you want to generate machine keys - you can use this
tool (which indeed uses RNGCryptoServiceProvider - but you have to
convert the output to hex)

http://www.develop.com/us/technology...x?id=78da5ca5-
5079-4f8f-99c5-b080117ceac0

-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications
(http://www.microsoft.com/mspress/books/9989.asp)

Hi all,

I want to protect my web.config - connectionStrings section like in
http://msdn2.microsoft.com/en-us/lib...ky(VS.80).aspx - with
RSAProtectedConfigurationProvider.

But i don't want to use the decryptKey+validationKey from that
example. How
can I generate my own keys ? An example or link would be very
helpfull.
I don't think I can use RNGCryptoServiceProvider from
http://support.microsoft.com/kb/312906
Thanks for any advice





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.