gootp

package module
v0.0.0-...-7a7948d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: MIT Imports: 6 Imported by: 0

README

gootp

Implementation of RFC-2289 One-Time Password

Usage

Download and use from command line:

go get github.com/gildur/gootp

otp-md4 seq seed
otp-md5 seq seed
otp-sha1 seq seed

Or use in your code:

import (
	"github.com/gildur/gootp"
)
...
answer := gootp.OtpMd4(seq, seed, passphrase)
answer := gootp.OtpMd5(seq, seed, passphrase)
answer := gootp.OtpSha1(seq, seed, passphrase)

License

MIT

Documentation

Overview

Implementation of RFC-2289 One-Time Password

Index

Constants

This section is empty.

Variables

View Source
var WORDS = [2048]string{}/* 2048 elements not displayed */

Functions

func OtpMd4

func OtpMd4(seq int, seed string, passphrase string) string

func OtpMd5

func OtpMd5(seq int, seed string, passphrase string) string

func OtpSha1

func OtpSha1(seq int, seed string, passphrase string) string

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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