From 37ec9909d9423f603965809c145e3629a96c8cc8 Mon Sep 17 00:00:00 2001 From: spirkelmann Date: Tue, 28 Jan 2020 18:39:10 +0100 Subject: [PATCH] solutions for vigenere --- vigenere/1-de-key.txt | 1 + vigenere/1-de-plain.txt | 110 ++++++++++++++++++++++++++++++++ vigenere/1-en-key.txt | 1 + vigenere/1-en-plain.txt | 125 +++++++++++++++++++++++++++++++++++++ vigenere/2-de-key.txt | 1 + vigenere/2-de-plain.txt | 48 ++++++++++++++ vigenere/2-en-plain.txt | 23 +++++++ vigenere/2-key.txt | 1 + vigenere/2-plain.txt | 1 + vigenere/3-de-key.txt | 1 + vigenere/3-de-plain.txt | 19 ++++++ vigenere/frost.txt | 20 ++++++ vigenere/frost_cipher.txt | 19 ++++++ vigenere/voucher-key.txt | 1 + vigenere/voucher-plain.txt | 28 +++++++++ 15 files changed, 399 insertions(+) create mode 100644 vigenere/1-de-key.txt create mode 100644 vigenere/1-de-plain.txt create mode 100644 vigenere/1-en-key.txt create mode 100644 vigenere/1-en-plain.txt create mode 100644 vigenere/2-de-key.txt create mode 100644 vigenere/2-de-plain.txt create mode 100644 vigenere/2-en-plain.txt create mode 100644 vigenere/2-key.txt create mode 100644 vigenere/2-plain.txt create mode 100644 vigenere/3-de-key.txt create mode 100644 vigenere/3-de-plain.txt create mode 100644 vigenere/frost.txt create mode 100644 vigenere/frost_cipher.txt create mode 100644 vigenere/voucher-key.txt create mode 100644 vigenere/voucher-plain.txt diff --git a/vigenere/1-de-key.txt b/vigenere/1-de-key.txt new file mode 100644 index 0000000..a58b62a --- /dev/null +++ b/vigenere/1-de-key.txt @@ -0,0 +1 @@ +goethe diff --git a/vigenere/1-de-plain.txt b/vigenere/1-de-plain.txt new file mode 100644 index 0000000..1c3553d --- /dev/null +++ b/vigenere/1-de-plain.txt @@ -0,0 +1,110 @@ +Hat der alte Hexenmeister +Sich doch einmal wegbegeben! +Und nun sollen seine Geister +Auch nach meinem Willen leben. +Seine Wort' und Werke +Merkt ich und den Brauch, +Und mit Geistesstärke +Tu' ich Wunder auch. + +Walle! walle +Manche Strecke, +Dass, zum Zwecke, +Wasser fliesse, +Und mit reichem, vollem Schwalle +Zu dem Bade sich ergiesse. + +Und nun komm, du alter Besen! +Nimm die schlechten Lumpenhuellen! +Bist schon lange Knecht gewesen; +Nun erfuelle meinen Willen! +Auf zwei Beinen stehe, +Oben sei ein Kopf! +Eile nun und gehe +Mit dem Wassertopf! + +Walle! walle +Manche Strecke, +Dass, zum Zwecke, +Wasser fliesse +Und mit reichem, vollem Schwalle +Zu dem Bade sich ergiesse. + +Seht, er laeuft zum Ufer nieder; +Wahrlich! ist schon an dem Flusse, +Und mit Blitzesschnelle wieder +Ist er hier mit raschem Gusse. +Schon zum zweiten Male! +Wie das Becken schwillt! +Wie sich jede Schale +Voll mit Wasser fuellt! + +Stehe! stehe! +Denn wir haben +Deiner Gaben +Vollgemessen! - +Ach, ich merk es! Wehe! wehe! +Hab ich doch das Wort vergessen! + +Ach, das Wort, worauf am Ende +Er das wird, was er gewesen. +Ach, er läuft und bringt behende! +Waerst du doch der alte Besen! +Immer neue Guesse +Bringt er schnell herein, +Ach! und hundert Fluesse +Stuerzen auf mich ein. + +Nein, nicht laenger +Kann ich's lassen; +Will ihn fassen. +Das ist Tuecke! +Ach! nun wird mir immer baenger! +Welche Miene! welche Blicke! + +O du Ausgeburt der Hoelle! +Soll das ganze Haus ersaufen? +Seh ich ueber jede Schwelle +Doch schon Wasserstroeme laufen. +Ein verruchter Besen, +Der nicht hoeren will! +Stock, der du gewesen, +Steh doch wieder still! + +Willst's am Ende +Gar nicht lassen? +Will dich fassen, +Will dich halten +Und das alte Holz behende +Mit dem scharfen Beile spalten. + +Seht, da kommt er schleppend wieder! +Wie ich mich nur auf dich werfe, +Gleich, o Kobold, liegst du nieder; +Krachend trifft die glatte Schaerfe. +Wahrlich! brav getroffen! +Seht, er ist entzwei! +Und nun kann ich hoffen, +Und ich atme frei! + +Wehe! wehe! +Beide Teile +Stehn in Eile +Schon als Knechte +Voellig fertig in die Hoehe! + +nd sie laufen! Nass und naesser +ird's im Saal und auf den Stufen. +elch entsetzliches Gewaesser! +Herr und Meister! hoer mich rufen! - +Ach, da kommt der Meister! +Herr, die Not ist gross! +Die ich rief, die Geister, +Werd ich nun nicht los. + +"In die Ecke, +Besen! Besen! +Seid's gewesen. +Denn als Geister +Ruft euch nur, zu seinem Zwecke +Erst hervor der alte Meister." diff --git a/vigenere/1-en-key.txt b/vigenere/1-en-key.txt new file mode 100644 index 0000000..0a75078 --- /dev/null +++ b/vigenere/1-en-key.txt @@ -0,0 +1 @@ +imaginaerraum diff --git a/vigenere/1-en-plain.txt b/vigenere/1-en-plain.txt new file mode 100644 index 0000000..5911f40 --- /dev/null +++ b/vigenere/1-en-plain.txt @@ -0,0 +1,125 @@ +Once upon a midnight dreary, while I pondered, weak and weary, +Over many a quaint and curious volume of forgotten lore— + While I nodded, nearly napping, suddenly there came a tapping, +As of some one gently rapping, rapping at my chamber door. +“’Tis some visitor,” I muttered, “tapping at my chamber door— + Only this and nothing more.” + + Ah, distinctly I remember it was in the bleak December; +And each separate dying ember wrought its ghost upon the floor. + Eagerly I wished the morrow;—vainly I had sought to borrow + From my books surcease of sorrow—sorrow for the lost Lenore— +For the rare and radiant maiden whom the angels name Lenore— + Nameless here for evermore. + + And the silken, sad, uncertain rustling of each purple curtain +Thrilled me—filled me with fantastic terrors never felt before; + So that now, to still the beating of my heart, I stood repeating + “’Tis some visitor entreating entrance at my chamber door— +Some late visitor entreating entrance at my chamber door;— + This it is and nothing more.” + + Presently my soul grew stronger; hesitating then no longer, +“Sir,” said I, “or Madam, truly your forgiveness I implore; + But the fact is I was napping, and so gently you came rapping, + And so faintly you came tapping, tapping at my chamber door, +That I scarce was sure I heard you”—here I opened wide the door;— + Darkness there and nothing more. + + Deep into that darkness peering, long I stood there wondering, fearing, +Doubting, dreaming dreams no mortal ever dared to dream before; + But the silence was unbroken, and the stillness gave no token, + And the only word there spoken was the whispered word, “Lenore?” +This I whispered, and an echo murmured back the word, “Lenore!”— + Merely this and nothing more. + + Back into the chamber turning, all my soul within me burning, +Soon again I heard a tapping somewhat louder than before. + “Surely,” said I, “surely that is something at my window lattice; + Let me see, then, what thereat is, and this mystery explore— +Let my heart be still a moment and this mystery explore;— + ’Tis the wind and nothing more!” + + Open here I flung the shutter, when, with many a flirt and flutter, +In there stepped a stately Raven of the saintly days of yore; + Not the least obeisance made he; not a minute stopped or stayed he; + But, with mien of lord or lady, perched above my chamber door— +Perched upon a bust of Pallas just above my chamber door— + Perched, and sat, and nothing more. + +Then this ebony bird beguiling my sad fancy into smiling, +By the grave and stern decorum of the countenance it wore, +“Though thy crest be shorn and shaven, thou,” I said, “art sure no craven, +Ghastly grim and ancient Raven wandering from the Nightly shore— +Tell me what thy lordly name is on the Night’s Plutonian shore!” + Quoth the Raven “Nevermore.” + + Much I marvelled this ungainly fowl to hear discourse so plainly, +Though its answer little meaning—little relevancy bore; + For we cannot help agreeing that no living human being + Ever yet was blessed with seeing bird above his chamber door— +Bird or beast upon the sculptured bust above his chamber door, + With such name as “Nevermore.” + + But the Raven, sitting lonely on the placid bust, spoke only +That one word, as if his soul in that one word he did outpour. + Nothing farther then he uttered—not a feather then he fluttered— + Till I scarcely more than muttered “Other friends have flown before— +On the morrow he will leave me, as my Hopes have flown before.” + Then the bird said “Nevermore.” + + Startled at the stillness broken by reply so aptly spoken, +“Doubtless,” said I, “what it utters is its only stock and store + Caught from some unhappy master whom unmerciful Disaster + Followed fast and followed faster till his songs one burden bore— +Till the dirges of his Hope that melancholy burden bore + Of ‘Never—nevermore’.” + + But the Raven still beguiling all my fancy into smiling, +Straight I wheeled a cushioned seat in front of bird, and bust and door; + Then, upon the velvet sinking, I betook myself to linking + Fancy unto fancy, thinking what this ominous bird of yore— +What this grim, ungainly, ghastly, gaunt, and ominous bird of yore + Meant in croaking “Nevermore.” + + This I sat engaged in guessing, but no syllable expressing +To the fowl whose fiery eyes now burned into my bosom’s core; + This and more I sat divining, with my head at ease reclining + On the cushion’s velvet lining that the lamp-light gloated o’er, +But whose velvet-violet lining with the lamp-light gloating o’er, + She shall press, ah, nevermore! + + Then, methought, the air grew denser, perfumed from an unseen censer +Swung by Seraphim whose foot-falls tinkled on the tufted floor. + “Wretch,” I cried, “thy God hath lent thee—by these angels he hath sent thee + Respite—respite and nepenthe from thy memories of Lenore; +Quaff, oh quaff this kind nepenthe and forget this lost Lenore!” + Quoth the Raven “Nevermore.” + + “Prophet!” said I, “thing of evil!—prophet still, if bird or devil!— +Whether Tempter sent, or whether tempest tossed thee here ashore, + Desolate yet all undaunted, on this desert land enchanted— + On this home by Horror haunted—tell me truly, I implore— +Is there—is there balm in Gilead?—tell me—tell me, I implore!” + Quoth the Raven “Nevermore.” + + “Prophet!” said I, “thing of evil!—prophet still, if bird or devil! +By that Heaven that bends above us—by that God we both adore— + Tell this soul with sorrow laden if, within the distant Aidenn, + It shall clasp a sainted maiden whom the angels name Lenore— +Clasp a rare and radiant maiden whom the angels name Lenore.” + Quoth the Raven “Nevermore.” + + “Be that word our sign of parting, bird or fiend!” I shrieked, upstarting— +“Get thee back into the tempest and the Night’s Plutonian shore! + Leave no black plume as a token of that lie thy soul hath spoken! + Leave my loneliness unbroken!—quit the bust above my door! +Take thy beak from out my heart, and take thy form from off my door!” + Quoth the Raven “Nevermore.” + + And the Raven, never flitting, still is sitting, still is sitting +On the pallid bust of Pallas just above my chamber door; + And his eyes have all the seeming of a demon’s that is dreaming, + And the lamp-light o’er him streaming throws his shadow on the floor; +And my soul from out that shadow that lies floating on the floor + Shall be lifted—nevermore! diff --git a/vigenere/2-de-key.txt b/vigenere/2-de-key.txt new file mode 100644 index 0000000..c5f83f6 --- /dev/null +++ b/vigenere/2-de-key.txt @@ -0,0 +1 @@ +theodorfontane diff --git a/vigenere/2-de-plain.txt b/vigenere/2-de-plain.txt new file mode 100644 index 0000000..09d3bc0 --- /dev/null +++ b/vigenere/2-de-plain.txt @@ -0,0 +1,48 @@ +Herr von Ribbeck auf Ribbeck im Havelland, +Ein Birnbaum in seinem Garten stand, +Und kam die goldene Herbsteszeit + +Und die Birnen leuchteten weit und breit, +Da stopfte, wenn's Mittag vom Turme scholl, +Der von Ribbeck sich beide Taschen voll, +Und kam in Pantinen ein Junge daher, +So rief er: "Junge, wiste 'ne Beer?" +Und kam ein Maedel, so rief er: "Luett Dirn, +Kumm man roewer, ick hebb 'ne Birn." + +So ging es viel Jahre, bis lobesam +Der von Ribbeck auf Ribbeck zu sterben kam. + +Er fuehlte sein Ende. 's war Herbsteszeit, +Wieder lachten die Birnen weit und breit; +Da sagte von Ribbeck: "Ich scheide nun ab. +Legt mir eine Birne mit ins Grab." +Und drei Tage drauf, aus dem Doppeldachhaus, +Trugen von Ribbeck sie hinaus, +Alle Bauern und Buedner mit Feiergesicht +Sangen "Jesus meine Zuversicht", +Und die Kinder klagten, das Herze schwer: +"He is dod nu. Wer giwt uns nu 'ne Beer?" + +So klagten die Kinder. Das war nicht recht - +Ach, sie kannten den alten Ribbeck schlecht; +Der neue freilich, der knausert und spart, +Haelt Park und Birnbaum strenge verwahrt. +Aber der alte, vorahnend schon +Und voll Misstraun gegen den eigenen Sohn, +Der wusste genau, was damals er tat, +Als um eine Birn' ins Grab er bat, +Und im dritten Jahr aus dem stillen Haus +Ein Birnbaumsproessling sprosst heraus. + +Und die Jahre gingen wohl auf und ab, +Laengst woelbt sich ein Birnbaum ueber dem Grab, +Und in der goldenen Herbsteszeit +Leuchtet's wieder weit und breit. +Und kommt ein Jung' uebern Kirchhof her, +So fluestert's im Baume: "Wiste 'ne Beer?" +Und kommt ein Maedel, so fluestert's: "Luett Dirn, +Kumm man roewer, ick gew' di 'ne Birn." + +So spendet Segen noch immer die Hand +Des von Ribbeck auf Ribbeck im Havelland. \ No newline at end of file diff --git a/vigenere/2-en-plain.txt b/vigenere/2-en-plain.txt new file mode 100644 index 0000000..6558308 --- /dev/null +++ b/vigenere/2-en-plain.txt @@ -0,0 +1,23 @@ +Two roads diverged in a yellow wood, +And sorry I could not travel both +And be one traveler, long I stood +And looked down one as far as I could +To where it bent in the undergrowth; + +Then took the other, as just as fair, +And having perhaps the better claim, +Because it was grassy and wanted wear; +Though as for that the passing there +Had worn them really about the same, + +And both that morning equally lay +In leaves no step had trodden black. +Oh, I kept the first for another day! +Yet knowing how way leads on to way, +I doubted if I should ever come back. + +I shall be telling this with a sigh +Somewhere ages and ages hence: +Two roads diverged in a wood, and I— +I took the one less traveled by, +And that has made all the difference. diff --git a/vigenere/2-key.txt b/vigenere/2-key.txt new file mode 100644 index 0000000..a6dfbd8 --- /dev/null +++ b/vigenere/2-key.txt @@ -0,0 +1 @@ +MEINSCHATZ diff --git a/vigenere/2-plain.txt b/vigenere/2-plain.txt new file mode 100644 index 0000000..ceba341 --- /dev/null +++ b/vigenere/2-plain.txt @@ -0,0 +1 @@ +In einem Loch im Boden, da lebte ein Hobbit. Nicht in einem feuchten, schmutzigen Loch, wo es nach Moder riecht und Wurmzipfel von den Waenden herabhaengen, und auch nicht in einer trockenen, kahlen Sandgrube ohne Tische und Stuehle, wo man sich zum Essen hinsetzen koennte: nein, das Loch war eine Hobbithoehle, und das heisst, es war sehr komfortabel. diff --git a/vigenere/3-de-key.txt b/vigenere/3-de-key.txt new file mode 100644 index 0000000..e47c523 --- /dev/null +++ b/vigenere/3-de-key.txt @@ -0,0 +1 @@ +paradox diff --git a/vigenere/3-de-plain.txt b/vigenere/3-de-plain.txt new file mode 100644 index 0000000..198a708 --- /dev/null +++ b/vigenere/3-de-plain.txt @@ -0,0 +1,19 @@ +Dunkel war’s, der Mond schien helle, +schneebedeckt die gruene Flur, +als ein Wagen blitzesschnelle, +langsam um die Ecke fuhr. + +Drinnen sassen stehend Leute, +schweigend ins Gespraech vertieft, +als ein totgeschoss’ner Hase +auf der Sandbank Schlittschuh lief. + +Und ein blondgelockter Juengling +mit kohlrabenschwarzem Haar +sass auf einer gruenen Kiste, +die rot angestrichen war. + +Neben ihm ’ne alte Schrulle, +zaehlte kaum erst sechzehn Jahr, +in der Hand ’ne Butterstulle, +die mit Schmalz bestrichen war. \ No newline at end of file diff --git a/vigenere/frost.txt b/vigenere/frost.txt new file mode 100644 index 0000000..a16fd87 --- /dev/null +++ b/vigenere/frost.txt @@ -0,0 +1,20 @@ +Two roads diverged in a yellow wood +And sorry I could not travel both +And be one traveler long I stood +And looked down one as far as I could +To where it bent in the undergrowth +Then took the other as just as fair +And having perhaps the better claim +Because it was grassy and wanted wear +Though as for that the passing there +Had worn them really about the same +And both that morning equally lay +In leaves no step had trodden black +Oh I kept the first for another day +Yet knowing how way leads on to way +I doubted if I should ever come back +I shall be telling this with a sigh +Somewhere ages and ages hence +Two roads diverged in a wood and I +I took the one less traveled by +And that has made all the difference diff --git a/vigenere/frost_cipher.txt b/vigenere/frost_cipher.txt new file mode 100644 index 0000000..701e7be --- /dev/null +++ b/vigenere/frost_cipher.txt @@ -0,0 +1,19 @@ +Ync jhfug vbavfyxi zb s rjczgp bfcv +Tsu ggkwp W uhzcr fhy kfsojc pgmm +Rbv uj fbw mwrjweji zggl Z glhtu +Ofw qfccxi ucog tes sl krf sl N tcmei +Kc oajis am gvbl bs kvw nsusjzwfkla +Yysf mtfy laj fhzxw rg bnxk ok yfzf +Sgi yonbsx dwkmrdk mmv pwmyvf uefza +Txhrikx nk ksl liokld rbv pfehww bvoj +Mmfiya fj tgk yyol mmv dslxzby mmvfw +Sgi scla yyol ftibagl vemtqcm dtd +Zb dxfmsk gt jhwi mrr lkturwg gcoud +Ty W cxuk hzx kzfkm kff sgtkvwk irm +Qxy bbgpneu zhb noq ejrrk hs kc otd +Z rgngksv bk Z gzhzcr woji qgfj soud +N jvseq ss lxqcwfz yywk pnkv s lnxv +Khrvkzxwv oyxx rbv tlvg zxsts +Lpt icswx uwnxwxsv bs r kghi rbv B +N kcgd yys ggj cskl yionxqvr tr +Fer lafk vsl rrrw tqc hzx iztxxwvbux diff --git a/vigenere/voucher-key.txt b/vigenere/voucher-key.txt new file mode 100644 index 0000000..7112d16 --- /dev/null +++ b/vigenere/voucher-key.txt @@ -0,0 +1 @@ +mate diff --git a/vigenere/voucher-plain.txt b/vigenere/voucher-plain.txt new file mode 100644 index 0000000..eb9352d --- /dev/null +++ b/vigenere/voucher-plain.txt @@ -0,0 +1,28 @@ +Yippie! This time to get your voucher I want to know the keyword that was used to encrypt the first english message. If you can tell me the correct keyword, you get another Mate or some sweets. To make decryption of this message easier, here is another poem: + +O Captain! my Captain! our fearful trip is done, +The ship has weather’d every rack, the prize we sought is won, +The port is near, the bells I hear, the people all exulting, +While follow eyes the steady keel, the vessel grim and daring; + But O heart! heart! heart! + O the bleeding drops of red, + Where on the deck my Captain lies, + Fallen cold and dead. + +O Captain! my Captain! rise up and hear the bells; +Rise up—for you the flag is flung—for you the bugle trills, +For you bouquets and ribbon’d wreaths—for you the shores a-crowding, +For you they call, the swaying mass, their eager faces turning; + Here Captain! dear father! + This arm beneath your head! + It is some dream that on the deck, + You’ve fallen cold and dead. + +My Captain does not answer, his lips are pale and still, +My father does not feel my arm, he has no pulse nor will, +The ship is anchor’d safe and sound, its voyage closed and done, +From fearful trip the victor ship comes in with object won; + Exult O shores, and ring O bells! + But I with mournful tread, + Walk the deck my Captain lies, + Fallen cold and dead.