Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# encrypt decrypt string

public static string Base64Decode(string base64EncodedData)
{
   var base64EncodedBytes = System.Convert.FromBase64String(base64EncodedData);
   return System.Text.Encoding.UTF8.GetString(base64EncodedBytes);
}
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 :: asp net bootstrap 5 navigation bar 
Csharp :: how consider the first caracter in Split c# 
Csharp :: regular expression for website url validation in c# 
Csharp :: get normal from 3 points 
Csharp :: print an array c# 
Csharp :: repeat 10 timesw c# 
Csharp :: hash password with salt c# 
Csharp :: how to pause physics in unity c# 
Csharp :: remove carriage returns from string c# 
Csharp :: invert string c# 
Csharp :: c# convert string to int 
Csharp :: c# list remove duplicate items 
Csharp :: import time C# 
Csharp :: unity random 
Csharp :: initialize ConsoleLoggerProvider in EF core 
Csharp :: c# hello world 
Csharp :: how to get the current time in milliseconds .net 
Csharp :: Unity c#loading a scene after a few seconds 
Csharp :: convert ienumerable to list 
Csharp :: how to change a string variables value c# 
Csharp :: swaggergen add service not getting info in .net core 
Csharp :: how to split concat string c# 
Csharp :: dotnet new project 
Csharp :: c# join string array 
Csharp :: unity get child gameobject 
Csharp :: c# ftp file download 
Csharp :: c# combobox selected item 
Csharp :: c# string to b64 
Csharp :: unity c# check how many of an object exists 
Csharp :: c# unity 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =