(3) Using OpenSSL from the command line interface
a. Create a text file with some input and encrypt it using AES-128 CBC AES-256 CTR DES
b. Create a 2048 bit RSA public and private key
a. Create a text file with some input and encrypt it using AES-128 CBC AES-256 CTR DES
A text file is created with file name message.txt
The command syntax to encrypt file specifying the encryption algorithm is:
$ openssl <Encryption Algorithm> -e -in <InputFile> -out <OutPutFileName>
The command syntax to encrypt file specifying the encryption algorithm is:
$ openssl <Encryption Algorithm> -d -in <EncryptedFile> -out <OutPutFileName>
Encrypt the file using AES-128 CBC is
$ openssl aes-128-cbc -e -in message.txt -out message.txt.enc
Encrypt the file using AES-256 CTR is
$ openssl aes-256-ctr -e -in message.txt -out message.txt.enc
Encrypt the file using DES is
$ openssl des -e -in message.txt -out message.txt.enc
The output of the encrypted files are verified by decrypting the files.
Sample Output:

b. Create a 2048 bit RSA public and private key
Command to generate private key is:
$ openssl genrsa -out PrivateKey.key 2048
We have to extract the public key from the private key. The command is
$ openssl rsa -in PrivateKey.key -out PublicKey.key -pubout -outform PEM
-outform : output format to be spcified
Sample Output:

(3) Using OpenSSL from the command line interface a. Create a text file with some input...
Create a textfile called input.txt that contains the string “Hello World!” a. Using openssl, encrypt the input file using CBC, where the DES algorithm is used. Name the output file output.enc What is the command you used to perform the task above? b. Now decrypt the output.enc file and name the file decrypted.txt What is the command you used to perform this task? c. Use openssl to generate MD5 message digest of input.txt and decrypted.txt What is the command you...
1. Create an RSA private key 2. Output the key in a text format so that it shows the following: modulus public exponent (e) private exponent (d) the primes (p and q) Send me a file called key.txt with this information. 3. Using openssl's rsautl option encrypt this message to me: "NAME" using the public key that's embedded with the private key above. Attach a file named encrypted.txt that contains the encrypted message. Hint: Copy the text above and put...
The question asks you to assume that your input file is an English text that may contain any character that appears on keyboard of a computer. The task is to read each character from the input file and after encrypting it by adding an integer value n (0 < n < 128) to the character, to write the encrypted character to output file. We are supposed to use command line arguments and utilize argc, and argv parameters in main function...
6. Create a text file entitled "your last name" using the cat command, it must contain 2 complete sentences. 2. Execute a cat command to verify its contents. 3. Execute ls -l to see protection levels. 4. Modify your textfile’s protection so that the group domain^users has read/write capabilities in your file. 5. Execute ls -l to see new protection levels.
Objective: Use input/output files, strings, and command line arguments. Write a program that processes a text file by removing all blank lines (including lines that only contain white spaces), all spaces/tabs before the beginning of the line, and all spaces/tabs at the end of the line. The file must be saved under a different name with all the lines numbered and a single blank line added at the end of the file. For example, if the input file is given...
Create a C++ function that reads a line of text from a file (of any name), saves the line, and prints it out using cout. Use the string stream class <sstreams>
Modify the program so that it uses a loops repeatedly doing: • prompt for input (using line seqNum and the prompt phrase: "Enter a line") • reads the line of input • stores the line of input in the next position of an array of Line or an ArrayList of Line. Once the user enters STOP as input, the loop should terminate and another loop should print each line in reverse order. For example (the input you should type in...
Using the IST Linux system create the following Java command
line inheritance application Lab4. Create the following project
Java files: Point.java, Shape.java, Circle.java, Triangle.java,
Rectangle.java, and Lab4.java
Point.java will contain two coordinates x and y. This will be
reused to create point objects to draw all the shapes.
Shape.java will be the parent class and will contain a Point
type.
Circle.java, Triangle.java, Rectangle.java will all be children
of Shapes.java class
Each class (Circle, Triangle, Rectangle) will contain the
private class...
Write a program that reverses a text file by using a stack. The user interface must consist of 2 list boxes and 3 buttons. The 3 buttons are: Read - reads the text file into list box 1. Reverse - reverses the items in list box 1 by pushing them onto stack 1, then popping them from stack 1 (in the reverse order) and adding them to list box 2. Write - writes the contents of list box 2 to...
Write a program using python that reads from values from a text file and plots them using matplotlib. The input data for each graph is on three lines of the input textfile. The first line contains the x-coordiates of the points of the graph, and the second line contains the y-coordinates of the points of the graph that correspond, in the same order, to the x-coordinates on the first line. The third line in each group of three lines may...