Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local md5 = require "md5" -- load the md5 hashing library
- local file = fs.open("file", 'r') -- open the file to hash
- local myFileString = file.readAll() -- read the file into a string
- file.close() -- close the file
- local md5Hash = md5.tohex(myFileString) -- use the library that we loaded to has the string of the file contents
- print("md5Hash")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement