Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- def Archive():
- file1 = raw_input('Type the file name or path: ')
- Read=open(file1,"rw")
- print "You've just opened %s" % (file1)
- print "Content inside %s" % (file1)
- x = str(Read.read())
- print x
- Read.close()
- xz = raw_input('Want to hash the file content? ')
- if xz == ("Y") or ("y"):
- print hashlib.md5(x).hexdigest()
- else:
- return
- return x
- Archive()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement