Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2023
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import pyAesCrypt
  2. from os import stat, remove
  3.  
  4. bufferSize = 56 * 1024
  5. password = "itisjustastring"
  6.  
  7. encFileSize = stat("justanimage.png.aes").st_size
  8.  
  9. with open("justanimage.png.aes", "rb") as fIn:
  10.     with open("dataout.png", "wb") as fOut:
  11.         pyAesCrypt.decryptStream(fIn, fOut, password, bufferSize, encFileSize)
  12.  
  13. bufferSize = 56 * 1024 - from picture
  14. password = "itisjustastring" - from picture
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement