lib

package
v0.0.0-...-0efd5c0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deserialize

func Deserialize(data string) (models.Storage, error)

Deserialize deserializes the storage from a string

func Export

func Export(data models.Storage) ([]byte, error)

Export exports the storage as a binary

func GenerateKey

func GenerateKey(vaultKey []byte, siteURL string, counter, keyType, encodingType int) (string, error)

GenerateKey generates a key for a specified site

func GenerateVaultKey

func GenerateVaultKey(name, password string) []byte

GenerateVaultKey generates the vault key that can be used for further key generation

func GenerateVerificationBytes

func GenerateVerificationBytes(password string) []byte

GenerateVerificationBytes generates a hash truncated to two bytes used for vault password checks

func Import

func Import(data []byte) (models.Storage, error)

Import imports the storage binary

func Serialize

func Serialize(data models.Storage) (string, error)

Serialize serializes the storage into a string

func VerifyVaultPassword

func VerifyVaultPassword(password string, verificationBytes []byte) bool

VerifyVaultPassword verifies the vault password using the two byte hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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