BACON The function BACON encodes or decodes a string with the Bacon algorithm. BACON(string, mode) mode: 1: encoding 0: decoding: