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
Get step-by-step solutions from verified subject matter experts
