471,886 Members | 1,168 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,886 software developers and data experts.

private memory store in .NET?

I am testing some code after reading the following article in MSDN.
"Cryptographic Hash Algorithms Let You Detect Malicious Code in ASP.NET"

In my case, I have quite a lot of aspx files. So I store my hash values in
db. then when ever a request comes for a particular aspx file, it takes
the current hash and compare it with the hash in the database. if they
dont match, it may have been tampered.

But the issue is, having them in the database will have a big performance
hit if this was a real application. (because for every request it open a
hash it, then go to db retrieve old hash compare etc...)

So I was thinking wether I can have a memory store kind of a thing
but only accessible for my assembly (which does the hash verificaiton)
If I can have it then at the beginning, I can load all the old hashes to
memory location and compare (at least it will stop querying the db for
every request)

Even though .NET have a isolatedstorage it is for files. Can anybody
give me some suggestions?

Nov 18 '05 #1
0 935

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by KK | last post: by
6 posts views Thread by David Whitchurch-Bennett | last post: by
reply views Thread by George2 | last post: by
7 posts views Thread by pereges | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.