Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Encryption Key/Cache

Reply
Thread Tools

Encryption Key/Cache

 
 
A. Elamiri
Guest
Posts: n/a
 
      04-19-2004
I would like to store some Role Information in a cookie since I cannot use
Session in the AuthenticateRequest method.

I thought of encrypting the cookie using Rijndael Algo. for provider. I
would generate a 16 character key store it as a Cached object and replace it
every 20-30 minutes, if the cookie data does not decrypt then simply reload
it because I would assume that key expired.

Is this a secure way of doing it?



--
Abdellah Elamiri
..net Developer
Efficacy through simplicity


 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      04-19-2004
It almost seems secure, but...
I question your logic of assuming the key is expired if it does not decrypt
(and accepting it anyway.)
Another reason the key might not decrypt is if someone has been tampering
with it. A hacker might attempt this. It seems they could put any value at
all into the cookie and then your code would assume it's good (but expired)
and then generate a new one.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


"A. Elamiri" <abdellahDOTelamiriATclintonDOTedutNOSPAM> wrote in message
news:...
> I would like to store some Role Information in a cookie since I cannot use
> Session in the AuthenticateRequest method.
>
> I thought of encrypting the cookie using Rijndael Algo. for provider. I
> would generate a 16 character key store it as a Cached object and replace

it
> every 20-30 minutes, if the cookie data does not decrypt then simply

reload
> it because I would assume that key expired.
>
> Is this a secure way of doing it?
>
>
>
> --
> Abdellah Elamiri
> .net Developer
> Efficacy through simplicity
>
>



 
Reply With Quote
 
 
 
 
A. Elamiri
Guest
Posts: n/a
 
      04-19-2004
Thanks for the feedback

--
Abdellah Elamiri
..net Developer
Efficacy through simplicity
"Steve C. Orr [MVP, MCSD]" <> wrote in message
news:...
> It almost seems secure, but...
> I question your logic of assuming the key is expired if it does not

decrypt
> (and accepting it anyway.)
> Another reason the key might not decrypt is if someone has been tampering
> with it. A hacker might attempt this. It seems they could put any value

at
> all into the cookie and then your code would assume it's good (but

expired)
> and then generate a new one.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
>
> "A. Elamiri" <abdellahDOTelamiriATclintonDOTedutNOSPAM> wrote in message
> news:...
> > I would like to store some Role Information in a cookie since I cannot

use
> > Session in the AuthenticateRequest method.
> >
> > I thought of encrypting the cookie using Rijndael Algo. for provider. I
> > would generate a 16 character key store it as a Cached object and

replace
> it
> > every 20-30 minutes, if the cookie data does not decrypt then simply

> reload
> > it because I would assume that key expired.
> >
> > Is this a secure way of doing it?
> >
> >
> >
> > --
> > Abdellah Elamiri
> > .net Developer
> > Efficacy through simplicity
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which hard drive encryption program has the strongest tested encryption & security? =?iso-8859-1?Q?-=3D|__=28=BAL=BA=29__|=3D-____o=3D=5B:::::::::::::::=BB?= Computer Security 6 02-20-2008 01:35 PM
Where are encryption keys stored? Philip Herlihy Wireless Networking 5 07-12-2004 06:31 PM
Configuring an Enterprise wireless solutions with encryption Harrison Midkiff Wireless Networking 0 07-02-2004 06:23 PM
Wireless AP with WPA encryption Joseph Wireless Networking 2 06-28-2004 11:12 AM
Re: windows xp and wep 64bit encryption 1magic Wireless Networking 0 06-17-2004 12:07 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57