decode

Summary

Decodes the input string using base64.

Usage

public static string decode(string data)

Returns

The decoded string.

Parameters

data

The base64-encoded data to decode.

Description

Decodes the input with the base64 decoding scheme defined in RFC 2045 - MIME (Multipurpose Internet Mail Extensions).

Examples

Basic Usage
1
2
3
4
5
6
7
import System;
import System.Encoding;
 
string encoded = "VGhpcyBpcyBhIHRlc3Qu";
 
string decoded = Base64.decode(encoded);
Console.log(decoded); // "This is a test."

Share

HTML | BBCode | Direct Link