klyn.cryptography.Base64.urlDecodeToText
method

    public static urlDecodeToText(value as String) as String throws CryptoException:

Description

Decodes a URL-safe Base64 string to text.

Parameters

Parameter | Description
--- | ---
`value` | URL-safe Base64 input.

Returns

Decoded text.

Throws

- CryptoException when the value is malformed.

Example

    import klyn.cryptography

    value = Base64.urlEncodeText("hello")
    print(Base64.urlDecodeToText(value))