473,385 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

a kind of digital signature for a record in a table ....

hello,

i have a kind of workflow like:

enter data in a form
aprove data by person 1
aprove data by person 2

data are saved in a sqldatabase

What is the best way to check if data in the table was modifyed after the
aprove of person 2 was made.
I mean to be sure that not somebody has modified the table manually -
I think i must use a field and there store a hash of all fields - with a
signature of person2

thanks

Has
somebody tryed to modify th
Nov 19 '05 #1
3 1525
Who do you need to protect the data from?

Someone in the sysadmin role (I'm assuming SQL Server, but the same
would go for any database) will be able to circumvent almost any
scheme.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 20 Sep 2005 03:56:04 -0700, Xavier
<Xa****@discussions.microsoft.com> wrote:
hello,

i have a kind of workflow like:

enter data in a form
aprove data by person 1
aprove data by person 2

data are saved in a sqldatabase

What is the best way to check if data in the table was modifyed after the
aprove of person 2 was made.
I mean to be sure that not somebody has modified the table manually -
I think i must use a field and there store a hash of all fields - with a
signature of person2

thanks

Has
somebody tryed to modify th


Nov 19 '05 #2
Hello Scott,

yes he could - but he did not know how to calculate and set corectly that
extra field.
So after a recheck the calculated value and the stored value had not the
same value(that means the values were modified!!!)

For example :if the table has for example 5 fields: f1,f2,f3,f4,f5 and the
extra fsig (the calculated signature fiield - where we store the calculated
value )

after a update from "aprove data by person 2" than we can calculate the
value for the extra field with a call to a functian:

CalculateSignature(f1,f2,f3,f4,f5,privatkey)

and set the extra field - fsig with the return value of that function

My question is - what is the best algorytm for the function
"CalculateSignature" .
All 5 parameters for the function stringvalues with a lenght of 5 - 100
characters

best regards
"Scott Allen" wrote:
Who do you need to protect the data from?

Someone in the sysadmin role (I'm assuming SQL Server, but the same
would go for any database) will be able to circumvent almost any
scheme.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 20 Sep 2005 03:56:04 -0700, Xavier
<Xa****@discussions.microsoft.com> wrote:
hello,

i have a kind of workflow like:

enter data in a form
aprove data by person 1
aprove data by person 2

data are saved in a sqldatabase

What is the best way to check if data in the table was modifyed after the
aprove of person 2 was made.
I mean to be sure that not somebody has modified the table manually -
I think i must use a field and there store a hash of all fields - with a
signature of person2

thanks

Nov 19 '05 #3
Oh, from .NET code? The best best is the RSACryptoService provider.
Once you have all of your data encoded into a byte array you can use
SignData or SignHash to get a digital signature (and there are
corresponding verification methods). The trickiest part is managing
the keys, which you'll need to generate and bring in with
ImportParameters.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 20 Sep 2005 09:08:04 -0700, Xavier
<Xa****@discussions.microsoft.com> wrote:
Hello Scott,

yes he could - but he did not know how to calculate and set corectly that
extra field.
So after a recheck the calculated value and the stored value had not the
same value(that means the values were modified!!!)

For example :if the table has for example 5 fields: f1,f2,f3,f4,f5 and the
extra fsig (the calculated signature fiield - where we store the calculated
value )

after a update from "aprove data by person 2" than we can calculate the
value for the extra field with a call to a functian:

CalculateSignature(f1,f2,f3,f4,f5,privatkey)

and set the extra field - fsig with the return value of that function

My question is - what is the best algorytm for the function
"CalculateSignature" .
All 5 parameters for the function stringvalues with a lenght of 5 - 100
characters


Nov 19 '05 #4

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

Similar topics

3
by: Kim H Madsen | last post by:
I have created a .Net Service that is sending mails using SMTP Server/Exchange Server how do i put in a Digital Signature so the reciver is 100% sure that the mail i from the owner of Server where...
7
by: Guangxi Wu | last post by:
Hi all, Happy New Year. I am using SignedXML and an X509 certificate to digitally sign a SOAP message body and put the signature in the SOAP header for a B2B business application. Can you...
5
by: John Campbell | last post by:
Hi everyone I've been doing my best to understand the specifics of implimentating XML Digital Signatures, but I seem to be missing a fundamental concept. Let me start with a description of the...
0
by: CLarkou | last post by:
I bought a digital signature for my MSaccess application in Office 2003. I select TOOLS\Digital Signatures in Visual Basic Editor and I am not able to see my digital signature in the available...
1
by: Marco Moioli | last post by:
Hi, I have a problem with a X509 digital signature. I want to sign a Word 2003 document saved in .xml format. the problem is that after the signature, Word 2003 don't want to open the document. ...
2
by: Martin Høst Normark | last post by:
Hi everyone Has anyone got the least experience in integrating the Digital Signature with an ASP.NET Web Application? Here in Denmark, as I supose in many other countries, they're promoting...
6
by: Matt Frame | last post by:
I have a client that has asked us to get a digital signature certificate and start digitally signing all files we pass between each other. I have heard of the subject and know about the certs but...
1
by: claudia_usa | last post by:
Hello, Does anyone know how to include the signature field when creating PDF crystal reports with VB.net? Our intension is to allow the user to generate the report with their digital signature...
3
by: tmoloy | last post by:
I am using RFID tags to store some data which will then be read by a 3rd party. I need to include a digital signature (or some variation) along with the data so that the 3rd party can verify the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.