Answered accordingly. Please comment for further help. Please uprate
1)
gpg --full-generate-key
Select algorithm, give name and email id
gpg --output ~/YOURNAME.key --armor --export YOUREMAILID
you will find public key in your folder
Encrypt file using :
gpg --sign myfile.ext
Write a message in a text file, encrypt it, and make a public or private key...
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...
Write a short Java program that uses private key (symmetric) encryption method to encrypt a short string. Approximate algorithm: Enter a text string Use Java to generate a key and encrypt the string Use Java (and the key) to decrypt the string Compare original and decrypted string to make sure it is the same Note: Please make it as simple as possible
Using RSA cipher, public key e=3, private key d=7 Encrypt the following message “Hello there” Decrypt the previous message
4. Suppose you wish to encrypt the message, M 42 using RSA encryption. Given a public key where p- 23 and q-11 and the relative prime e- 7. Find n, and show all necessary steps to encrypt your message (42). (Hint: check p.411 of the text for information on public key RSA) (5 points)
In this lab, you will write a C program to encrypt a file. The program prompts the user to enter a key (maximum of 5 bytes), then the program uses the key to encrypt the file. Note that the user might enter more than 5 characters, but only the first 5 are used. If a new line before the five characters, the key is padded with 'a'; Note that the new line is not a part of the key, but...
How to encrypt a string in C. I am using RSA encryption. I have a public and private key already. Public Key is (3,319) and private is (187,319) I have a string that says "I want to buy a gift". The person im sending this message to already has my public key. In C, how do encrpyt the string with my private key before I send it
In the use of asymmetric keys (use of private-public key pairs). If a service wants to ensure it is no longer their concern (after encryption) that a message would be intercepted what key would they use?
(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
5. Alice wishes to send the message m4 to Bob using RSA encryption. She looks up Bob's public key and finds that it is (n-55. c= 3 (a) Specify exactly what information Alice sends to Bob (b) What is Bob's private key? Show how he would use it to recover Alice's message (c) Explain why Bob should never use this choice of public key in real life. 5. Alice wishes to send the message m4 to Bob using RSA encryption....
(10 points). What is the ciphertext that is produced when RSA encryption with key (n , k ) = ( 2669 , 3 ) is used to encrypt the message BEST WISHES? (10 points). What is the ciphertext that is produced when RSA encryption with key (n , k ) = ( 2669 , 3 ) is used to encrypt the message BEST WISHES?