Problem 1. Write two computer programs to simulate a Unicode stream cipher that consists of both encryption and...

90.2K

Verified Solution

Question

Programming

Problem

1. Write two computer programs to simulate a Unicode streamcipher that consists of both
encryption and decryption algorithms. The encryption programaccepts inputs from an
existing text file, called “letter.txt.” The encryption programproduces an output ciphertext
file, called “secret” The decryption program takes “secret” asinput and decrypts it into a
plaintext, called “message.txt.”


- The random “seed” must be known, but be kept secure, by thepseudorandom number
generators in both encryption and decryption programs.

Note from me: Use Java.

Answer & Explanation Solved by verified expert
4.3 Ratings (762 Votes)
PROGRAM EncryptDecryptjava import javaxcryptoCipher import javaxcryptoSecretKey import javaxcryptoKeyGenerator import javaioFile import javaioFileNotFoundException import javautilScanner import javaioFileWriter import javaioIOException public class EncryptDecrypt public static void mainString args try Generate private key    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students