gopass: Index | Files

package otp

import ""


Package Files


func Calculate Uses

func Calculate(ctx context.Context, name string, sec store.Secret) (twofactor.OTP, string, error)

Calculate will compute a OTP code from a given secret

func WriteQRFile Uses

func WriteQRFile(ctx context.Context, otp twofactor.OTP, label, file string) error

WriteQRFile writes the given OTP code as a QR image to disk

Package otp imports 6 packages (graph). Updated 2019-03-28. Refresh now. Tools for package owners.