Horje
how to encode and decode a string in c# Code Example
how to encode and decode a string in c#
public static string encode(string text)
{
    byte[] mybyte = System.Text.Encoding.UTF8.GetBytes(text);
    string returntext = System.Convert.ToBase64String(mybyte);
    return returntext;
}

public static string decode(string text)
{
    byte[] mybyte = System.Convert.FromBase64String(text);
    string returntext = System.Text.Encoding.UTF8.GetString(mybyte);
    return returntext;
}
how to encode and decode a string in c#
0000000000000000000000000000000000000000000000000000000000000000




Csharp

Related
get folders in directory c# Code Example get folders in directory c# Code Example
c# datagridview hide row selector Code Example c# datagridview hide row selector Code Example
how to not overwrite a text file in c# Code Example how to not overwrite a text file in c# Code Example
c# get all bytes of a file Code Example c# get all bytes of a file Code Example
c# find longest string in a list Code Example c# find longest string in a list Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8