Skip to main content
Contents Index
Dark Mode Prev Up Next
\(\newcommand{\im}{{\mathrm{im}}}
\newcommand{\given}{{\, :\,}}
\newcommand{\hanoi}{\mathrm{hanoi}}
\newcommand{\lcm}{{\mathrm{lcm}}}
\newcommand{\ID}{{\mathrm{ID}}}
\newcommand{\chr}{{\mathtt{chr}}}
\newcommand{\ord}{{\mathtt{ord}}}
\newcommand{\set}[1]{\left\lbrace #1 \right\rbrace}
\newcommand{\seq}[2]{( #1 )_{#2}}
\newcommand{\gr}[1]{\left( #1 \right)}
\newcommand{\abs}[1]{\left| #1 \right|}
\newcommand{\size}[1]{\# #1}
\newcommand{\id}[1]{\mathrm{id}_{#1}}
\newcommand{\ip}[1]{\left\langle #1 \right\rangle}
\newcommand{\floor}[1]{\left\lfloor #1\right\rfloor}
\newcommand{\ceiling}[1]{\left\lceil #1\right\rceil}
\newcommand{\indemph}[1]{{\textbf{\emph{#1}}\index{#1}}}
\renewcommand{\implies}{\to}
\renewcommand{\iff}{\leftrightarrow}
\newcommand{\lxor}{\oplus}
\newcommand{\cP}{\wp}
\newcommand{\pset}{\cP}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\NN}{\mathbb{N}}
\newcommand{\CC}{\mathbb{C}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\barr}[1]{\overline{#1}}
\newcommand{\sage}{\textsc{Sage}}
\newcommand{\magma}{\textsc{Magma}}
\newcommand{\bob}{\text{Bob}}
\newcommand{\true}{\text{T}}
\newcommand{\false}{\text{F}}
\newcommand{\ahat}{\hat{a}}
\newcommand{\ah}{\ahat}
\newcommand{\bhat}{\hat{b}}
\newcommand{\abar}{\bar{a}}
\newcommand{\cA}{\mathcal{A}}
\newcommand{\cF}{\mathcal{F}}
\newcommand{\cW}{\mathcal{W}}
\newcommand{\todo}[1]{{\color{red} TODO: #1}}
\renewcommand{\div}{\operatorname{div}}
\newcommand{\gexp}[3]{#1^{#2 #3}}
\newcommand{\gexpp}[3]{\displaystyle\left(#1\right)^{#2 #3}}
\newcommand{\glog}[3]{\log_{#1}^{#3}#2}
\def\dbend{{!!!}}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Exercises 5.5.5 Exercises
1.
Give the definition for these terms. Be sure to set up any notation that is required
RSA public encryption key
2.
Encrypt the message UNCG SPARTANS by translating the letters into numbers, applying the given encryption function, then translating the numbers back into letters.
\(\displaystyle f(p) = p + 3 \bmod{26}\)
\(\displaystyle f(p) = p + 22 \bmod{26}\)
\(\displaystyle f(p) = -3p \bmod{26}\)
\(\displaystyle f(p) = 5p + 7 \bmod{26}\)
3.
Encrypt the message MIDNIGHT by translating the letters into numbers, applying the given encryption function, then translating the numbers back into letters.
\(\displaystyle f(p) = p + 17 \bmod{26}\)
\(\displaystyle f(p) = p - 4 \bmod{26}\)
\(\displaystyle f(p) = -7p \bmod{26}\)
\(\displaystyle f(p) = 3p + 12 \bmod{26}\)
4.
Decrypt these messages that were encrypted using the Caesar cipher.
5.
Decrypt these messages that were encrypted using the encryption function \(f(p) = 5p - 3 \bmod{26}\text{.}\)
6.
Decrypt these messages that were encrypted using the encryption function \(f(p) = p + 10 \bmod{26}\text{.}\)
7.
Suppose the cipher text HVS ZONM RCU XIADG CJSF HVS EIWQY PFCKB TCL was produced by encrypting a plain text message using a shift cipher. What is the original plain text message?
8.
My RSA public key is
\((N,e) = (85,3)\text{.}\) Encrypt the number
\(M = 23\text{.}\)
9.
Encrypt the message
\(M = 253\) using the RSA encryption scheme with public key
\((N,e) = (391,17)\text{.}\)
10.
Encrypt the current year using the RSA encryption scheme with public key
\((N,e) = (343751,23)\text{.}\)
11.
Show that the RSA public key
\((N,e) = (527,13)\) is too small by computing the decryption exponent.
12.
Alice encodes her birthday as an \(8\) -digit number yyyymmdd. Suppose she encrypts it using the RSA encryption scheme with public key
\begin{equation*}
(N,e) = (25736197, 29),
\end{equation*}
resulting in the cipher text \(C = 8141408\text{.}\) What is her birthday?