node-steam-appticket
node-steam-appticket copied to clipboard
How to convert a ticket from a string to hexadecimal
I assume by "string" you mean a binary string?
let binaryString = getBinaryStringSomehow();
let buffer = Buffer.from(binaryString, 'binary');
let hexadecimal = buffer.toString('hex');
let binaryString = "261551"; let buffer = Buffer.from(binaryString, 'binary'); let ticket = buffer.toString('hex'); const decryptionKey = '16a71c423df683e98af58e40c60a6fc8087dc360f977a73c7d138e8d26b99062'; console.log(AppTicket.parseEncryptedAppTicket(ticket, decryptionKey));
the output is null, but the ticket and decryptionKey is right, could you help me?
"261551" doesn't look like a binary string.