@muhyrla said in Как поместить кастом модуль в скомпилированную версию скрипта?:
Собственно всё в название.
@discovery-84 Все там есть, вот пример
const crypto = require('crypto');
const hmac = crypto.createHmac('md5', 'тут сикрет кей');
hmac.update('тут строка');
console.log(hmac.digest('hex'));
@discovery-84 said in HMAC Generator MD5 модуль crypto-js:
hmac.digest('hex')
[[HMAC_DIGEST]] = hmac.digest('hex');
@Oyasumi-Punpun
HMAC_DIGEST: ""
Выполняется но не записует данные.
полный код:
const crypto = require('crypto');
const hmac = crypto.createHmac('md5', [[KEY]]);
hmac.update([[DATA]]);
console.log(hmac.digest('hex'));
[[HMAC_DIGEST]] = hmac.digest('hex');
@discovery-84 said in HMAC Generator MD5 модуль crypto-js:
console.log(hmac.digest('hex'));
Дак вы уберите console.log(hmac.digest('hex'));
@discovery-84 Либо тогда уж так:
const crypto = require('crypto');
const hmac = crypto.createHmac('md5', [[KEY]]);
hmac.update([[DATA]]);
[[HMAC_DIGEST]] = hmac.digest('hex');
console.log([[HMAC_DIGEST]]);
Что надо БАСу? Я не понимаю.
