@fox
function challengeMe(error){
return Client.Web.Challenge.resolve(error,'phone')
.then(function(challenge){
console.log(challenge.type);
if(challenge.type !== 'phone' || challenge.type !== 'email') return;
await BAS_API("solve_base64("manual","BAS_USER_ASK" + "Ð—Ð°Ð¿Ñ€Ð¾Ñ Ð½Ð¾Ð¼ÐµÑ€Ð° Ð´Ð»Ñ " + VAR_ACCOUNT_LOGIN)!\nVAR_PHONE = _result()");
return challenge.phone('VAR_PHONE')
.then(function(){return challenge});
})
.then(function(challenge){
return challenge.code('123456');
})
.then(function(challenge){
return loginAndFollow(device, storage, user, password);
})
}
HMAC Generator MD5 модуль crypto-js
-
@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]]); -
Что надо БАСу? Я не понимаю.
