public class Base64:
Base64 and Base64URL text helpers.
These helpers operate on text values. Binary payloads returned by the crypto API are already exposed as Base64 strings in result objects such as AESCipherText and Digest.
import klyn.cryptography
encoded = Base64.encodeText("hello")
print(Base64.decodeToText(encoded))| Modifier and Type | Member | Description |
|---|---|---|
| public static | decodeToTextdecodeToText(value as String) as String throws CryptoException: |
Decodes a standard Base64 string to text. |
| public static | encodeTextencodeText(text as String) as String throws CryptoException: |
Encodes a text value as standard Base64. |
| public static | urlDecodeToTexturlDecodeToText(value as String) as String throws CryptoException: |
Decodes a URL-safe Base64 string to text. |
| public static | urlEncodeTexturlEncodeText(text as String) as String throws CryptoException: |
Encodes a text value as URL-safe Base64. |