sha256:

  1.使用cnpm安装 :cnpm install js-sha256

  2.然后在组件中methods定义方法,在调用

 

 let sha256 = require("js-sha256").sha256//这里用的是require方法
     this.password = sha256(this.passWord)//要加密的密码
     console.log(this.password)//这就是你加密之后的密码
 }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案