Output feedback mode: Objective: Using Java language, implement Output feedback mode using DES encryption and decryption

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Output feedback mode: Objective: Using Java language, implement Output feedback mode using DES encryption and decryption

Post by answerhappygod »

Output Feedback Mode Objective Using Java Language Implement Output Feedback Mode Using Des Encryption And Decryption 1
Output Feedback Mode Objective Using Java Language Implement Output Feedback Mode Using Des Encryption And Decryption 1 (17.6 KiB) Viewed 52 times
Note:
• You can use the function nextByte from SecureRandom to generate a random number in bytes.
• Make sure to fragment your data in 8 bytes blocks, where each 8 byte will be en/de-crypted together .
• When setting the DES cipher you are only allowed to use it in ECB mode, with padding. DO NOT use it in OFB mode .
• You can use the operator (^) on two values to find the bitwise xor .
Output feedback mode: Objective: Using Java language, implement Output feedback mode using DES encryption and decryption algorithm. • Procedure: 1. Read from the user the plain text. 2. Convert and print the plain text in byte 3. Set the DES "Cipher" in encryption mode 4. Perform the OFB encryption operation 5. Print the ciphertext in string and bytes. 6. Perform the OFB decryption operation. 7. Display the resulting plaintext in byte and string.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply