Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample example for Turbo-Base64 #22

Open
NamespaceAyush opened this issue Sep 29, 2023 · 1 comment
Open

Sample example for Turbo-Base64 #22

NamespaceAyush opened this issue Sep 29, 2023 · 1 comment

Comments

@NamespaceAyush
Copy link

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

@sergeevabc
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants