Expand description

A crate for converting an ASCII text string or file to a single unicode character. Can also do the same to python code while still letting the code run as before by wrapping it in a decoder. This crate provides the non-macro functionality of the crate zalgo-codec.

Structs

The error returned by the encoding functions if they encounter a character they can not encode. Contains a string that references which type of character and which line caused the error.

Functions

Decodes the contents of a file that has been encoded with encode_file and stores the result in another file.
Encodes the contents of the file and stores the result in another file. If carriage return characters are found it will print a message and attempt to encode the file anyway by ignoring them.
Encodes the contents of the given file and stores the result wrapped in a decoder in another file. This file will still work the same as the original python code. If the source file contains carriage return characters this function will print a message and then attempt to encode the file anyway by ignoring them.
Takes in a string that was compressed by zalgo_encode and decompresses it to an ASCII string.
Takes in an ASCII string and “compresses” it to zalgo text using a reversible encoding scheme. The resulting string should only take up a single character space horizontally when displayed (though this can vary between platforms depending on how they deal with unicode). The resulting string will be larger than the original in terms of bytes, but it can be decompressed to recover the original string using zalgo_decode.
zalgo-encodes an ASCII string containing python code and wraps it in a decoder that decodes and executes it.