Turbo-Base64 icon indicating copy to clipboard operation
Turbo-Base64 copied to clipboard

Sample example for Turbo-Base64

Open NamespaceAyush opened this issue 2 years ago • 1 comments

Hey, Seems like a great library can you please provide a simple example of how to use this library? I having issues figuring a few things out like do I have to allocate the memory for the output buffer too after decoding, I think a sample simple example will help a lot of people.

Thank you

NamespaceAyush avatar Sep 29 '23 12:09 NamespaceAyush

Indeed, we need something more practical here, a CLI tool to try encoding and decoding with a switch to wrap lines. For example, what I use under Windows 7 x64.

$ busybox.exe base64 --help

BusyBox v1.37.0-FRP-5181-g5c1a3b00e (2023-08-18 12:16:29 BST)

Usage: base64 [-d] [-w COL] [FILE]

Base64 encode or decode FILE to standard output

        -d      Decode data
        -w COL  Wrap lines at COL (default 76, 0 disables)

$ busybox.exe base64 patch.zip > patch.zip.b64

sergeevabc avatar Jan 03 '24 02:01 sergeevabc