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 to base64 c#

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

base64decode C#

string base64Encoded = "your-encoded-text";
string base64Decoded;
byte[] data = System.Convert.FromBase64String(base64Encoded);
base64Decoded = System.Text.ASCIIEncoding.ASCII.GetString(data);
Comment

C# Base64 Encode


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

Comment

PREVIOUS NEXT
Code Example
Csharp :: .net Core Return File like File Server 
Csharp :: change sprite of a sprite unity 
Csharp :: enum get all values c# 
Csharp :: how to move a gameobject to another object 
Csharp :: error provider c# 
Csharp :: c# map 
Csharp :: print content of array c# 
Csharp :: how set function when props update in vue 
Csharp :: C# How to read users input and display it 
Csharp :: c# append text to file 
Csharp :: smtp check if email sent 
Csharp :: unity cos 
Csharp :: randomm number from 2 different ranges 
Csharp :: list removeall unity 
Csharp :: how to allow user import image c# 
Csharp :: convert object to array in c# 
Csharp :: c# color hex 
Csharp :: c# encode jpg hiight quality 
Csharp :: httpclient post c# example 
Csharp :: c# string contains any of list 
Csharp :: movetowards unity 
Csharp :: what does static mean in c# 
Csharp :: c# byte 
Csharp :: c# access session in class 
Csharp :: c# find substring in string 
Csharp :: {"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."} 
Csharp :: c# last char in string 
Csharp :: unity audio manager 
Csharp :: C# how to use if and else 
Csharp :: how to run a c# program 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =