Zero Packer

← To all experiments

Zero Width Packer

This experiment is made with favicon state-control.

What's This?

This coder transforms Unicode strings into new ones consisting of any set of symbols (from 3 to 36 ones) You can also, decode a resulting string by pressing “Copy packed” button.

How Can I Use the Zero-Width Packer?

The packer can be used for steganography with zero-width symbols or as a non-safe coder.

Encoding and decoding

Core code is quite small.

The functions convert every character in an input string to its Unicode number. The number is converted to a number that is base N. N is equal to the number of characters for encoding minus 1. We have minus 1 because the last character is used as a separator. Then each number is mapped to a corresponding symbol for encoding.

Fork me on GitHub