Crate zalgo_codec_common
source ·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 byte they can not encode.
Enums
The error returned by the encoding and decoding functions that
interact with the file system.
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 encoded by
zalgo_encode
and decodes 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 ~2 times larger than the original in terms of bytes, and it
can be decoded 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.
This results in valid python code that should do the same thing
as the input.