encoding

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package encoding provides custom encoding schemes which differ from the standard base64 provided in the stdlib.

Index

Constants

This section is empty.

Variables

View Source
var Pbkdf2B64 = base64.NewEncoding(encodePbkdf2).WithPadding(base64.NoPadding)

Pbkdf2B64 is an alternative base64 encoding used by pbkdf2. Basically it's `+` replaced by `.`. https://passlib.readthedocs.io/en/stable/lib/passlib.utils.binary.html#passlib.utils.binary.ab64_encode

Functions

func AutoDecodePbkdf2 added in v0.4.0

func AutoDecodePbkdf2(encoded string) ([]byte, error)

AutoDecodePbkdf2 decodes a base64 encoded string in the Pbkdf alternative format or base64.RawStdEncoding. Any padding is removed from the encoded string

Types

This section is empty.

Jump to

Keyboard shortcuts

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