Documentation ¶
Index ¶
- func Deserialize(data string) (models.Storage, error)
- func Export(data models.Storage) ([]byte, error)
- func GenerateKey(vaultKey []byte, siteURL string, counter, keyType, encodingType int) (string, error)
- func GenerateVaultKey(name, password string) []byte
- func GenerateVerificationBytes(password string) []byte
- func Import(data []byte) (models.Storage, error)
- func Serialize(data models.Storage) (string, error)
- func VerifyVaultPassword(password string, verificationBytes []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deserialize ¶
Deserialize deserializes the storage from a string
func GenerateKey ¶
func GenerateKey(vaultKey []byte, siteURL string, counter, keyType, encodingType int) (string, error)
GenerateKey generates a key for a specified site
func GenerateVaultKey ¶
GenerateVaultKey generates the vault key that can be used for further key generation
func GenerateVerificationBytes ¶
GenerateVerificationBytes generates a hash truncated to two bytes used for vault password checks
func VerifyVaultPassword ¶
VerifyVaultPassword verifies the vault password using the two byte hash
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.