Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PinGenerator ¶
type PinGenerator struct { }
PinGenerator implements logic for generating and verifying otp pin codes.
func NewPinGenerator ¶
func NewPinGenerator() *PinGenerator
NewPinGenerator creates a new instance of PinGenerator.
func (*PinGenerator) Generate ¶
func (p *PinGenerator) Generate(_ string) string
Generate generates a new pin based on challenge
Click to show internal directories.
Click to hide internal directories.