Question

Write a message in a text file, encrypt it, and make a public or private key...

Write a message in a text file, encrypt it, and make a public or private key to be sent for someone.

Use GPG to encrypt a message in a text file. create a unique encryption key, and then use that key to encrypt your file.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

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

Add a comment
Know the answer?
Add Answer to:
Write a message in a text file, encrypt it, and make a public or private key...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. Create an RSA private key 2. Output the key in a text format so that it shows the following:     modulus     public e...

    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...

    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...

    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...

    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)

  • I encrypt a contract with my private key and send you the encrypted file. You successfully...

    I encrypt a contract with my private key and send you the encrypted file. You successfully decrypt it with my corresponding public key, which we assume is correct and publically available to all. Also assume that my private key is not known by anybody other than me. a. only you can read the contract b. you can be certain that the contract came from me c. the contract may have been modified by a bad-guy who modified the encrypted text...

  • In this lab, you will write a C program to encrypt a file. The program prompts...

    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...

    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

  • Bob is trying to send an encrypted message to Alice using the Asymmetric Key approach. Which...

    Bob is trying to send an encrypted message to Alice using the Asymmetric Key approach. Which key will Bob use to encrypt the message for Alice? Alice's Private Key Bob's Public Key Alice's Public Key Bob's Private Key Alice wants to digitally sign a message so that Bob can be assured that the message came from Alice and has not been changed in transit. Which key must Alice use to encrypt the message digest? Bob's Public Key Bob's Private Key...

  • In the use of asymmetric keys (use of private-public key pairs). If a service wants to...

    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?

  • Write a program to peform a database backup. Generate a public/private key pair (using GnuPG, or...

    Write a program to peform a database backup. Generate a public/private key pair (using GnuPG, or anything else). Your backup program/script must run daily, backup a table in a database into a .csv.gz file (comma delimited, gzip compressed [do not use database specific binary formats]). And encrypt the backup using your PUBLIC key. Note that you can use any language, database, utility, configuration, etc. (cron script or windows scheduler is ok). The key is that the backup is comma delimited...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT