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

base64decode C#

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

c# string to b64

string encodedStr = Convert.ToBase64String(Encoding.UTF8.GetBytes("inputStr"));
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 :: center an image horizontally and vertically 
Csharp :: ngrok for asp.net core 
Csharp :: how to check the tag of a collider in unity 
Csharp :: c# random number 
Csharp :: how to get ip address in c# 
Csharp :: check if gameobject is active 
Csharp :: unity get all by tag 
Csharp :: textmesh pro text unity 
Csharp :: unity get mouse position 
Csharp :: c# main file 
Csharp :: wpf numeric only textbox 
Csharp :: change height of rect transform unity 
Csharp :: get max enum value c# 
Csharp :: unity quit code 
Csharp :: C# get all child classes of a class 
Csharp :: unity check if key pressed 
Csharp :: linq unique count property 
Csharp :: how to move mouse in game c# 
Csharp :: csharp string to double 
Csharp :: c# string to sha256 
Csharp :: c# read json file into object 
Csharp :: c# try catch with error message 
Csharp :: c# convert seconds to hours minutes seconds 
Csharp :: how to split and get last index values in c# 
Csharp :: get the path of executable c# 
Csharp :: unity how to summon an object with code 
Csharp :: contains with ignore case c# 
Csharp :: how to make a pause feautre in unity 
Csharp :: check if belnd tree plaiying 
Csharp :: application server types in .net 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =