def myinput(self,s): s = s.replace(";","\;").replace("=","\=")#这个地方过滤一下,防止出错 print 'plaintext is : '+self.prefix+s+self.suffix+'\n' print 'key is :'+self.key+'\n' return c16.cbcencrypt(self.prefix+s+self.suffix,self.iv,self.key)
def myinput(self,s): s = s.replace(";","\;").replace("=","\=") return c16.cbcencrypt(self.prefix+s+self.suffix,self.iv,self.key)
def myinput(self, s): s = s.replace(";", "\;").replace("=", "\=") #这个地方过滤一下,防止出错 print 'plaintext is : ' + self.prefix + s + self.suffix + '\n' print 'key is :' + self.key + '\n' return c16.cbcencrypt(self.prefix + s + self.suffix, self.iv, self.key)