encoding

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 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

func DecodeInt6 added in v0.9.0

func DecodeInt6(b byte) int

func EncodeCrypt3 added in v0.8.0

func EncodeCrypt3(raw []byte) []byte

crypt(3) uses a slightly different Base64 scheme. Also called hash64 in PassLib

func EncodeInt6 added in v0.9.0

func EncodeInt6(val int) byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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