secfac

package
v0.0.0-...-e2fe045 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var German = strings.Split(strings.TrimSpace(german), "\n")

German is an unoffical slice of mnemonic words taken from Sebastian Kaffl https://github.com/SebastianFloKa/bips/blob/d97608bf8679f79b54b1f5ee893f1704f34a088f/bip-0039/german.txt

Functions

func BIP39CreateRecoveryWordList

func BIP39CreateRecoveryWordList() []string

func BIP39ToString

func BIP39ToString(words []string) string

func BIP39Verify

func BIP39Verify(wordsEntered []string, wordsSaved string) bool

func TOTPGenerateKey

func TOTPGenerateKey(userEmail string) (*otp.Key, error)

func TOTPGetQR

func TOTPGetQR(key *otp.Key) ([]byte, error)

func TOTPValidate

func TOTPValidate(passcode string, key *otp.Key) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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