Advertisement
atlasim

hash finder

Jul 6th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. local md5 = require "md5" -- load the md5 hashing library
  2.  
  3. local file = fs.open("file", 'r') -- open the file to hash
  4. local myFileString = file.readAll() -- read the file into a string
  5. file.close() -- close the file
  6.  
  7. local md5Hash = md5.tohex(myFileString) -- use the library that we loaded to has the string of the file contents
  8. print("md5Hash")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement