{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# RSAEX - RSA Encryption Scheme Exercise RSA MAPLE programs...

This preview shows pages 1–3. Sign up to view the full content.

RSA Encryption Scheme Exercise RSA MAPLE programs The following MAPLE functions have been entered into this worksheet: (1) alpha2num (2) string2list (3) numlist2numstring (4) list2dec (5) numstring2num (6) POWERMOD The only functions that you will really use are string2list , list2dec , and POWERMOD . string2list - converts a list of letters into a list of digits (via A=0,1; B=0,2, ... etc) list2dec - converts a list of digits into its decimal equivalent POWERMOD - a MAPLE implementaion of the POWER ALGORITHM modulo m. SYNTAX: POWERMOD(a,N,M) This computes a N (mod M). NOTE: Click on the line below and keep pressing ENTER until you get to the Exercise. > restart: > alpha2num:=proc(x) > if x=`A` then > RETURN(0,1); > fi: > if x=`B` then > RETURN(0,2); > fi: > if x=`C` then > RETURN(0,3); > fi: > if x=`D` then > RETURN(0,4); > fi: > if x=`E` then > RETURN(0,5); > fi: > if x=`F` then > RETURN(0,6); > fi: > if x=`G` then

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
> RETURN(0,7); > fi: > if x=`H` then > RETURN(0,8); > fi: > if x=`I` then > RETURN(0,9); > fi: > if x=`J` then > RETURN(1,0); > fi: > if x=`K` then > RETURN(1,1); > fi: > if x=`L` then > RETURN(1,2); > fi: > if x=`M` then > RETURN(1,3); > fi: > if x=`N` then > RETURN(1,4); > fi: > if x=`O` then > RETURN(1,5); >
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern