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.
 
 
 

24 lines
516 B

const encrypt = {
state: {
KEY: 'B3AC90F688974749',
IV: 'A39F3975DC5D4D38'
},
mutations: {
ENCRYPT_KEY: (state, key) => {
state.KEY = key
},
ENCRYPT_IV: (state, iv) => {
state.IV = iv
}
},
action: {
setEncryptKey: ({ commit }, type) => {
commit('ENCRYPT_KEY', type)
},
setEncryptIv: ({ commit }, type) => {
commit('ENCRYPT_IV', type)
}
}
}
export default encrypt