generated from mwc/lab_encryption
48 lines
2.7 KiB
Markdown
48 lines
2.7 KiB
Markdown
# Encryption lab answers
|
|
|
|
## Checkpoint 1
|
|
|
|
0. `secrets/secret0.txt` is encrypted using a Caesar Cipher. What is
|
|
its secret number? 78
|
|
'Tyger Tyger, burning bright, In the forests of the night; What imortal hand or eye, Could frame thy fearful symetry?'
|
|
# 4-9-2026
|
|
# I got some "escape sequence" warnings, plus, eventually I got a runtime error. However, I
|
|
# was able to decode by using the interactive "python" command line and typed in several lines of
|
|
# code at the >>> prompt. Once I get some feedback I'll decode more secret texts. Thank you, Stacy.
|
|
#
|
|
# 4-10-2026 - I got caesar_cracker.py running more smoothly.
|
|
'Tyger Tyger, burning bright, In the forests of the night; What imortal hand or eye, Could frame thy fearful symetry?'
|
|
In what distant deeps or skies. Burnt the fire of thine eyes?On what wings dare he aspire?What the hand, dare seize the fire?
|
|
And what shoulder, & what art,Could twist the sinews of thy heart?And when thy heart began to beat.What dread hand? & what dread feet?
|
|
What the hamer? what the chain,In what furnace was thy brain?What the anvil? what dread grasp.Dare its deadly terrors clasp?
|
|
When the stars threw down their spears And water'd heaven with their tears:Did he smile his work to see?Did he who made the Lamb make thee?
|
|
Tyger Tyger burning bright,In the forests of the night:What imortal hand or eye,Dare frame thy fearful symetry?
|
|
|
|
1. `secrets/secret1.txt` is encrypted using a Caesar Cipher. What is
|
|
its secret number? 1
|
|
One must have a mind of winterTo regard the frost and the boughsOf the pine-trees crusted with snow;
|
|
And have been cold a long timeTo behold the junipers shagged with ice,The spruces rough in the distant glitter
|
|
Of the January sun; and not to thinkOf any misery in the sound of the wind,In the sound of a few leaves,
|
|
Which is the sound of the landFull of the same windThat is blowing in the same bare place
|
|
For the listener, who listens in the snow,And, nothing himself, beholdsNothing that is not there and the nothing that is.
|
|
|
|
2. `secrets/secret2.txt` is encrypted using a Caesar Cipher. What is
|
|
its secret number? 44
|
|
|
|
3. `secrets/secret3.txt` is encrypted using a Caesar Cipher. What is
|
|
its secret number? 59
|
|
|
|
4. `secrets/secret4.txt` is encrypted using a Caesar Cipher. What is
|
|
its secret number? 32
|
|
|
|
## Checkpoint 2
|
|
# 4-11-2026
|
|
5. What is the polyalphabetic secret word? PYTHON
|
|
|
|
6. Decrypt this message, which was encrypted using the same secret word:
|
|
"EbZhdaV[h^bTpchhQnhig]X[VmhhRP]ftXVnRfjVY]fgtO_X]("
|
|
>>> from ciphers.poly import PolyCipher
|
|
>>> cipher = PolyCipher('PYTHON')
|
|
>>> cipher.decrypt('EbZhdaV[h^bTpchhQnhig]X[VmhhRP]ftXVnRfjVY]fgtO_X](')
|
|
'The treasure is a worthless ball of aluminum foil.'
|