Skip to content

Instantly share code, notes, and snippets.

View Artraxon's full-sized avatar

Leonhard Rose Artraxon

  • Student at TU Berlin
View GitHub Profile
@Artraxon
Artraxon / VigenereBreaker.clj
Created July 11, 2018 13:58
Breaks the vigenere Cipher (for german)
(ns informatik-krams.core
(:gen-class))
(import java.lang.Character)
(defn- seq->pos-table [coll]
(map-indexed #(assoc {} :position %1 :letter %2) coll))
(defn char-range [start end]
(map char (range (int start) (inc (int end)))))