Code: Select all
md5 = require("md5")
Code: Select all
response = md5.sumhexa("hello")
response = 5d41402abc4b2a76b9719d911017c592
Code: Select all
md5 = require("md5")
Code: Select all
response = md5.sumhexa("hello")
response = 5d41402abc4b2a76b9719d911017c592
Actually, I had the problem in LuaJIT.kikito wrote:We use luajit in LÖVE, so it should work ok here.
Code: Select all
local md5 = require"md5"
local content = love.filesystem.read"md5.lua"
print( md5.sumhexa( content ) )
print( md5.sumhexa( content ) )
print( md5.sumhexa( content ) )
print( md5.sumhexa( content ) )
love.event.quit()
Code: Select all
e4559a35e5559a35e6559a35e6559a35
e4559a35e5559a35e6559a35e6559a35
e4559a35e5559a35e6559a35e6559a35
e4559a35e5559a35e6559a35e6559a35
Code: Select all
local md5 = require"md5"
local content = love.filesystem.read"md5.lua"
print( md5.sumhexa( content ) )
print( md5.sumhexa( content ) )
print( md5.sumhexa( content ) )
--print( md5.sumhexa( content ) )
love.event.quit()
Code: Select all
221f0d89221f0d89221f0d89221f0d89
221f0d89221f0d89221f0d89221f0d89
221f0d89221f0d89221f0d89221f0d89
Users browsing this forum: Google [Bot] and 0 guests