编程语言/阿里云数据库密码生成器:修订间差异
来自康健生活
创建页面,内容为“== 标题文字 == {{leftrightflex|<syntaxhighlight lang="javascript"> const crypto = require('crypto'); const a = [...new Array(26)].map((_, i) => String.fromCharC…” |
小 文字替换 -“{{leftrightflex|”替换为“{{Double-columns|” |
||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
== 标题文字 == | == 标题文字 == | ||
{{ | {{Double-columns|<syntaxhighlight lang="javascript"> | ||
const a = [...new Array(26)].map((_, i) => String.fromCharCode(65 + i)); | const a = [...new Array(26)].map((_, i) => String.fromCharCode(65 + i)); | ||
const b = [...new Array(26)].map((_, i) => String.fromCharCode(97 + 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 c = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0]; | ||
const d = | const d = '()`~!@#$%^&-+=|{}[]:;<>,.?/'.split(''); | ||
const pass = (arr, len) => { | const pass = (arr, len) => { | ||