Question
Python Notebook Encode your first name(Oliver) as a sequence of numbers between 0 and 31 represented as padded binary numbers (5 binary for each character,
Python Notebook
Encode your first name(Oliver) as a sequence of numbers between 0 and 31 represented as padded binary numbers (5 binary for each character, e.g: 7 00111). What is the decimal representation N of the full binary sequence? Pick a prime number p > N. Pick a secret number q < p. Calculate the inverse of q mod p, and the coded version of N, C(N) = qN mod p. Give C(N) to a friend together with the relevant information and explain to your friend how to recover your first name. Check that it actually works. Can you find built-in python functions that make your task easier?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started