473,699 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to design a cryptographic "check" of a page's integrity using .NET?

I have an idea for a way to help maintain my websites, and I'm hoping
someone can help me figure out how to implement it using C#, VB.NET, or
elements of the .NET framework. I'd be putting this on ASP.NET pages.

There's always the possibility that webpages can a) get defaced, or b) go
offline for one reason or another.

I was thinking that there's probably some way to generate a unique key based
on the content of a page. My program would validate page integrity by
comparing the generated key to a previously generated value. The easy and
obvious answer would be to do a simple byte count -- and that might be
sufficient. Another easy answer is to do a byte-for-byte comparison of an
older content stream to the new. But just for the sake of my curiousity and
our learning, can someone suggest a way that the content of the page could
be analyzed to generate a unique key?

Are there tools in the .NET framework to do this?

If I were to do this byte-for-byte comparison, is there anything more
advanced in .NETland than [if string x is identical to string Y then return
true]?

Thanks for any suggestions...
Nov 19 '05 #1
1 1169
I googled for intrusion detection systems and got a list of IIS related ones:

http://www.windowsecurity.com/softwa...ion-Detection/

-Brock
DevelopMentor
http://staff.develop.com/ballen
I have an idea for a way to help maintain my websites, and I'm hoping
someone can help me figure out how to implement it using C#, VB.NET,
or elements of the .NET framework. I'd be putting this on ASP.NET
pages.

There's always the possibility that webpages can a) get defaced, or b)
go offline for one reason or another.

I was thinking that there's probably some way to generate a unique key
based on the content of a page. My program would validate page
integrity by comparing the generated key to a previously generated
value. The easy and obvious answer would be to do a simple byte count
-- and that might be sufficient. Another easy answer is to do a
byte-for-byte comparison of an older content stream to the new. But
just for the sake of my curiousity and our learning, can someone
suggest a way that the content of the page could be analyzed to
generate a unique key?

Are there tools in the .NET framework to do this?

If I were to do this byte-for-byte comparison, is there anything more
advanced in .NETland than [if string x is identical to string Y then
return true]?

Thanks for any suggestions...


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3228
by: Askari | last post by:
Hi, How do for do a "select()" on a CheckButton in a menu (make with add_checkbutton(....) )? I can modify title, state, etc but not the "check state". :-( Askari
7
2895
by: Jaime Stuardo | last post by:
Hi all.. I have a DataGrid with checkboxes. In the header I have a "check all" checkbox. I'm wondering if there is an easy way to check all checkboxes using that checkbox. I could do it using JavaScript code, but the main problem I have is that checkboxes ids aren't kept when the datagrid is rendered, for example, if the checkboxes have the name chkNumid, when the datagrid is rendered, the checkboxes become dgDataGrid_ctl02_chkNumId,
2
4842
by: Ed Staffin | last post by:
In Internet Explorer under the tools/internet options menu on the general tab, there is a settings button under Temporary internet files. In there the user can specify when to "Check for newer versions of stored pages." I want to make sure that my pages are refreshed every time they visit regardless of this setting. Is there a way to do this? Thanks ... Ed
7
3016
by: Andy Mabbett | last post by:
I've just placed an "opensearch.xml" file on a website I mange. At present, it's only referenced from one page: http://www.westmidlandbirdclub.com/new.htm and the results are HTML, not RSS/ Atom. Would someone with IE7 kindly check it out for me, please? Thank you.
1
1487
by: tom_8872 | last post by:
Need a Logo Design? Check out this Company! They made my logo for only $19.95! Though you might want to check it out. Here is the link: http://www.pwcwebmasters.com/entrepreneur_logo_design_package.html
1
3540
by: Abdo Haji-Ali | last post by:
Greetings, I'm using the ASP.NET membership model in my site and everything works perfectly, locally. However when I uploaded my site (To my host which is GoDaddy), and ran it remotely the "Remember Me" check box was not working *at all*. What I mean is when I try to log in with "Remember Me" check box checked, the login fails completely and I'm taken back to the login page (Can't say I left it though :) ). When loggin in with this...
1
1591
by: Mikewill | last post by:
I need to fix my Moodle database and someone has told me that they "used their server's CPanel and the mySQL feature to "check" then "fix" his moodle database". I dont have a cpanel and was hoping someone could help a newbie to "check" and "fix" functions in MySQL? Hope someone can help? :-)
1
5133
by: vincehallam | last post by:
Hi newby here sorry if this sounds bread and butter stuff. Using MS Access 2003 On a Form I want two Combo boxes which are getting their data from a table. The Combo boxes are A "Price 1" & B "If Bank Holiday Price Two". Is it possible to have "Price 1" visible as default but then if I tick a check box to have "If Bank Holiday Price Two" pop up and the values in B be used when clicked instead of "A". Hope this makes sense ? Regards...
6
8018
by: James Yang | last post by:
"bad page", especially in table, is a risk for database maintenance. The particular access attempt for corrupt blocks may not occur often, and corrupt DB2 blocks are not recognized during a database backup, corrupt blocks can remain undetected in an UDB system for a long time. The potential solution is: 1) Restore from a GOOD backup and rollforward (Recommended). The problem is backup normally is kept for 30 days so we must find the...
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9172
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8908
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.