The online tool is correct, especially since it outputs the right hidden message and mine is only close. I have no idea of their algorithm because it's closed source and the only other place I could find a similar algorithm was that codegolf stackexchange link.