wordlist

package
v0.0.0-...-f56b055 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package wordlist provides a encoders and a decoder for WebWormhole codes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(code string) (slot int, pass []byte)

Encode returns the slot and pass encoded by code, trying all supported word lists supported in the default order. Invalid codes return a 0 slot and a nil pass.

func Encode

func Encode(slot int, pass []byte) string

Encode returns the string encoding of slot and pass using the default encoding, which is english-varint-slot.

func Match

func Match(prefix string) string

Match returns the first word in the word list that has prefix prefix, trying all supported word lists the default order. It returns the empty string if none match.

Types

This section is empty.

Jump to

Keyboard shortcuts

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