提交代码

This commit is contained in:
jiang 2024-11-20 14:36:16 +08:00
parent 81a07b318a
commit 40df072355
1 changed files with 3 additions and 10 deletions

View File

@ -1,13 +1,13 @@
// SM 配置
const SM_CONFIG = {
export const SM_CONFIG = {
SALT: '2cc0c5f9f1749f1632efa9f63e902323', // SM3 盐值16 字节)
SM4_KEY:"78d1295afa99449b99d6f83820e6965c", // SM4 对称加密密钥
SM4_SALT:generateUUID(),
SM4_SALT:"f555adf6c01d0ab0761e626a2dae34a2",
SM2_PUBLIC_KEY: 'your-public-key', // SM2 公钥
SM2_PRIVATE_KEY: 'your-private-key' // SM2 私钥
}
// AES 配置
const AES_CONFIG = {
export const AES_CONFIG = {
AES_KEY: 'zhgd@bonus@zhgd@bonus@1234567890', // AES key值
AES_IV: '1234567812345678' // AES 偏移量
}
@ -21,10 +21,3 @@ export function generateUUID() {
});
}
// 使用示例
const uuid = generateUUID();
console.log(uuid);
module.exports = {
SM_CONFIG,
AES_CONFIG,
}