NabiKAZ / HamsterKombat-API

Unofficial API of hamster telegram game to get daily cards and Morse and...
https://nabikaz.github.io/HamsterKombat-API/
MIT License
18 stars 3 forks source link

Add puzzle mini game daily cipher #5

Closed ozzyclosy closed 1 month ago

ozzyclosy commented 1 month ago

Is it possible to add info about daily puzzle mini-game cipher?

Claiming puzzle mini game key seems like API call: POST https//:api.hamsterkombat.io/clicker/claim-daily-keys-minigame //examle for cipher 20.07.2024 {"cipher" : "MDQzNTUzNDk5N3wzMzA1NTY1NTk="}

ozzyclosy commented 1 month ago

cipher is personal, so its impossible

NabiKAZ commented 3 weeks ago

I remembered about Morse cipher, maybe you didn't mean it, but I wrote it here: https://twitter.com/NabiKAZ/status/1800811012641448322

As for the mini game, If you decode your own base64 code, you will understand. it is enough to enter a random number and Telegram ID with | Combine and base64 and send as cipher. Code like this:

const cipher = 0 + String(randomNumber(100000000, 999999999)) + '|' + telegramId;
const cipherEncoded = Buffer.from(cipher).toString('base64');
var res = await getUrl('https://api.hamsterkombatgame.io/clicker/claim-daily-keys-minigame', account, {
    cipher: cipherEncoded,
});