Page MenuHomeWickedGov Phorge

mw.hash.lua
No OneTemporary

Size
577 B
Referenced Files
None
Subscribers
None

mw.hash.lua

local hash = {}
local php
local util = require 'libraryUtil'
local checkType = util.checkType
function hash.listAlgorithms()
return php.listAlgorithms()
end
function hash.hashValue( algo, value )
checkType( 'hashValue', 1, algo, 'string' )
checkType( 'hashValue', 2, value, 'string' )
return php.hashValue( algo, value )
end
function hash.setupInterface()
-- Boilerplate
hash.setupInterface = nil
php = mw_interface
mw_interface = nil
-- Register this library in the "mw" global
mw = mw or {}
mw.hash = hash
package.loaded['mw.hash'] = hash
end
return hash

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 22, 17:45 (1 d, 49 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2c/63/9604fea2021fa11c9e18d19da570
Default Alt Text
mw.hash.lua (577 B)

Event Timeline