JavaScript achieve high strength random password generation online tool - toolfk online Programmer toolbox
This paper to recommend [ToolFk] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports BarCode Barcode generated online , QueryList collector , PHP code is run online , PHP confusion, encryption, decryption , Python code is run online , JavaScript online operation ,YAML formatting tools , HTTP simulation query tool , HTML online toolbox , JavaScript online Toolbox ,CSS online toolbox , JSON online toolbox , unixtime timestamp conversion , Base64 / the URL of / native2ascii conversion , CSV conversion kit , XML online toolbox , the WebSocket online tools , Markdown online toolbox , Htaccess2nginx conversion, Hex conversion online , online encryption toolkit ,online pseudo-original tools , online APK decompile , online web screenshot tool , online random password generation , online generate two-dimensional code qrcode , online Crontab Expression Builder ,the online short URL Generator , Online calculator tool . And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox.
? Teaching Code
This tool [Online high strength random password generator tool]? Written in JavaScript
STEP 1
STEP 2
? THE CORE CODE IS AS FOLLOWS
function appendHtml (name, url) { var tmp_html = $ ( "# tmp") html () replaceAll ( "# NAME #", name) .replaceAll ( "# URL #", url)..; $ ( "Show-area.") Html (tmp_html).; } $ (Function () { $ ( ". Generate-password"). Click (function () { for (var E = $ ( "# pgLength"). Val (), A = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", T = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", R & lt = "0123456789", I = " ! @ # $% ^ & * () _ + ~ `|} {[]: ;?.> <, / - =", n = "", o = n; n.length <e;) entity1 = Math.ceil (a.length * Math.random () * Math.random ()), entity2 = Math.ceil (r.length * Math.random () * Math.random ()), entity3 = Math.ceil (i.length * Math.random () * Math.random ()), entity4 = Math.ceil (t.length * Math.random () * Math.random ()), $ ( "# Chkl") is. ( ": Checked") && n.length <e && (n + = a.charAt (entity1)), $ ( "# Chku") is. ( ": Checked") && n.length <e && (n + = t.charAt (entity4)), $ ( "# Chkn") is. ( ": Checked") && n.length <e && (n + = r.charAt (entity2)), $ ( "# Chksc") is. ( ": Checked") && n.length <e && (n + = i.charAt (entity3)), o == n && (rand = Math.floor (4 * Math.random ()) + 1, 1 == rand n + = a.charAt (entity1):? 2 == rand n + = t.charAt (entity4):? 3 == rand n + = r.charAt (entity2):? 4 == rand && (n + = i.charAt (entity3)), o = n); toolfk.report ( 'generate-password', n); appendHtml ( "@ lang ( 'toolfk.lang_text_padd_rand_num')", n); }); });
It is worth a try for three reasons:
- Integrate various programmers often used in development and testing tools.
- Simple and beautiful atmosphere of the site pages
- Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service
This link: http://www.hihubs.com/article/381
留言
發佈留言