Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7444738
mw.hash.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
577 B
Referenced Files
None
Subscribers
None
mw.hash.lua
View Options
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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment