Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Public Key: -----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt1AFVpOiXwGfbqNrOaD4 5pCodARp7NMTy4v5eUiVMc+jeUaQQ8Nu8n7zhnlL6kZRvllsmLv8ylH2hqMnXdBh 4nlQ4OWpp1QYpr6yD/SgOfvAHPa/OGYxsIGGJyoB3CdR3QG3KhjG7BGjdkJeq1f2 SnipAP3PMIDS8t7BXIeXq5fMVvFrZseqd7sWlsDliwDMGlBsOI1U7aRMVrZCkb9Y jRu6DRkvcnLNFHy2Uqfm+kOn+WlUMHsCDachDvmtocU98ATVLsdrDMpjz56x0bz7 gd9n9K9oz5IOZz5lX+oRlZ7VIVCMwveX8XYMabj8EPKVEr5L7bRBngGiFu1CaVKM CwIDAQAB -----END PUBLIC KEY----- Message 1: Miss Scarlett did it in the Billiard room

image text in transcribed

Public Key:

-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt1AFVpOiXwGfbqNrOaD4 5pCodARp7NMTy4v5eUiVMc+jeUaQQ8Nu8n7zhnlL6kZRvllsmLv8ylH2hqMnXdBh 4nlQ4OWpp1QYpr6yD/SgOfvAHPa/OGYxsIGGJyoB3CdR3QG3KhjG7BGjdkJeq1f2 SnipAP3PMIDS8t7BXIeXq5fMVvFrZseqd7sWlsDliwDMGlBsOI1U7aRMVrZCkb9Y jRu6DRkvcnLNFHy2Uqfm+kOn+WlUMHsCDachDvmtocU98ATVLsdrDMpjz56x0bz7 gd9n9K9oz5IOZz5lX+oRlZ7VIVCMwveX8XYMabj8EPKVEr5L7bRBngGiFu1CaVKM CwIDAQAB -----END PUBLIC KEY----- 

Message 1:

Miss Scarlett did it in the Billiard room with the revolver. 

Message 2:

Professor Plum did it in the Dining room with the candlestick. 

Message 3:

Mrs. Peacock did it in the Conservatory with the lead pipe. 

Instructor's Private Key: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P4UBnskuarML/kMlgUCgYAPOVA/ImyguGacm85/2/Q4 LDPV2QnLiNAQKoO4TQT1XrwmOtJFtk9wlx9ox3cDcsLrAKmJ0M8QRa3k3T8H9iPh 7nfkjK++Dk8rCKKuatJSwPewx8Q4JC4hrYo4rl8COnczP3nGCXaVqt2mrAVH/fu5 oNBgkWH7QUb4R12okge/TQKBgBSTWfPTzyoAlxFbnZ7Cb8e4ROyGUDB4gXjk2eJ8 TEPuzCHgszWxtcJur5V4vgHKAXc7vqWB+r5AIq68ZZQl/1FamQd99+IMSodLS3YX cnIDYt+AKz211kta3Rc+9d0DZQG+nxDQ4ypEG5MFbv/gpSkGBVZQJGjqZpUtlHHU r459AoGBALKouDnIh44hIEbBuihIcloxBwnZe9kYp79e3hOnNu8q6YsK3qqQbJgp fO9Dnl3PK2C1LgL1xwPwKmMUZC85JdM8C7iKtBzX9R3ul22rn4rKT/pb6z+/Pml5 S2SSLTyvDg5gMypSSgHHkA3YbzH0Nt0C7BYHukVxP6GBAHEMTJAn -----END RSA PRIVATE KEY----- 

The Output from the image:

$ base64 msg.sha256.sig > msg.sha256.sig.base64 $ cat msg.sha256.sig.base64 WsIg91LtkSlUo1E95bHVn2WeZ6+WgwD0Vg6KxCzBnbIizkquT8enk3RUbbW7N4XTARdxknHitCN6 p6zk54isVe8mZk1jlJqHQqqlKiMge4O6VoIUc8iZ0Qw3CmferBj20SIyW3lCAmmn9+N1ER8QEiPF 4zUJVRpjqeP61UaD/8gPiEBPbTZoMGe34vzCajPO6b0F7C5H5AqO2YjdgPl1qp15lAd8JInVZ01E oCj/dltxsLM9PN9GbGixbRliugcyIIiwum1rLZd8e5MiqSfJ12AA/MCqqg64cE2gdu3Wt9SL1Dj9 lqsSkT/zqPZxhR6VUXf3GBA67rRofi+VhrQC8g== 
. Ensure that you have installed OpenSSL 2. The instructor has a new keypair. Here is the public key instructor-ublicapem Here are three messages with signatures (the result of signing the SHA-256 hash of the message): o message 1 (signature) o message 2 (signature) o message 3 (signature) (this is from Clue/Cluedo) Only one of the signatures has been made with the instructor's private key. Which message is it? Put your answer (as either "1", "2",or "3") in a file called answer2.txt in the labo3 directory, then add that file to your Git repository using the command git add anawer2.txt 3. By nefarious means you manage to find the instructor's private key instructor-private.pem. Use it to sign a new message (you should use a SHA-256 hash of the file contents as described in worksheet 2) The resulting signature contains non-printable characters. You can encode it using printable characters with the Base 64 encoding scheme (the same idea as ASCII armor and PEM encoding). For example, if your signature is in the file msg.sha256.sig, you could encode it and view the output with: $base64 msg.sha256.sig > msg.sha256.sig.base64 cat msg.sha256.sig.base64 Run git add msgsha256.sig.base64 to add the file to your Git repository . Ensure that you have installed OpenSSL 2. The instructor has a new keypair. Here is the public key instructor-ublicapem Here are three messages with signatures (the result of signing the SHA-256 hash of the message): o message 1 (signature) o message 2 (signature) o message 3 (signature) (this is from Clue/Cluedo) Only one of the signatures has been made with the instructor's private key. Which message is it? Put your answer (as either "1", "2",or "3") in a file called answer2.txt in the labo3 directory, then add that file to your Git repository using the command git add anawer2.txt 3. By nefarious means you manage to find the instructor's private key instructor-private.pem. Use it to sign a new message (you should use a SHA-256 hash of the file contents as described in worksheet 2) The resulting signature contains non-printable characters. You can encode it using printable characters with the Base 64 encoding scheme (the same idea as ASCII armor and PEM encoding). For example, if your signature is in the file msg.sha256.sig, you could encode it and view the output with: $base64 msg.sha256.sig > msg.sha256.sig.base64 cat msg.sha256.sig.base64 Run git add msgsha256.sig.base64 to add the file to your Git repository

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

ISBN: 0471781347, 978-0471781349

More Books

Students also viewed these Databases questions