-
Notifications
You must be signed in to change notification settings - Fork 2
/
JavaScript achieve high strength random password generation online tool - toolfk online Programmer toolbox
62 lines (41 loc) · 6.13 KB
/
JavaScript achieve high strength random password generation online tool - toolfk online Programmer toolbox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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 ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"), [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"), [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"), [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"), [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox.
Site name: ToolFk
website links: [https://www.toolfk.com/](https://www.toolfk.com/)
Tools link: [https://www.toolfk.com/tool-password-generator](https://www.toolfk.com/tool-password-generator)
? Teaching Code
---------------
This tool \[Online high strength random password generator tool\]? Written in JavaScript
STEP 1
[![](https://3.bp.blogspot.com/-e_X1sqe2lcg/XA8tvz5dV_I/AAAAAAAAAGQ/ZZ3XM79DN58XlnlQweJzEvrnahVRtBj7QCPcBGAYYCw/s1600/password.png)](https://3.bp.blogspot.com/-e_X1sqe2lcg/XA8tvz5dV_I/AAAAAAAAAGQ/ZZ3XM79DN58XlnlQweJzEvrnahVRtBj7QCPcBGAYYCw/s1600/password.png)
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:
1. Integrate various programmers often used in development and testing tools.
2. Simple and beautiful atmosphere of the site pages
3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service
4. Also recommend its sister network [www.videofk.com](http://www.videofk.com/) video download Toolbox
> This link: [http://www.hihubs.com/article/381](http://www.hihubs.com/article/381)