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.
Output feedback mode: Objective: Using Java language, implement Output feedback mode using DES encryption and decryption
-
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!