Jump to content

Module:Hash function

From Wikipedia, the free encyclopedia

local p = {}

function p.main(frame)
	local algo = frame.args['algo'] or frame.args[1]
	local value = frame.args['value'] or frame.args[2]
	return mw.hash.hashValue( algo, value )
end

function p.list()
	return mw.dumpObject(mw.hash.listAlgorithms())
end

return p