vueでrsa暗号化を使用


プロセス:
  :md5,rsa,base64
  :base64,rsa,  md5

依存関係のインストール:
npm i jsencrypt
npm i js-md5
npm i js-base64

グローバル導入:
import JsEncrypt from 'jsencrypt/bin/jsencrypt';
import md5 from 'js-md5';
let base64 = require('js-base64').Base64;

Vue.prototype.$jsEncrypt = JsEncrypt;
Vue.prototype.$md5 = md5;
Vue.prototype.$base64 = base64;

次の操作を行います.
let jse = new this.$jsEncrypt();
jse.setPublicKey(pubKey); //   rsa public key
let password = jse.encrypt(this.$md5(password)); //  password  

注意:
            base64  ,      jsencrypt   ,   encrypt     base64