vue-cryptojs
Version:
A small wrapper for integrating crypto-js into VueJS
17 lines (13 loc) • 311 B
JavaScript
import Vue from 'vue'
import VueCryptojs from '../src/index.mjs'
Vue.use(VueCryptojs)
const test = new Vue({
methods: {
run() {
Vue.CryptoJS.SHA256("Message").toString();
this.CryptoJS.SHA256("Message").toString();
this.$CryptoJS.SHA256("Message").toString();
}
}
})
test.run()