backup

package
v0.0.0-...-61a4702 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backup

type Backup struct {
	OTPKeys []*otp.OTPKey
	// contains filtered or unexported fields
}

Backup is a struct for an andOTP backup

func NewBackup

func NewBackup(content []byte) (*Backup, error)

func (*Backup) Decrypt

func (b *Backup) Decrypt(password string) error

Decrypt decrypts the backup

func (*Backup) IsEncrypted

func (b *Backup) IsEncrypted() bool

IsEncrypted returns true if the backup is currently encrypted

Jump to

Keyboard shortcuts

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