A python library for corrupting text and binaries.
Arguments:
binary
- abytes
object, to be corruptedcount
- anint
object, representing how many times to apply the corruption algorithm.
Returns corrupted bytes
.
Arguments:
s
- an ASCIIstr
object, to be corruptedcount
- anint
object, representing how many times to apply the corruption algorithm.
Returns a fully-printable corrupted str
. The reason why Unicode is not supported is because Unicode text, by its nature, is much harder to corrupt than ASCII text. (Being multiple bytes means that it's harder to corrupt it and still have it come out the other end decodable.