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
498 B
24 lines
498 B
const encrypt = { |
|
state: { |
|
KEY: 'default', |
|
IV: 'default' |
|
}, |
|
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
|
|
|