This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const crypto = require('crypto') | |
const fs = require('fs') | |
// Constants | |
const PACKAGE_NAME = 'com.supercell.clashroyale' | |
const AES_MODE_CBC = 'cbc' | |
const AES_MODE_ECB = 'ecb' | |
const AES_IV_KEY = 'fldsjfodasjifudslfjdsaofshaufihadsf' | |
class AESCipher { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Crypto.Cipher import AES | |
import base64 | |
import hashlib | |
import xml.etree.ElementTree | |
import sys | |
package_name = "com.supercell.clashroyale" | |
def build_storage_new_key(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Long = require('long') | |
var tagChars = '0289PYLQGRJCUV' | |
module.exports = { | |
tag2id: (tag) => { | |
if (tag === undefined || typeof tag !== 'string') return false | |
let id = 0 | |
let tagArray = tag.split('') | |
for (let a = 0; a < tagArray.length; a++) { |