Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions