View Single Post
  #2  
Old 10-22-2022, 09:41
SilicaAndPina SilicaAndPina is offline
Guest
 
Join Date: Apr 2022
Posts: 3
Rept. Given: 0
Rept. Rcvd 2 Times in 1 Post
Thanks Given: 1
Thanks Rcvd at 32 Times in 3 Posts
SilicaAndPina Reputation: 2
"Version2" entitlements

Hello~ it seems as of 1.19, mojang changed the entitlement files that your contain pack's Content Keys

they added some extra encryption to it

the Entitlement Files now contain the header "Version2" and then a base64 string, decoding that string is an encrypted version of what was there in 1.18, and also what is there if you connected directly to the API and requested your inventory.

The encryption works as follows

1- locate the options.txt file; usually its at
%LOCALAPPDATA%/packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/minecraftpe/options.txt

read the "last_title_account_id" for example; 1D05A92F556ACCD5
append last_title_account_id to itself, resulting in 1D05A92F556ACCD51D05A92F556ACCD5
then XOR that with the constant "X(nG*ejm&E8)m+8c;-SkLTjF)*QdN6_Y"

the result of that XOR is the aes-128-cfb key required to decrypt the entitlement buffer, then you just read it the same way as before

which i dont think i actually explained earlier, if you want more details,
read the code

here is an updated verison to do all the new stuff they added:
Attached Files
File Type: zip McTools 2.zip (3.88 MB, 76 views)
Reply With Quote
The Following 18 Users Say Thank You to SilicaAndPina For This Useful Post:
CarrotStickCam (11-04-2022), grayr0ot (03-08-2023), niculaita (10-22-2022), NoneForce (10-22-2022), sh3dow (11-04-2022), Stingered (11-05-2022), TBQ (06-23-2023), UnknwnGaming (11-03-2022), user1 (03-11-2023), Yommy (02-22-2023)