Encodes a string by inverting the bytes and then reversing them.
This is an in-place operation.
the byte array to encode
Encodes a string by inverting the bytes and then reversing them.
This is an in-place operation.