Question

In: Computer Science

What I want to do is to digitally sign a document. I am new to cryptography and was wondering what issues to take into account.

What I want to do is to digitally sign a document. I am new to cryptography and was wondering what issues to take into account. The only criteria is that a textual document signed should produce a code that is different if lines in the same document are shifted. I heard that MD5 is broken and that one should avoid SHA1 (because of NSA etc).


Solutions

Expert Solution

If you assume people are able to trust your website, you could simply list the SHA-256 (for example) hashes of your documents on your website. Perhaps include an URL in the signed document pointing to a particular page on your site that lists the hash for that file.

Trusting others to get the correct hash from your website when they visit the URL would remain unsolved. Someone could intercept the request and return a different hash that matches a modified document they've distributed.

The more complex option is public key signatures.

If you go that way you would use something like GPG/PGP to generate a key-pair, distribute the public key, then sign the documents using the private key. In this case an attacker couldn't produce a different signature that matches your key even if they controlled requests to the documents and your website.

However, you would still need to get your public key into the hands of anyone wanting to verify the signature. An attacker who could distribute their own key as yours could again forge signed documents in your name.


Related Solutions

I was wondering if I was doing a conversion right. I am supposed to take aqueous...
I was wondering if I was doing a conversion right. I am supposed to take aqueous HNO3 with a density of 1.42 g/mL and a mass percent of solution of 70% and convert that into molarity. Would the correct conversion be to take 70 g of HNO3 over 100 g of H2O multiplied by 1 mol HNO3 over 63.01 g HNO3 (the molar mass) and then multiply that by 1 g H2O over 0.001 L of H2O to get the...
Hello, I am wondering what should my Ho and Ha be in this case and what...
Hello, I am wondering what should my Ho and Ha be in this case and what should i do to carry out the test Test whether size is an effective predictor of house prices in the regression model. State your null and alternative hypotheses and report the test statistic, decision rule, and conclusion to the test. [2 marks]
I want to design a project for fun, since I am planning to take electromagnetics next...
I want to design a project for fun, since I am planning to take electromagnetics next semester. I need help with this design Design Construct and demonstrate An arc generator solely driven by electrostatics, magnetostatics, and/or electromagnetics Techniques using only household materials and a 9V battery.
I am wondering what the rule is for determining functional group positions for the most stable...
I am wondering what the rule is for determining functional group positions for the most stable chair and boat conformations of cyclohexanes; meaning basically is there a pattern as to whether the functional group will be axial or equatorial for the most stable conformation based on which C # it is attached to (i.e. C- 1, 2, 3, 4, 5, or 6)? What's the most stable for chair and boat of cis-1-bromo-4-methylcyclohexane as well as the trans-1-bromo-4-methylcyclohexane? (which group is...
Your project MUST do exactly what I am asking for. Read very carefully. I will take...
Your project MUST do exactly what I am asking for. Read very carefully. I will take point off. Show the output that I ask for in the text file and upload the file. When I run your project, if it does not match the given out put you get Zero. In addition, any two project that copies from each other get zero credit and report to the SMC disciplinary department. Advanced Java Programming Polymorphism, Class Design, Inheritance Assignment: You are...
I was wondering what should the controller do in the case of Oradell Electronics? Can I...
I was wondering what should the controller do in the case of Oradell Electronics? Can I have a solution ? thanks you!
I am planning to take Physics next semester. We already received our syllabus and I want...
I am planning to take Physics next semester. We already received our syllabus and I want to start on my project now. Design Construct, and demonstrate A copper penny can be levitated using any two or more of the following techniques in your design: electrostatics, magnetostatics, and electromagnetics. All components must be built out of household materials.
I am planning to take Physics next semester. We already received our syllabus and I want...
I am planning to take Physics next semester. We already received our syllabus and I want to start on my project now. Design Construct and demonstrate An arc generator solely driven by electrostatics, magnetostatics, and/or electromagnetics Techniques using only household materials and a 9V battery.
What do I do for this? I am confused in what to do. Choose a developmental...
What do I do for this? I am confused in what to do. Choose a developmental domain covered in Module 2 (motor, self-care, cognitive). Provide a rationale for why development in this area is important for overall child development. Provide three strategies you would recommend caregivers implement at home to advance their childrens' skills in the chosen developmental domain.I chose the Self-Care domain.
Step 1: What Do I Want to Be When I Grow Up? What do I want...
Step 1: What Do I Want to Be When I Grow Up? What do I want to be know for? If there was one thing I would like people to remember me for, what would that be? What should my epitaph say about me? When I retire, what I would like my most important accomplishment to be? Step 2: My Personal Mission Based on the results of the self-assessment about values and the answers to the preceding questions, write your...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT