Part 1: Key Generation Objective: Create a secure method to generate a 128-bit key with true randomness and uniform distribution. Details: • The key generation program should work from the command line and accept one parameter: the name of the resulting key file. • This program could be a C, C++, Python or shell script (your choice). • Use a secure method to generate 128 truly random and uniformly distributed bits. • It is permissible to use OpenSSL from a shell script for key generation. • The key file should be in binary format and contain exactly 16 bytes (128 bits).

icon
Related questions
Question
9:05
Part 2: Encryption
Details:
description
Objective:
Develop a program that encrypts a plaintext file by
XORing 128-bit blocks of the file with a key repeatedly
until the entire file is encrypted.
• The plaintext file will be a book from Project
Gutenberg.
Note:
Done
• The encryption method should use the XOR
operation on the file, 128 bits at a time, with the key.
• Each 128-bit block is XORed with the same key.
• The program should work from the command line
and accept three parameters:
o The name of the key file
Usage:
o The name of the plaintext file
o The desired name of the resulting ciphertext file
This encryption method is not supposed to be secure.
(
$ ./bad_streamcipher_enc kf pt ct
Transcribed Image Text:9:05 Part 2: Encryption Details: description Objective: Develop a program that encrypts a plaintext file by XORing 128-bit blocks of the file with a key repeatedly until the entire file is encrypted. • The plaintext file will be a book from Project Gutenberg. Note: Done • The encryption method should use the XOR operation on the file, 128 bits at a time, with the key. • Each 128-bit block is XORed with the same key. • The program should work from the command line and accept three parameters: o The name of the key file Usage: o The name of the plaintext file o The desired name of the resulting ciphertext file This encryption method is not supposed to be secure. ( $ ./bad_streamcipher_enc kf pt ct
9:05
description
In this assignment, you will be implementing a simple
encryption and decryption system using basic
cryptographic concepts we have discussed in class. You
will use classic and stream ciphers concepts to build this
system. Please follow the guidelines below for each part
of the assignment.
Part 1: Key Generation
Objective:
Create a secure method to generate a 128-bit key with
true randomness and uniform distribution.
Done
Details:
• The key generation program should work from the
command line and accept one parameter: the name
of the resulting key file.
• This program could be a C, C++, Python or shell
script (your choice).
• Use a secure method to generate 128 truly random
and uniformly distributed bits.
• It is permissible to use OpenSSL from a shell script
for key generation.
• The key file should be in binary format and contain
exactly 16 bytes (128 bits).
Usage:
$ ./keygen kf
(
Transcribed Image Text:9:05 description In this assignment, you will be implementing a simple encryption and decryption system using basic cryptographic concepts we have discussed in class. You will use classic and stream ciphers concepts to build this system. Please follow the guidelines below for each part of the assignment. Part 1: Key Generation Objective: Create a secure method to generate a 128-bit key with true randomness and uniform distribution. Done Details: • The key generation program should work from the command line and accept one parameter: the name of the resulting key file. • This program could be a C, C++, Python or shell script (your choice). • Use a secure method to generate 128 truly random and uniformly distributed bits. • It is permissible to use OpenSSL from a shell script for key generation. • The key file should be in binary format and contain exactly 16 bytes (128 bits). Usage: $ ./keygen kf (
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer