JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

jana | JustPaste.app
2 months ago0 views
👨‍💻Programming

jana

import hashlib
def file_hash(filename):
    h=hashlib.md5()
    with open(filename, "rb") as file:
        while chunk := file.read(4096):
            h.update(chunk)
    return h.hexdigest()
        
file1= input("enter file: ")
print("hash:", file_hash(file1))
← Back to timeline