PTCT_EN(data): Takes some text and encodes it into Base64 (like turning it into a scrambled message). PTCT_DE(encoded_data): Takes the scrambled message and turns it back into the original text.
First the data is converted into a binary string, divided into 6 bit chunks and stored. Each 6 bit chunk can be mapped to one of 64 possible values which are ASCII characters based on the base64 table ...