#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:                |  
--------------------------+-------------------------------------------------
Description changed by mvngu:

Old description:

> 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
> }}}

New description:

 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
 }}}
 Generalizing from this, we can also have methods to do the following
 conversions:

  * from alphabetic characters to binary values and vice versa

  * from alphabetic characters to hexadecimal values and vice versa

  * from alphabetic characters to mod 26 values and vice versa

  * from alphabetic characters to ASCII values and vice versa

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6565#comment:1>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to