I want to share my way to convert a string to Base64 and back. Let me note that presented method is not the fastest, but it has one important advantage – it works OOB, without CLR functions. We need a test database and a table to use as an example:
An example of a string conversion to Base64:
An example of reverse conversion: