redpanda-data / redpanda-data/benthos

[Bloblang] Add "base32" encoding to "encode"

Open
#441 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
571
Forks
120
Avg merge
2d 1h
Merged PRs (30d)
18

Description

The "bloblang" method encode supports hex (base16) and base64 encodings (among others).

It would be useful if also base32 could be supported, since the given case-insensitivity makes it easier to pass to and remember base32 encodings by humans. Furthermore, base32 is also part of the Go encoding standard library, so no third-party package would be needed.

Thank you for considering this proposal

BTW: Could all available encoding methods be added to the documentation: https://docs.redpanda.com/connect/guides/bloblang/methods/#encode ? Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Bloblang encode method entry point and compare its existing encodings with Go's encoding/base32 package. Check the encode documentation at the linked methods page as well. Done means base32 is supported and the documentation lists the available encoding methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
stream-processing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.