How to get the hash of a file and save it to variable, so i can use it later on?? (Like in the code example)

后端 未结 0 581
花落未央
花落未央 2021-02-02 08:50

I am only able to print file hash in logs with this code:

var fs = require(\'fs\');
var crypto = require(\'crypto\');

// the file you want to get hash of    
var         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题