Saturday, May 20, 2023

How to convert plain string to base64 string in C#?


In C# it is very easy to convert plain string to base64 string. We only have to use System and System.Text namespace in code for this conversion. Both namespaces are by default present in .NET Framework/Core.

Encode:

Decode:

Demo:

Output:


No comments:

Post a Comment

Will it be possible to live on Mars, as Elon Musk has said?

Elon Musk has expressed his ambition to establish a human presence on Mars in the future. While living on Mars is a long-term goal for Space...