Permanently protected module

Module:Hash function

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>MusikBot II at 18:00, 30 October 2025 (Protected "Module:Hash function": High-risk template or module: 252 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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