← Back to Writeups
CUSTOMMediumCrypto

B3

XESXOR9/10/20261 min read
#crypto#custom#medium#concatenate-all-digits-as-one-#convert-big-integer-to-bytes#map-3-symbols-to-ternary-digit

B3

Platform: spbctf | Category: Crypto | Type: Challenge | Difficulty: Medium | OS: NA | Author: XESXOR | Date: 2026-03-08 | Status: Solved Techniques: Concatenate all digits as one big base-3 number, Convert big integer to bytes, Map 3 symbols to ternary digits

Summary

Task: 459 lines with 3 unique emoticons. Solution: Map emoticons to ternary digits (0,1,2), concatenate as one big base-3 number, convert to bytes to get the flag.

B3 — cryptokids20

Description

459 lines of 3 emoticons. Treat as one big base-3 number and convert to ASCII.

Solution

Map emoticons to 0,1,2. Concatenate all 459 digits. Convert entire base-3 number to bytes. Key: treat as ONE big number, not groups. ‍​‌‌​​‌​​​‌‌​​‌​​​​‌‌​‌​​​​‌‌‌​​‌​​‌‌​​​‌​​‌‌‌​​​​​‌‌​‌‌​​​‌‌​​​​‍