#!/usr/bin/env python # crypt.py import string characters=list(string.printable)[:-3] # Instead of using ASCII values for this program, I have designed it to encrypt/decrypt # from a given character set(list(string.printable)[:-3]), allowing the replacement # of the above with any other desired. def displace(list, value, distance): "Retrieves a specified value from a list and returns the value offset from it by distance" if list.index(value)+distance