469,347 Members | 2,936 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,347 developers. It's quick & easy.

private memory store in .NET?

KK
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
the
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
file
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
that
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?

regards
KK
Nov 18 '05 #1
0 871

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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.