Open source toolkit providing general purpose cryptography


Purpose

The purpose is to master OpenSSL, an open source toolkit providing general purpose cryptography features. It aims at mastering the following issues:
1. Creating secret keys
2. Creating Private/Public keys
3. Encrypting using symmetric cryptography algorithms.
4. Encrypting using asymmetric cryptography algorithms.
5. Hashing content
6. Signing content

Introduction ( 4 points )
1. Create a Word document containing the following information:
a. Full name(Sahra Tamo), ID(13908) and class(C7) of each one of the group members
b. The sentence "The man who does not read books has no advantage over the man that can not read them."
c. Save the file and name it "DataFile.doc"
2. Choose a password from 8 to 12 letters that will be used by OpenSSL to create your secret keys for some of the following questions. Save this password in a file called "MySecretKey.txt". 

Secret Keys Cryptography ( 35 points )

3. Write a command line in a batch file called "Encrypt_DES.bat" to encrypt the fiel "DataFile.doc" created in paragraph 1 using DES Encryption algorithm and the key saved in "MySecretKey.txt". Run the command and save the encrypted file as "DataFile_DESEncrypted.enc".
4. Write a command line in a batch file called "Decrypt_DES.bat" to decrypt the content of the file "DataFile_DESEncrypted.enc" and generate an output file called "DataFile_DESDecrepted.doc". Run the batch file and compare "DataFile.doc" with "DataFile_DESDecrepted.doc".
5. Write a command line in a batch file called "Encrypt_DES3.bat" to encrypt the file "DataFile.doc" using DES3 encryption algorithm and the key in "MySecretKey.txt". Run the command and save the encrypted file as "DataFile_DES3Encrypted.enc".
6. Write a command line in a batch file called "Decrypt_DES3.bat" to decrypt the content of the file "DataFile_DES3Encrypted.enc" and generate an output file called "DataFile_DES3Decrepted.doc". Run the batch file and compare "DataFile.doc" with "Datafile_DES3Decrepted.doc".
7. Write a command line in a batch file called "Encrypt_AES.bat" to encrypt the file "DataFile.doc" using AES 256 bits encryption algorithm and the key in "MySecretKey.txt". Run the command and save the encrypted file as "DataFile_AESEncrypted.enc".
8. Write a command line in a batch file called "Decrypt_AES.bat" to decrypt the content of the file "DataFile_AESEncrypted.enc" and generate an output file called 'DataFile_AESDecrepted.doc". Run the batch file and compare "DataFile.doc" with "DataFile_AESDecrepted.doc".
9. Create a WORD document called "DES_DES3_AES_Comparison.doc". Write down in this document the comparison between the speeds of the three algorithms based on the command speed of OpenSSL.

Hash Functions ( 20 points )
.
10. Write a command line in a batch file called "Hash_SHA1.bat" to hash the file "DataFile.doc" using SHA1 algorithm. Run the command and save the generated hash string to a file called "DataFile_SHA1Hash.txt".
11. Write a command line in a batch file called "Hash_MD5.bat" to hash the file "DataFile.doc" using MD5 algorithm. Run the command and save the generated hash string to a file called "DataFile_MD5Hash.txt".
12. Write a command line in a batch file called "Hash_ RIPEMD160.bat" to hash the file "DataFile.doc" using RIPEMD160 algorithm. Run the command and save the generated hash string to a file called "DataFile_ RIPEMD160Hash.txt".
13. Create a WORD document called "SHA1_MD5_ RIPEMD160_Comparison.doc". Write down in the document the comparison between the hash string lengths of the three algorithms..

Public Key Cryptography ( 41 points )

14. Write a command line in a batch file called "Generate_RSAKeys.bat" to generate RSA private/public keys of 2048 bits length in an output file called "RSAKeys.pem". Run the command Generate_RSAKeys.bat".
15. Write a command line name "Extract_RSAPublic.bat" to extract the RSA public key to a file named "RSA_PublicKey..pem".

16. Write a command line in a batch file called "Sign_RSA.bat" to sign the file "DataFile.doc" using RSA algorithm. Run the command and save the signature to a file named "RSA_Signature.txt".
17. Write a command line in a batch file called "Check_Sign_RSA.bat" to verify the signature "RSA_Signature.txt" of the file "DataFile.doc" using RSA algorithm. 

18. You have to send the file "DataFile.doc" to your tutor by a method guaranteeing the confidentiality of your document and allowing your tutor to check its integrity and its origin ( to be sure that the document is sent by you and not by someone else). Create a word document named "SecuringDataFile.doc" in which you describe your method and steps to secure your "DataFile.doc" before sending to your tutor. Describe in the same document the steps that should be made by the tutor to get "DataFile.doc" and check its integrity and origin. Write a batch file named "SecuringDataFile.bat" in which you implement your securing method and you use DES3 for data encryption, MD5 for checking data integrity, RSA for electronic signature. If needed you can use tutor public key "Tutor_RSAPublicKey.pem" included in the assignment package 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Open source toolkit providing general purpose cryptography
Reference No:- TGS0118287

Expected delivery within 24 Hours