Jump to content

Module:Sandbox/RexxS/hashes

From Wikipedia, the free encyclopedia

local p = {}

function p.hashlist(frame)
	value = frame.args.val
	local out = {}
	for idx, algo in ipairs(mw.hash.listAlgorithms()) do
		out[#out+1] = algo .. " = " .. mw.hash.hashValue( algo, value )
	end
	return table.concat(out, "<br>")
end

return p