Class Base64
Provides support for encoding and decoding base64-encoded content.
See https://en.wikipedia.org/wiki/Base64 for more details on the base64 encoding.
Inheritance
System.Object
Base64
Namespace: Perlang.Stdlib
Assembly: Perlang.Stdlib.dll
Syntax
public static class Base64 : object
Methods
| Improve this Doc View SourceDecode(String)
Decodes the given base 64 data.
Note that this method returns a string
; it is unsuitable for decoding binary content.
Declaration
public static string Decode(String base64Data)
Parameters
Type | Name | Description |
---|---|---|
String | base64Data | A base 64-encoded string. |
Returns
Type | Description |
---|---|
System.String | The decoded representation of |
Encode(String)
Encodes the given plain-text string in base64.
Note that this method inserts line breaks after every 76 characters in the string representation.
Declaration
public static string Encode(String plainText)
Parameters
Type | Name | Description |
---|---|---|
String | plainText | A plain-text string. |
Returns
Type | Description |
---|---|
System.String | The string representation in base64 of |