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