hexo/node_modules/cos-nodejs-sdk-v5/demo/crc64.js

9 lines
283 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
var crc64 = require("crc64-ecma182.js");
var path = require('path');
var hash = crc64.crc64(Buffer.from("hello!"));
console.log('string crc64:', hash);
crc64.crc64File(path.join(__dirname, "./demo.js"), function(err, hash) {
console.log('file crc64:', err || hash);
2023-09-25 15:58:56 +08:00
});