def AES_enc(cipher, data):
 if HAVE_AES:
  return cipher.encrypt(data)
 else:
  encrypter = PYAES.Encrypter(cipher)
  enc = encrypter.feed(data)
  enc += encrypter.feed()
  return enc

def AES_enc ( cipher , data ) : if HAVE_AES : return cipher . encrypt ( data ) else : encrypter = PYAES . Encrypter ( cipher ) enc = encrypter . feed ( data ) enc += encrypter . feed ( ) return enc
encrypt data with the cipher .