1 var crypto = require('crypto');
2 
3 var hash = crypto.createHash('sha256');// sha256或者md5
4 
5 hash.update('123456');
6 
7 var res = hash.digest('hex');
8 
9 console.log(res);// 8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92

参考地址戳 这儿~

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-11-13
  • 2022-12-23
  • 2022-01-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案