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

[Feature Request] stable interface for base64 encoding/decoding #1710

Closed
bgemmill opened this issue Sep 24, 2019 · 5 comments
Closed

[Feature Request] stable interface for base64 encoding/decoding #1710

bgemmill opened this issue Sep 24, 2019 · 5 comments
Assignees
Labels

Comments

@bgemmill
Copy link

This came up tangentially on Stack Overflow, would it be possible to promote the base64 encoding/decoding functions from the detail namespace?

They're really useful, and far and away cleaner than the other pure-boost approaches.

@vinniefalco
Copy link
Member

If I do that, I will have to improve the algorithms to hold them to a higher standard, and they will need documentation and more robust tests. I will consider it!

@yost-jacob
Copy link

since you already rely on openssl wouldn't it make sense to just use the openssl tools? Something like this on Stack Overflow?

certainly solves the algorithm problem.

@vinniefalco
Copy link
Member

You can just copy the code, it is small enough and I think copying it creates the least headache.

@sehe sehe self-assigned this Jul 28, 2022
@sehe
Copy link
Collaborator

sehe commented Jul 28, 2022

@vinniefalco Can I refine this story to the point where we can make it happen? Perhaps it should become part of a more general purpose library. Could it be part of Boost Strings (algorithms) or even Core?

Reason I think it's worth it is because of continuous support on SO. And in part the fact that the "other" Boost facility is ... terrible. Truly terrible (see https://stackoverflow.com/a/71933410/85371 (boostorg/serialization#254), https://stackoverflow.com/a/72034755/85371, and more recently this thread https://stackoverflow.com/questions/70624519/boost-gzip-how-to-output-compressed-string-as-text/70625599#comment129071097_70625599)

@vinniefalco
Copy link
Member

First check if Boost doesn't already have something. Second, yes I think there is room for prescription-strength radix conversions (think gigabytes per second streaming speed). However this doesn't belong in beast, and I don't have the bandwidth to think through a proper solution at the moment. Perhaps you should ask on the list?

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

No branches or pull requests

4 participants