Answered step by step
Verified Expert Solution
Question
1 Approved Answer
cs166teacher.cer: https://drive.google.com/open?id=1TUkSNiBX5JVULWhGzaRiFkM11RQgdiDb hw4.rsa: https://drive.google.com/open?id=1ttJIoZEBmvUFr1okyCXOqYDv4m2ESKea C. Obtain my certificate from Files ->Cs166teacher.cer. Using my public key, decrypt the file hw4.rsa and submit what was in that
cs166teacher.cer:
https://drive.google.com/open?id=1TUkSNiBX5JVULWhGzaRiFkM11RQgdiDb
hw4.rsa:
https://drive.google.com/open?id=1ttJIoZEBmvUFr1okyCXOqYDv4m2ESKea
C. Obtain my certificate from Files ->Cs166teacher.cer. Using my public key, decrypt the file "hw4.rsa" and submit what was in that file. Note: my encryption mode: "RSA/ECB/NoPadding". Note: the hw4.rsa has been Base64 encoded. First you need to Base64 decode it to get a byte array, Note:when you decrypt, you may see a lot of leading 0 in the output Please trim them out and submit only the text message. D. Generate your RSA key pair using keytool -genkey option. Export your public certificate using -exportcert option. You will need to lookup keytool documentation. Encrypt your name using your private key and encryption mode "RSA/ECB /NoPadding". Submit your certificate and the binary file containing encrypted version of your name. Example to generate a RSA key pair: keytool -genkey-alias cs166-keystore mystore.jks Example to export certificate: keytool -export -alias cs166-keystore mystore.jks -fileStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started