For Week 11 Tutorial on DSA
Math 202 Cryptography
November 2-4, 2020

T. Ratliff, Wheaton College
ratliff_thomas@wheatoncollege.edu

SHA3-256 in Mathematica

The command Hash[ x, “SHA3-256”] will apply the SHA3-256 hash function to the message x. 
If x is a string, then Mathematica will covert each letter to its UTF-8 representation. 

For example,

Hash["Sleep is a curse. . .and yet a curse I need to live","SHA3-256"]

Hash["https://www.youtube.com/watch?v=oHg5SJYRHA0", "SHA3-256"]

Alice’s values for Tutorial Problem #1

Note that you can enter α quickly by ESC-a-ESC, and β by ESC-a-ESC

p1 =241553623
q1 =13033
α1 = 52824
β1 = 238101207

xi = "Argybargy"
xii = "Pleased to Meet Me"

Your values for Tutorial Problem #2

p2 =2738078869
q2 =65323
α2 =11208
d2 =17132

x2 = "Clam chowder is just hot ocean milk with dead animal croutons"