The non-programming problems you may turn in to the drop boxes or on paper.
Drop box submissions are due at midnight on the due date. Paper submissions are due in class or in the box outside my office by 5:00 p.m.
This problem is VERY easy in Maple because:
x &^ (-1) mod y
For the next two problems, you need to send ASCII messages using RSA. To send an ASCII message using RSA we first need to translate the message into a number; e.g. "HI"=104105. In Maple, this may be done by
mess:= convert( "hi", bytes); len:=nops(mess); numbr:= sum( mess[k]*1000^(len-k) , k=1..len);This may be reconverted back to characters in Maple by using the commands
rongway:=convert( numbr, base,1000); len:=nops(rongway); thisisit:= [seq( rongway[len-k], k=0..(len-1))]; convert(thisisit,bytes);
You know that n's prime factors are 1070+1603 and
1080+1327.
You receive the following encrypted message:
223897127930723938249906123728900845551197361369896121141599622622367463987177076976678763976252906951878641368964747814858009593601674182847816720986
Decrypt the (ASCII) message.