We want a new tool to hide a message in the middle of a random string so our meddling younger sibblings cannot read them. In message_obfuscator.py, we need two functions finished: obfuscate(message, start=13, interval=4) deobfuscate(codded_message, start=13, interval=4) Bonus if you finish this and add user options to change the interval. Here is an example of creating a random string in Python3 ''.join(random.choices(string.ascii_uppercase + string.digits, k=N))   Here is the sample code:     // This function should take a message and interleave it with random letters starting at string index start def obfuscate(message, start=13, interval=4):   // your code goes here   return codded_message // This function should take the interleaved message, start, and interval, and return the decodded message def deobfuscate(codded_message, start=13, interval=4):   // your code goes here   return message if __name__ == __main__:   option = input("(D)ecode or (E)ncode? (E)")   if option == 'E' or option == '':     start = random.randint(20)     message = input("Type your message here")     print(obfuscate(message, start)     print("The start padding for this message is " + start)   elif option == 'D':     codded_message = input("paste your obfuscated message here")     start = input("What start padding should is included with this message?")     print(deobfuscate(codded_message, start)     This code is written in python

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

We want a new tool to hide a message in the middle of a random string so our meddling younger sibblings cannot read them.

In message_obfuscator.py, we need two functions finished:

obfuscate(message, start=13, interval=4) deobfuscate(codded_message, start=13, interval=4)

Bonus if you finish this and add user options to change the interval.

Here is an example of creating a random string in Python3 ''.join(random.choices(string.ascii_uppercase + string.digits, k=N))

 

Here is the sample code:

    // This function should take a message and interleave it with random letters starting at string index start
def obfuscate(message, start=13, interval=4):
  // your code goes here
  return codded_message

// This function should take the interleaved message, start, and interval, and return the decodded message
def deobfuscate(codded_message, start=13, interval=4):
  // your code goes here
  return message

if __name__ == __main__:

  option = input("(D)ecode or (E)ncode? (E)")
  if option == 'E' or option == '':
    start = random.randint(20)
    message = input("Type your message here")
    print(obfuscate(message, start)
    print("The start padding for this message is " + start)
  elif option == 'D':
    codded_message = input("paste your obfuscated message here")
    start = input("What start padding should is included with this message?")
    print(deobfuscate(codded_message, start)
 
 
This code is written in python
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY