-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
kind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)need/author-inputNeeds input from the original authorNeeds input from the original authorneed/triageNeeds initial labeling and prioritizationNeeds initial labeling and prioritization
Description
For example with b32.NewEncoder(b32.NewEncodingCI("abcdefghijklmnopqrstuvwxyz234567").WithPadding(b32.NoPadding), out), encoding Decentralize everything!!! yield birswgzloorzgc3djpjssazlwmvzhs5dinfxgoijbeeswgzlo instead of birswgzloorzgc3djpjssazlwmvzhs5dinfxgoijbee.
Note the swgzlo suffix, which is taken from the beginning of the encoding buffer, bytes 3 to 8.
This has been fixed upstream (in the go stdlib) with golang/go@10529a0.
To be honest, I don't see the point why go-base32 exist anymore, as the original reason for the fork was to "add option for raw encoding", which exist in the stdlib since golang/go@5f4f751
Maybe go-base32 should be retired entirely?
smoyer64 and EnchanterIO
Metadata
Metadata
Assignees
Labels
kind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)need/author-inputNeeds input from the original authorNeeds input from the original authorneed/triageNeeds initial labeling and prioritizationNeeds initial labeling and prioritization