# base64 **Repository Path**: ArkTSCentralRepository/base64 ## Basic Information - **Project Name**: base64 - **Description**: base64 是在 ArkTS 中实现的库,提供基本的 Base64 编码/解码功能,支持将 Base64 字符串转换为字节数组,或将字节数组转换为 Base64 字符串。 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-21 - **Last Updated**: 2024-11-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # base64 基于[base64-js](https://www.npmjs.com/package/base64-js)原库1.5.1版本进行适配, 所有功能代码已经转换为`ArkTS`文件 ## Install ```sh ohpm install base64 ``` ## Description `base64` does basic base64 encoding/decoding in ArkTS. ## methods `base64` has three exposed functions, `byteLength`, `toByteArray` and `fromByteArray`, which both take a single argument. * `byteLength` - Takes a base64 string and returns length of byte array * `toByteArray` - Takes a base64 string and returns a byte array * `fromByteArray` - Takes a byte array and returns a base64 string ## license MIT