Write a complete Java Code
Working with FileInputStream, conversion, byte to int and int to byte: Encryption in mi ༢. 1. Read the name of textfile from console. 2. Open this text file for input using FileInputStream class. You should iterate until the file is found in your file system. (you may start coding using Happy scenario) 4. You read the file into an array of bytes which you wrap into String. This allows to read the whole file into a single string. 5. Use a character key=’z’ and the XOR bit operator^ to encrypt the array into a new array of encrypted bytes. 6. Decrypt the file using step 5. 7. Save the encrypted file in the file system using the FileWriter class or FileOutputStream class 8. Encrypt a picture a
Write a complete Java Code
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a complete Java Code
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!