Question: Problem 1 (40 pts) Encrypt the message SCSTATE using SDES (simplifiedDES) method with the key SC. Provide the ciphertext along with your code and screenshot
Problem 1 (40 pts) Encrypt the message "SCSTATE using SDES (simplifiedDES) method with the key "SC". Provide the ciphertext along with your code and screenshot of the output. You can use below gen_bitseq() to convert strings to binary or refer to ASCII table. def gen_bitseq(s: str) -> str: if not s.isascii(: raise ValueError(" Only ASCII allowed") return "".join(f"{ord(i):08b}" for i in s) Problem 1 (40 pts) Encrypt the message "SCSTATE using SDES (simplifiedDES) method with the key "SC". Provide the ciphertext along with your code and screenshot of the output. You can use below gen_bitseq() to convert strings to binary or refer to ASCII table. def gen_bitseq(s: str) -> str: if not s.isascii(: raise ValueError(" Only ASCII allowed") return "".join(f"{ord(i):08b}" for i in s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
