编程语言/阿里云数据库密码生成器:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
创建页面,内容为“== 标题文字 == {{leftrightflex|<syntaxhighlight lang="javascript"> const crypto = require('crypto'); const a = [...new Array(26)].map((_, i) => String.fromCharC…”
 
Kangkk​(留言 | 贡献)
第1行: 第1行:
== 标题文字 ==
== 标题文字 ==
{{leftrightflex|<syntaxhighlight lang="javascript">
{{leftrightflex|<syntaxhighlight lang="javascript">
const crypto = require('crypto');
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) => {