UNPKG

vue-cryptojs

Version:

A small wrapper for integrating crypto-js into VueJS

15 lines (13 loc) 309 B
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()