使用npm安装: npm install crypto --save

在需要使用的文件中引用crypto  import crypto from 'crypto'

使用方法:

var  md5 = crypto.createHash("md5");
    md5.update(this.password) //需要加密的密码
    var password = md5.digest('hex');  //password 加密完的密码

 

相关文章:

  • 2021-11-01
  • 2022-12-23
  • 2021-10-02
  • 2021-04-05
  • 2022-12-23
  • 2021-10-01
  • 2021-10-01
  • 2022-12-23
猜你喜欢
  • 2021-10-01
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2021-10-29
相关资源
相似解决方案