Skip to content

Add Base2 encoding methods (Base2MSBF and Base2LSBF) to the Base64 module #127977

@FajarKim

Description

@FajarKim

Feature or enhancement

Proposal:

I propose adding new encoding methods to the Base64 module to support Base2 encoding with two variations:

  • Base2MSBF (Most Significant Bit First)
  • Base2LSBF (Least Significant Bit First)

These methods are designed to enable bit-level encoding with configurable bit order:

  • Base2MSBF: Arranges bits from the most significant to the least significant.
  • Base2LSBF: Arranges bits from the least significant to the most significant.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions