misc

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug   = false
	Name    = "yubiserv"
	Prefix  = "YSR"
	Build   = "now"
	Version = "dev"
)

Functions

func Dvorak2modhex

func Dvorak2modhex(dvModHex string) string

Dvorak2modhex converts OPT in Dvorak keyboard layout to standard modhex OTP.

func Hex2modhex

func Hex2modhex(hex string) string

Hex2modhex converts standard hex string to mod-hex format

func HexRand

func HexRand(count int) (string, error)

HexRand generates random hex string

func IsAlphanum

func IsAlphanum(s string) bool

IsAlphanum checks, if given string is alphanumeric

func IsDvorakModhex

func IsDvorakModhex(s string) bool

IsDvorakModhex checks, if given string is in Dvorak layout modhex encoding

func IsModhex

func IsModhex(s string) bool

IsModhex checks, if given string is in modhex encoding

func Modhex2hex

func Modhex2hex(modHex string) string

Modhex2hex converts mod-hex OPT to standard hex string.

func Rand

func Rand(count int) ([]byte, error)

Rand generates random bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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