Example #1
0
 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)
Example #2
0
  def myinput(self,s):
    s = s.replace(";","\;").replace("=","\=")

    return c16.cbcencrypt(self.prefix+s+self.suffix,self.iv,self.key)
Example #3
0
 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)