{"id":"reselim/base64","name":"base64","scope":"reselim","platform":"roblox","description":"A pretty fast Luau Base64 encoder","version":"3.0.0","latest":"3.0.0","versions":["1.0.0","2.0.0","2.0.1","2.0.2","2.0.3","3.0.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":["License identified from the packaged LICENSE file; the manifest declared none."],"licenseVerified":true,"dependencies":{},"integrity":"5336d33c9fdf95fb5a840ad251aa5aac8879f7e0aae866b4939281b13179fcfb","likes":0,"downloads":0,"install":"forest install reselim/base64","url":"https://forest.dev/p/roblox/reselim/base64","files":"https://api.forest.dev/ai/package/roblox/reselim/base64/files","readme":"# Base64\r\n\r\nA pretty fast Luau Base64 encoder\r\n\r\n## Installation\r\n\r\n### [Wally](https://wally.run/)\r\n\r\nAdd the following to your `wally.toml` under `[dependencies]`:\r\n\r\n```toml\r\nbase64 = \"reselim/base64@3.0.0\"\r\n```\r\n\r\n### Manual\r\n\r\n[Download the latest release](https://github.com/Reselim/Base64/releases/latest) from the releases page and drag it into Studio.\r\n\r\n## Usage\r\n\r\n```lua\r\nlocal Base64 = require(path.to.Base64)\r\n\r\nlocal data = buffer.fromstring(\"Hello, world!\")\r\n\r\nlocal encodedData = Base64.encode(data) -- buffer: \"SGVsbG8sIHdvcmxkIQ==\"\r\nlocal decodedData = Base64.decode(encodedData) -- buffer: \"Hello, world!\"\r\n\r\nprint(buffer.tostring(decodedData)) -- \"Hello, world!\"\r\n```\r\n\r\n## Benchmarks\r\n\r\nBenchmarks ran in Roblox Studio with a payload of **100,000,000** characters running on a **Ryzen 5900X** and **32GB RAM @ 3200MHz**, as of **2024/01/11**\r\n\r\n#### Native mode OFF:\r\n- Encode: 3303.27ms (30,273,037/s)\r\n- Decode: 3747.17ms (26,686,826/s)\r\n\r\n#### Native mode ON:\r\n- Encode: 461.23ms (216,813,496/s)\r\n- Decode: 596.37ms (167,680,012/s)","readmeTruncated":false}