Skip to content

Instantly share code, notes, and snippets.

@flipperbw
flipperbw / vigenere.py
Created Jan 4, 2018
Vigenere Cipher in Python for all printable ASCII characters
View vigenere.py
universe = [c for c in (chr(i) for i in range(32,127))]
uni_len = len(universe)
def vign(txt='', key='', typ='d'):
if not txt:
print 'Needs text.'
return
if not key:
print 'Needs key.'