Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

convert to base64 c#

public static string Base64Encode(string plainText) {
  var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText);
  return System.Convert.ToBase64String(plainTextBytes);
}
Comment

convert base64 string to string c#

byte[] data = Convert.FromBase64String(encodedString);
string decodedString = Encoding.UTF8.GetString(data);
Comment

convert to base64 c#

public static string Base64Decode(string base64EncodedData) {
  var base64EncodedBytes = System.Convert.FromBase64String(base64EncodedData);
  return System.Text.Encoding.UTF8.GetString(base64EncodedBytes);
}
Comment

c# string tob64

string encodedStr = Convert.ToBase64String(Encoding.UTF8.GetBytes("inputStr"));
Comment

c# string from b64

string inputStr = Encoding.UTF8.GetString(Convert.FromBase64String(encodedStr));
Comment

PREVIOUS NEXT
Code Example
Csharp :: switch case c# contains 
Csharp :: yanderedev 
Csharp :: difference two list c# 
Csharp :: c# distinct by property 
Csharp :: function in c# to do addition 
Csharp :: bitmap to imagesource c# 
Csharp :: unity pick random number 
Csharp :: Unity Destroy gameObject upon collision 
Csharp :: response redirect new tab 
Csharp :: how to put double quotes in a string c# 
Csharp :: c# update control from another thread 
Csharp :: when was the third world war 
Csharp :: how to reference a UI element in unity 
Csharp :: see if two string arrays are equal c# 
Csharp :: c# check lenght 
Csharp :: array to list c 
Csharp :: check if internet is connected with c# winforms 
Csharp :: csharp datagridview filter column 
Csharp :: c# iterate enum 
Csharp :: Pass Querystring in C# httpclient 
Csharp :: c# break from foreach method 
Csharp :: max value data annotation c# 
Csharp :: c# generate unique key 
Csharp :: all possible substrings of a string 
Csharp :: dotnet core 3.1 get the user that just logged in 
Csharp :: c# print decimal with zero at the end 
Csharp :: c# remove char from string 
Csharp :: .net core web app get dll name 
Csharp :: get array from column datatable c# 
Csharp :: basic of c# sockets 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =