klyn.cryptography.Base64.urlDecodeToText
method
public static urlDecodeToText(value as String) as String throws CryptoException:
Description
Decodes a URL-safe Base64 string to text.
import klyn.cryptography

value = Base64.urlEncodeText("hello")
print(Base64.urlDecodeToText(value))
Parameters
  • value URL-safe Base64 input.
Returns
Decoded text.
Throws
  • CryptoException when the value is malformed. ```klyn import klyn.cryptography value = Base64.urlEncodeText("hello") print(Base64.urlDecodeToText(value)) ```