Base64
classin packageklyn.cryptography
public class Base64:
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))
Methods
Modifier and Type Member Description
public static decodeToText
decodeToText(value as String) as String throws CryptoException:
Decodes a standard Base64 string to text.
public static encodeText
encodeText(text as String) as String throws CryptoException:
Encodes a text value as standard Base64.
public static urlDecodeToText
urlDecodeToText(value as String) as String throws CryptoException:
Decodes a URL-safe Base64 string to text.
public static urlEncodeText
urlEncodeText(text as String) as String throws CryptoException:
Encodes a text value as URL-safe Base64.