test.js
'use strict'
var crypto = require('crypto');
var encrypted = "";
var cip = crypto.createCipher('rc4', 'abc');
encrypted += cip.update('asd', 'binary', 'hex');
encrypted += cip.final('hex');
console.log(encrypted);
$ node text.js
weasdaf //


but when i use in component,has a mistake
sorry, createCipher is not implemented yet
why?
Not related to Vue.js .
Most helpful comment
Not related to Vue.js .