Processing Math: Done
jsMath
Differences between revisions 2 and 3
Revision 2 as of 2019-07-16 21:25:23
Size: 586
Editor: amy
Comment:
Revision 3 as of 2019-08-07 18:25:56
Size: 1019
Editor: amy
Comment:
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:

== Shift Cipher ==
by Sarah Arpin, Alexis Newton

{{{#!sagecell
print "Put your message in quotes, and your desired shift: "
@interact
def shift_cipher(message = input_box(default="'secrets hi'", width = 50), shift=slider(0,25,1,3)):
    
    A = AlphabeticStrings()
    S = ShiftCryptosystem(A)
    message = S.encoding(message)
    C = S.enciphering(shift, message)
    print "Enciphered message:"
    print C
}}}

Under Construction

This page will be created/preened at a Sage Days that will take place August 7th - 10th.

If you have cryptography related interactions that you are interested in adding to this page, please do. You can also contact Amy Feaver at firstname.lastname@kingsu.ca (insert my name in 'firstname' and 'lastname') if you have interactions that you are interested in having us add to the page during Sage Days. We will consider them and add them in if we can!

Sage Interactions - Cryptography

goto interact main page

Shift Cipher

by Sarah Arpin, Alexis Newton

interact/cryptography (last edited 2019-11-14 19:53:51 by chapoton)