#6565: substitution cryptosystems: converting a key from alphabetic to numerical
values
--------------------------+-------------------------------------------------
Reporter: mvngu | Owner: somebody
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.1.1
Component: cryptography | Keywords: substitution cryptosystem
Reviewer: | Author:
Merged: |
--------------------------+-------------------------------------------------
The class {{{SubstitutionCryptosystem}}} accepts keys whose values are
alphabetic characters. We should implement a method to allow a key
to be converted between alphabetic characters and numerical values. For
example, here is what I have in mind:
{{{
sage: A = AlphabeticStrings()
sage: S = SubstitutionCryptosystem(A)
sage: key = S.random_key()
ABC
sage: S.alphabet_to_numbers(key)
012
sage: S.numbers_to_alphabet([0, 1, 2])
ABC
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6565>
Sage <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---