Professional Documents
Culture Documents
128-Ecb, Etc. You Can Find The Meaning of The Command-Line Options and All The
128-Ecb, Etc. You Can Find The Meaning of The Command-Line Options and All The
_____________________________________________________
In this task, we will use various encryption algorithms and modes. You can use the
following openssl enc command to encrypt/decrypt a file. To see the manuals, you can
type man openssl and man enc.
Please replace the ciphertype with a specific cipher type, such as -aes-128-cbc, -aes-
128-ecb, etc. You can find the meaning of the command-line options and all the
supported cipher types by typing "man enc".
We include some common options for the openssl enc command in the following:
Using PSCP command : the PuTTY Secure Copy client, is a tool for transferring files
securely between computers using an SSH connection.(use this command from
windows)
Task 2: Signatures.
1. You have a test1.txt and test2.txt files with its signatures signatur1 and
signature2.
2. signatur1 and signature2 were signed using my private key using the
following command :
openssl rsautl -sign -in hash -inkey private-key -out signature
3. Upload all of them to your node using pscp.
4. determine which file was modified using the following commands
hash a file : openssl dgst -md5 -out hash file
verify a file : openssl rsautl -verify -in signature -pubin -inkey public-key
-out hash2
Note1: you should use my public key.
Note : you can use the command line tools provided by openssl to encrypt and decrypt
messages inside your script .