[GAP Forum] NumbersString function fails

((1/f)) fadebox at gmail.com
Wed Sep 14 09:54:59 BST 2011


Hi, I'm a new user of GAP 4 on linux flavor BackTrack4.

According to the RSA section in the Number Theory chapter of Alex Hulpke's
2011 version
of the HowtoGap: *"The following functions can make it easier to use this
for encoding actual messages:*
*NumbersString(string ,modulus ) takes a string string and transcribes it
into a sequence of*
*numbers, none exceeding modulus , using the encoding A = 11, B = 12 etc.
(If a different encoding*
*is desired, it can be provided in an optional third argument as a string
with each letter in the*
*position of its number.)*
*
*
*    The corresponding reverse command StringNumbers(l ,modulus ) takes a
list of numbers l*
*and returns the string."*

The following GAP command is not working for me. For any predefined value of
m.

gap> message:=NumbersString("THE QUICK BROWN FOX JUMPED OVER THE LAZY
DOG",m);


Any help will be deeply appreciated.
regards,

Rohit Gupta
-- 

http://twitter.com/fadesingh*

*


More information about the Forum mailing list