LinusU / LinusU/base32-decode

Data whose size is not a multiple of 8 bits gets lost when decoded.

Open
#1 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
9
Forks
4
PR merge metrics
No merged PRs in 30d

Description

> If the bit-length of the number to be encoded is not a multiple of 5 bits, then zero-extend the number to make its bit-length a multiple of 5.
>
> ⸺ https://www.crockford.com/base32.html

```javascript
require("base32-decode")("E", "Crockford").byteLength
// 0
```

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the supplied require("base32-decode")("E", "Crockford") example and trace the package's decoding entry point. Check the bit-length padding behavior described in the Crockford reference; done means inputs whose size is not a multiple of 8 bits retain their data instead of producing an empty result.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.