How to make an Encode function based on this Decode function? I got the source code for the Decode function on the internet but I need the Encode function.
All my attempts to make it failed and the original coder isn't available at the moment.
The (original) code:
byte Decode(byte EncodedByte)
{
    EncodedByte ^= (byte)194;
    EncodedByte = (byte)((EncodedByte << 4) | (EncodedByte >> 4));
    return EncodedByte;
}
 
     
     
     
    