Difference between revisions of "Widget:NTLMgenerator"
m (fixed event handler) |
m (minor fixes) |
||
Line 15: | Line 15: | ||
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article. | To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article. | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
+ | |||
'''NTLM hash generator''' | '''NTLM hash generator''' | ||
+ | |||
(note that there is no roundtrip involved, hash is generated client-side using utf8-to-utf16 little endian and md4 hash) | (note that there is no roundtrip involved, hash is generated client-side using utf8-to-utf16 little endian and md4 hash) | ||
+ | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
/** | /** | ||
Line 44: | Line 47: | ||
if ( !_event ) | if ( !_event ) | ||
_event = window.event; | _event = window.event; | ||
− | |||
document.getElementById( "NTLM" ).value = md4( encodeUTF16LE( _event.target.value ) ); | document.getElementById( "NTLM" ).value = md4( encodeUTF16LE( _event.target.value ) ); | ||
} | } | ||
Line 51: | Line 53: | ||
{ | { | ||
"use strict"; | "use strict"; | ||
− | document.write( '<input type="password" onchange="generateNTLM()" onkeypress="generateNTLM()" /><br/><input type="text" id="NTLM" />' ); | + | document.write( '<input size="40" type="password" onchange="generateNTLM()" onkeypress="generateNTLM()" /><br/><input size="40" type="text" readonly="readonly" id="NTLM" />' ); |
}( )); | }( )); | ||
</script> | </script> | ||
</includeonly> | </includeonly> |
Revision as of 08:33, 20 April 2018
This widget allows you to create an NTLM hash from a password (used in spacenet accounts)
Created by Xopr
Using this widget
To insert this widget, use the following code:
{{#widget:NTLMgenerator}}
This will give the following result:
NTLM hash generator
(note that there is no roundtrip involved, hash is generated client-side using utf8-to-utf16 little endian and md4 hash)
Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:NTLMgenerator article.