Here is an quick example how to encode/decode a string to base64. This example works already on .net core 2.0 or above.

Read More