otp

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package otp

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptTOTP

func DecryptTOTP(password []byte, salt []byte, totp string) (string, error)

DecryptTOTP 解密totp

func EncryptTOTP

func EncryptTOTP(password []byte, salt []byte, totp []byte) ([]byte, error)

EncryptTOTP 加密totp

Types

This section is empty.

Jump to

Keyboard shortcuts

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