You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
564 B
16 lines
564 B
// | ------------------------------------------------------------
|
|
// | @版本: version 0.1
|
|
// | @创建人: 【Nie-hotok】
|
|
// | @E-mail: x71291@outlook.com
|
|
// | @所在项目: pac-auth
|
|
// | @文件描述: 密码随机盐.js -
|
|
// | @创建时间: 2024-06-29 15:46
|
|
// | @更新时间: 2024-06-29 15:46
|
|
// | @修改记录:
|
|
// | -*-*-*- (时间--修改人--修改说明) -*-*-*-
|
|
// | =
|
|
// | ------------------------------------------------------------
|
|
const crypto = require('crypto');
|
|
const salt = crypto.randomBytes(16).toString('hex');
|
|
|
|
console.log('A', salt);
|
|
|