#6565: substitution cryptosystems: converting a key from alphabetic to numerical
values
-------------------------------------+-------------------------------------
       Reporter:  mvngu              |        Owner:  somebody
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-
      Component:  cryptography       |  duplicate/invalid/wontfix
       Keywords:  substitution       |   Resolution:
  cryptosystem                       |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by tscholl2):

 * status:  new => needs_review
 * milestone:  sage-6.4 => sage-duplicate/invalid/wontfix
 * upstream:   => N/A


Comment:

 I think it would be better to add some kind of conversion/coercion for
 string monoids instead of specifically for substitution cryptosystem
 strings. Also I don't believe there is an ASCII/byte value monoid. In
 either case, that would be a different ticket. If someone still wants that
 they should open a new ticket.

 This is also pretty easy to do by hand if someone wants to. For example,
 to take and element from an alphabetic monoid to a list of ascii values
 you can use this:
 {{{
     sage: A = AlphabeticStrings()
     sage: a = A.encoding("THISISATURTLE")
     sage: map(lambda x: ord(str(x)),a)
     [84, 72, 73, 83, 73, 83, 65, 84, 85, 82, 84, 76, 69]
 }}}

 I'm going to set this as won't fix and give it positive review.

--
Ticket URL: <http://trac.sagemath.org/ticket/6565#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to