提交 d4dc072f 编写于 作者: Q qq_36337781

Mon Oct 9 17:10:00 CST 2023 inscode

上级 7a093d7e
run = "npm i && npm run dev"
language = "node"
[deployment]
build = "npm i && npm run build"
......@@ -8,3 +9,6 @@ run = "npm run preview"
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
XDG_CONFIG_HOME = "/root/.config"
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
[debugger]
program = "main.js"
......@@ -7,6 +7,7 @@
"preview": "vite preview --port 4173"
},
"dependencies": {
"crypto-js": "^4.0.0",
"guess": "^1.0.2",
"vue": "^3.2.37"
},
......
import { createApp } from 'vue'
import App from './App.vue'
import CryptoJS from 'crypto-js';
let addCryto = (str)=>{
let key = '736a6677797130313233343536373839'
key = CryptoJS.enc.Hex.parse(key)
const encrypted = CryptoJS.AES.encrypt(str,key,{
mode:CryptoJS.mode.ECB,
padding:CryptoJS.pad.Pkcs7
})
return encrypted.ciphertext.toString()
}
let sql =addCryto("select id from df_03_test_0613_01.a1111 where id = '1'")
console.log(sql,'wwww')
import './assets/main.css'
// const encryptedMessage = CryptoJS.AES.encrypt('secret message', 'password');
// console.log(encryptedMessage.toString());
createApp(App).mount('#app')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册