Size: 1019
Comment:
|
Size: 1020
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Under Construction = | = Sage Interactions - Cryptography - Under Construction = |
Line 7: | Line 9: |
= Sage Interactions - Cryptography = |
|
Line 13: | Line 12: |
Sage Interactions - Cryptography - 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!
goto interact main page
Shift Cipher
by Sarah Arpin, Alexis Newton
xxxxxxxxxx
print "Put your message in quotes, and your desired shift: "
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