查看“︁编程语言/阿里云数据库密码生成器”︁的源代码
来自康健生活
←
编程语言/阿里云数据库密码生成器
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== 标题文字 == {{leftrightflex|<syntaxhighlight lang="javascript"> const crypto = require('crypto'); const a = [...new Array(26)].map((_, i) => String.fromCharCode(65 + i)); const b = [...new Array(26)].map((_, i) => String.fromCharCode(97 + i)); const c = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0]; const d = ['(', ')', '`', '~', '!', '@', '#', '$', '%', '^', '&', '-', '+', '=', '|', '{', '}', '[', ']', ':', ';', '<', '>', ',', '.', '?', '/']; const pass = (arr, len) => { let s = ""; for (let i = 0; i < len; i++) { s += arr[Math.floor(Math.random() * arr.length)]; } return s; }; const random = pass(a.concat(b, c, d), 16); console.log(random); </syntaxhighlight>|{{consoleout|<pre> uI!AYs}/xH&{Ua9Q </pre>}}}}
此页面嵌入的页面:
模板:Consoleout
(
查看源代码
)
模板:Double-columns
(
查看源代码
)
模板:Double-columns/style.css
(
查看源代码
)
返回
编程语言/阿里云数据库密码生成器
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。