fork download
  1. import base64
  2. from Crypto import Random
  3. from Crypto.Cipher import AES
  4.  
  5. AKEY = 'mysixteenbytekey'
  6. iv = 'what_a_cool_iv!!'
  7.  
  8. def decode(cipher):
  9. obj2 = AES.new(AKEY, AES.MODE_CFB, iv)
  10. return obj2.decrypt(base64.urlsafe_b64decode(cipher))
  11.  
  12. result = decode("5fMfiISsxcG4gKWAXwkL1Bu6zW26FlhG1613")
  13.  
  14. print ("este es el resultado " +
  15. result)
Success #stdin #stdout 0.02s 11312KB
stdin
Standard input is empty
stdout
este es el resultado Password: pythonSnakeBite77