> For the complete documentation index, see [llms.txt](https://cajac.gitbook.io/ctf-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cajac.gitbook.io/ctf-notes/encoding-and-decoding/basex/base65536.md).

# Base65536

`base65536` encodes data in a similar fashion to [`base64`](https://en.wikipedia.org/wiki/Base_64), but its alphabet, instead of being 64 characters long, is 65536 characters long. This means, one can map 16 bits of data into a single unicode codepoint.

## Convert with Binary Refinery

You can convert from `base65536` with [b65536](https://binref.github.io/#refinery.b65536) from Binary Refinery

```bash
┌──(kali㉿kali)-[/mnt/…/Huntress_CTF/Huntress_CTF_2024/Miscellaneous/Base-p-]
└─$ source ~/Python_venvs/Binary_Refinery/bin/activate
                                                                                                                                                                                            
┌──(Binary_Refinery)─(kali㉿kali)-[/mnt/…/Huntress_CTF/Huntress_CTF_2024/Miscellaneous/Base-p-]
└─$ emit based.txt| b65536
H4sIAG0OA2cA/+2QvUt6URjHj0XmC5ribzBLCwKdorJoSiu9qRfCl4jeILSICh1MapCINHEJpaLJVIqwTRC8DQ5BBQ0pKtXUpTej4C4lBckvsCHP6U9oadDhfL7P85zzPTx81416LYclYgEAOLgOGwKgxgnrJKMK8j4kIaAwF3TjiwCwBejQQDAshK82cKx/2BnO3xzhmEmoMWn/qdU+ntTUIO8gmOw438bbCwRv3Y8vE2ens9y5sejat497l51sTRO18E8j2aSAAkixqhrKFl8E6fZfotmMlw7Z3NKFmvp92s8+HMg+zTwaycvVQlnSn7FYW2LFYY0+X18JpB9LCYliSm6LO9QXvfaIbJAqvNsL3lTP6vJ596GyKIaXBnNdRJahnqYLnlQ4d+LfbQ91vpH0Y4NSYwhk8tmv/5vFZFnHWrH8qWUkTfgfUPXKcFVi+5Vlx7V90OjLjZqtqMMH9FhMZfGUALnotancBQAA

┌──(Binary_Refinery)─(kali㉿kali)-[/mnt/…/Huntress_CTF/Huntress_CTF_2024/Miscellaneous/Base-p-]
└─$ emit based.txt| b65536 | b64
mg�퐽KzQ▒ǏE�
            ��o0K
                 ���hJ+���� ��
)*�ԥ7��.%�/�!��Ohi��|�����=<|׍z-�%b8��  �$�
�>$!�0t�����@0,��6p������I�1i���>��� � ��8���
                                             oݏ/g����ڷ�{��lM��O#٤�H��▒�_��_������}��>�>�<▒���BYҟ�X[b�a�>__      �K      �bJn�;����l�*��
                                                                                                                                       �T���y���(��s]D����
                                                                                                                                                          �T8w��mu���c�Rd�ٯ���dY�Z���e$M�P��pUb��eǵ}��ˍ�����XLe���赩�

┌──(Binary_Refinery)─(kali㉿kali)-[/mnt/…/Huntress_CTF/Huntress_CTF_2024/Miscellaneous/Base-p-]
└─$ emit based.txt| b65536 | b64 | file -
/dev/stdin: gzip compressed data, last modified: Sun Oct  6 22:25:49 2024

```

## Convert with online services

BetterConverter: <https://www.better-converter.com/Encoders-Decoders/Base65536-Decode>

## Resources

Binary Refinery - Documentation: <https://binref.github.io/>

Binary Refinery - GitHub: <https://github.com/binref/refinery/>
