pybase64

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNonASCII = errors.New("string argument should contain only ASCII characters")

ErrNonASCII is the ValueError base64.b64decode raises for a str holding non ASCII characters

Functions

func B64Decode

func B64Decode(s string) ([]byte, error)

Decodes like base64.b64decode without validate, skipping non alphabet bytes and stopping at completed padding

func B64DecodeValidate

func B64DecodeValidate(s string) ([]byte, error)

Decodes like base64.b64decode with validate=True, binascii strict mode rejecting stray bytes and padding misuse

func URLSafeB64Decode

func URLSafeB64Decode(s string) ([]byte, error)

Decodes like base64.urlsafe_b64decode, the dash and underscore alphabet mapped onto the standard one first

Types

type Error

type Error struct{ Msg string }

Error is a binascii.Error raised by the decoder

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL