Class Base64
A utility class to perform base64 encoding and decoding as specified in RFC-1521.
public class Base64
- Inheritance
-
Base64
- Inherited Members
Remarks
A utility class to perform base64 encoding and decoding as specified in RFC-1521. See also RFC 1421.
Constructors
Base64()
public Base64()
Methods
Decode(byte[])
Decode the given byte[].
public static byte[] Decode(byte[] src)
Parameters
src
byte[]the base64-encoded data.
Returns
- byte[]
the decoded data.
Decode(string)
Decode the given string.
public static string Decode(string src)
Parameters
src
stringthe base64-encoded string.
Returns
- string
the decoded string.
Encode(byte[])
Encode the given byte[].
public static byte[] Encode(byte[] src)
Parameters
src
byte[]the source string.
Returns
- byte[]
the base64-encoded data.
Encode(byte[], int)
Encode the given byte[].
public static byte[] Encode(byte[] src, int lineFeed)
Parameters
src
byte[]the source string.
lineFeed
inta linefeed is added after
linefeed
characters; must be dividable by four; 0 means no linefeeds
Returns
- byte[]
the base64-encoded data.
Encode(string)
Encode the given string.
public static string Encode(string src)
Parameters
src
stringthe source string.
Returns
- string
the base64-encoded string.