Header always append X-Frame-Options SAMEORIGIN
#正常nginx默认是 ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_protocols TLSv1.2 TLSv1.3;
#正常Apache默认是 SSLProtocol -ALL +TLSv1 +TLSv1.1 +TLSv1.2
SSLProtocol -ALL +TLSv1.2 +TLSv1.3
npm install crypto-js -S
var CryptoJS = require("crypto-js");
var data = [{id: 1}, {id: 2}]
// Encrypt
var ciphertext = CryptoJS.AES.encrypt(JSON.stringify(data), 'secret key 123').toString();
// Decrypt
var bytes = CryptoJS.AES.decrypt(ciphertext, 'secret key 123');
var decryptedData = JSON.parse(bytes.toString(CryptoJS.enc.Utf8));
console.log(decryptedData); // [{id: 1}, {id: 2}]
// store/index.js
import { SecurityStorage } from "./security.js";
...
const securityStorage = new SecurityStorage(window.sessionStorage);
...
new Vuex.Store({
plugins: [createPersistedState({ storage: securityStorage })],
state: {},
...
})
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |