RSAeg(1) - RSA Encryption Scheme Example RSA MAPLE programs...

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

RSA Encryption Scheme Example 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. > 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 > RETURN(0,7);

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

View Full Document
> 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); >
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/04/2011 for the course MAS 4202 taught by Professor Boyland during the Spring '10 term at University of Florida.

Page1 / 6

RSAeg(1) - RSA Encryption Scheme Example RSA MAPLE programs...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online