Algorithms and libraries to encode the data in different formats in Visual Basic 6 (VBA)