Page 1 of 1

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

Posted: Mon May 02, 2022 12:36 pm
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 53 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.