Skip to content

Conversation

FajarKim
Copy link

@FajarKim FajarKim commented Dec 15, 2024

This PR adds two new encoding methods, Base2MSBF (Most Significant Bit First) and Base2LSBF (Least Significant Bit First), to the Base64 module.

Key Features

  • Base2MSBF: Encodes data with the most significant bit first.
  • Base2LSBF: Encodes data with the least significant bit first.
  • Corresponding decoding methods are implemented to revert encoded strings back to their original byte format.

@ghost
Copy link

ghost commented Dec 15, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Dec 15, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@picnixz
Copy link
Member

picnixz commented Dec 15, 2024

Please, before opening a PR, wait for the issue to be accepted as is. I decided that such feature should be first discussed on discourse and that it should not be in base64 as the latter is for RFC 4648. In addition, please read the https://devguide.python.org/ before opening a PR. There are mandatory steps and instructions to follow.

@picnixz picnixz closed this Dec 15, 2024
@picnixz picnixz changed the title Add Base2 encoding methods (Base2MSBF and Base2LSBF) to the Base64 module gh-127977: Add Base2 encoding methods (Base2MSBF and Base2LSBF) to the Base64 module Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants