Advertisement
ComputerMan123

File Hasher

Feb 26th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. --[[
  2. File Hasher
  3. By: houseofkraft
  4. ]]--
  5.  
  6. -- Functions
  7. function hash( sData )
  8.   local sOutput = ""
  9.   for index = 1, #sData do
  10.     local sPos = sData:sub( index, index )
  11.     local sHash = string.byte( tostring( sPos ) )
  12.     sHash = (sHash + (sHash - 16))
  13.     sOutput = sOutput .. sHash
  14.   end
  15.   return sOutput
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement