@@ -0,0 +1,941 @@
+import gen_key%0Aimport sys%0Acomargs = sys.argv%0AinName = comargs%5B1%5D%0AkeyName = comargs%5B2%5D%0A%0Adef decode(text):%0A    if type(text) == list:%0A        Re = %5B%5D%0A        result = ''%0A        keys = gen_key.loadKey(keyName)%0A        for i in text:%0A            num = len(i)%0A            for alpha,number in keys.iteritems():%0A                if num == number:%0A                    Re.append(alpha)%0A        for item in Re:%0A            result = result + item%0A        return result%0A    else: 'please enter a valid text file'%0A%0Adef loadMessage(fileN):%0A    import pickle%0A    f2 = file(fileN+'.pkl', 'rb')%0A    mes = pickle.load(f2)%0A    f2.close%0A    return mes%0A%0Adef Test():%0A    print '%5Cn'%0A    print ' The key of this encode: ', gen_key.loadKey(keyName)%0A    mess = loadMessage(inName)%0A    print ' Load the encoded text from file -', inName, '- :', mess%0A%0A    print ' The decoded message is : '%0A    print decode(mess)%0A    print '%5Cn'%0A%0Aif __name__ == '__main__':%0A    Test()%0A%0A

Create decode.py