Created
September 25, 2017 03:12
-
-
Save joergre/9741b7ad88d7655e2d05ee1ed7a020ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Sep 21 23:33:17 2017 | |
@author: Jörg Reuter | |
e-mail: joerg@reuter.sc | |
""" | |
import sys | |
def ctt (mode): | |
# abc | |
ab = 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' | |
c1 = 'i','c','o','l','a','p','x','s','t','v','y','b','j','e','r','u','k','n','f','h','q','g',';','d','z','w' | |
c2 = 't','o','r','b','i','u','d','f','h','g','z','c','v','a','n','q','y','e','p','s','k','x','¢','l','w',';' | |
c3 = 'h','r','n','c','t','q','l','p','s','x','w','o','g','i','e','k','z','a','u','f','y','d','+','b',';','¢' | |
c4 = 's','n','e','o','h','k','b','u','f','d',';','r','x','t','a','y','w','i','q','p','z','l','%','c','¢','+' | |
# ABC | |
AB = 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z' | |
C1 = '>','F','A','U','T','C','Y','O','L','V','J','D','Z','I','N','Q','K','S','E','H','G','<','.','1','P','B' | |
C2 = 'R','C','>','G','H','A','P','N','D','<','V','U','B','L','I','K','J','E','T','O','Y','X','M','2','Q','F' | |
C3 = 'S','A','R','Y','O','>','Q','I','U','X','<','G','F','D','L','J','V','T','H','N','P','1','Z','3','K','C' | |
C4 = 'E','>','S','P','N','R','K','L','G','1','X','Y','C','U','D','V','<','H','O','I','Q','2','B','4','J','A' | |
# Zahlen | |
ZA = '0','1','2','3','4','5','6','7','8','9' | |
Z1 = '5','2','3','4','0','6','7','8','9','-' | |
Z2 = '6','3','4','0','5','7','8','9','-','~' | |
Z3 = '7','4','0','5','6','8','9','-','~','§' | |
Z4 = '8','0','5','6','7','9','-','~','§','£' | |
# Sonderzeichen | |
SZ = '-','\'','!','"','#','%','&','(',')','*',',','.','..','/',':',';','?','@','^','_','+','<','=','>','¢','£','§','€',' ' | |
S1 = '~','_','&','m','@',':','"','*','(','#','W','M','§','^',',','¢','/','?','!',')','%','X','\'','R','+','€','£','=',' ' | |
S2 = '§',')','"','j','?',',','m','#','*','@','.','Z','£','!','W','+','^','/','&','(',':','1','_','S','%','=','€','\'',' ' | |
S3 = '£','(','m','v','/','W','j','@','#','?','M','B','€','&','.','%','!','^','"','*',',','2',')','E',':','\'','=','_',' ' | |
S4 = '€','*','j','g','^','.','v','?','@','/','Z','F','=','"','M',':','&','!','m','#','W','3','(','T',',','_','\'',')',' ' | |
# Alle Listen zusammenführen | |
abc = ab+AB+ZA+SZ | |
c1a = c1+C1+Z1+S1 | |
c2a = c2+C2+Z2+S2 | |
c3a = c3+C3+Z3+S3 | |
c4a = c4+C4+Z4+S4 | |
# Dictionary | |
dic1 = dict(zip(c1a,abc)) | |
dic2 = dict(zip(c2a,abc)) | |
dic3 = dict(zip(c3a,abc)) | |
dic4 = dict(zip(c4a,abc)) | |
if mode == 1: | |
return(dic1) | |
elif mode == 2: | |
return(dic2) | |
elif mode == 3: | |
return(dic3) | |
elif mode == 4: | |
return(dic4) | |
else: | |
return(0) | |
print(ctt(1)) | |
print("\n-------------- MODUS1 --------------------") | |
mod1 = "Uif <rzetos~ZiIqfJntuh *caeiIeh eios .tbpnLl Ztosiab <rzetosWlan lif Z>eGEyntQh 2-23 an;iSc( tfh ate EosntphfHqaAyW lifftos atejib tj Fafthw laf JitfanE Sqlrbp LLN laf OatbLxTeSrajtfosTe Satosf capielN Tf tfh te ateTn ctfbiex etosh tlaehL~ptwLTnhaI Eosntph qel Euniosa xafosntTcaeN Eate Lesibh yrIehactf saqha etosh aehfosDqTEfabh ;Tnlae qel af tfh eios ;ta grnqeybinW rc lan Hadh qacTnsiquh ateTe ftIegrDbae Lesibh hnief~urShtanHN Lj ZieGEJntQH grnsielaeT >FctblqIxae anteITne iecrhietfosaW ie>hrjtfosa qel ifhnreNjtEosa BqfiZjTes>aexa qel;qnlae jth Ernxpibh xawatoseTHN Uif Zieqfyntuh captelah ftosfath 2-7- qehan Jih>brxeqjjan ZE 059 tj Fafhiel lan FTteaoyaSina FNry iel Zieqfontuh Dtcninz lan Piba GetganfLhzN" | |
print("------------------------------------------------") | |
dic1 = ctt (1) | |
for element in mod1: | |
deci = dic1[element] | |
sys.stdout.write(deci) | |
mod2 = "Gtp Xnwahrf§BtLkpVehqs #oiatLas atrf MhcueDb Bhrftic Xnwahrf. bie btp BRaYTzehKs 3~34 ie¢tEo* hps iha TrfehuspOki>z. btp phrf ihavtc hv Ciphs; bip VthpieT Ekbncu DDZ bip NihcDdHa EnivhprfHa Eihrfp oiutabZ Hp hps ha ihaHe ohpctad ahrfs hbiasD§ uh;DHesiL Trfehus kab Tqetrfi diprfehHoiaZ Tiha Daftcs znLasi ohp fiksi ahrfs iasprfUkHTpics ¢Hebia kab ip hps atrf ¢hi xne kazcte. no bie Oils kioHeftkqs ihaHa phLaxnUcia Daftcs setap§ qnEshieOZ Dv BtaYTVehKO xneftabiaH RCohcbkLdia iehaLHea ta onstahprfi. taRsnvhprfi kab tpsenaIvhTrfi FkptBvHafRiadi kab ¢kebia vhs Tnedutcs di;ihrfaHOZ Gtp Btakpzehqs oiuhabis phrf pihs 3~8~ kasie VtsRcndakvvie BT 56- hv Cipstab bie CHhairzi Etei CInz tab Btakprehqs Uhoetew bie Qtci YahxiepDswZ" | |
print("\n---------- Modus 2 -------------------") | |
dic2 = ctt (2) | |
for element in mod2: | |
deci = dic2[element] | |
sys.stdout.write(deci) | |
mod3 = "Yhu 1e;isnp£FhDyu<askf @rtihDif ihnp ZsoqaUc Fsnphto 1e;isnpM cta chu FSiPHwasJf 4§40 ta+hTr# suf tsi HnpasqfuNytRwM chu usnp tsigho sg Atusf¢ ctu <hsutaH Tyceoq UUB ctu ItsoUlOi TetgsunpOi Ttsnpu rtqhicB Ou suf si tsiOa rsuohil isnpf sctifU£ qs¢UOaftD Hnpasqf yic Hkahnpt ltunpasOrtiB Htsi Uiphof weDift rsu ptyft isnpf tifunpGyOHutof +Oacti yic tu suf ihnp +st dea yiwohaM er cta Ntbf ytrOaphykf tsiOi usDideGoti Uiphof fahiu£ keTfstaNB Ug FhiPH<asJN deaphictiO SArsocyDlti tasiDOai hi refhisunptM hiSfegsunpt yic hufaeiLgsHnpt CyuhFgOipStilt yic +yacti gsf Healqhof lt¢tsnpiONB Yhu Fhiyuwaskf rtqsictf usnp utsf 4§9§ yifta <hfSoeliyggta FH 67~ sg Atufhic cta AOsitnwt That ALew hic Fhiyunaskf Gsraha; cta Khot PisdtauUf;B" | |
print('\n------------------- MODUS 3 -------------------') | |
dic3 = ctt (3) | |
for element in mod3: | |
deci = dic3[element] | |
sys.stdout.write(deci) | |
print('\n------------------- MODUS 4 -------------------') | |
mod4 = "Psq 2a¢tfeu€CsUzqXifyp ?nhtsUtp tseu BfrkiGo Cfeushr 2a¢tfeuZ ohi osq CEtQO;ifVp 0£05 hi%sHn@ fqp hft OeuifkpqIzhS;Z osq qfeu hftxsr fx >hqfp+ ohq XsfqhiO Hzoark GGF ohq LhfrGbNt HahxfqeuNt Hhfeuq nhkstoF Nq fqp ft hftNi nfqrstb tfeup fohtpG€ kf+GNiphU Oeuifkp zto Oyiseuh bhqeuifNnhtF Ohft Gtusrp ;aUtph nfq uhzph tfeup htpqeuYzNOqhrp %Nioht zto hq fqp tseu %fh lai zt;rsiZ an ohi Ihcp zhnNiuszyp hftNt qfUtlaYrht Gtusrp pistq€ yaHpfhiIF Gx CstQOXifVI laiustohtN E>nfrozUbht hiftUNit st napstfqeuhZ stEpaxfqeuh zto sqpiatDxfOeuh AzqsCxNtuEhtbh zto %zioht xfp Oaibksrp bh+hfeutNIF Psq Cstzq;ifyp nhkftohp qfeu qhfp 0£-£ ztphi XspErabtzxxhi CO 78§ fx >hqpsto ohi >Nfthe;h Hsih >Da; sto Cstzqeifyp Yfnisi¢ ohi Jsrh QtflhiqGp¢F" | |
dic4 = ctt(4) | |
for element in mod4: | |
deci = dic4[element] | |
sys.stdout.write(deci) | |
print('\n -----------------------------------------------') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment