cryptography

package
v0.0.0-...-16ba335 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptEncryptedField

func DecryptEncryptedField(app fyne.App, key string, masterPassword string, encode bool) (string, error)

func DecryptEncryptedFieldBytes

func DecryptEncryptedFieldBytes(app fyne.App, key string, masterPassword string) ([]byte, error)

func DecryptEncryptedFields

func DecryptEncryptedFields(app fyne.App, masterPassword string) error

func DecryptWithPassword

func DecryptWithPassword(ciphertext []byte, password string) ([]byte, error)

func EncryptPlainField

func EncryptPlainField(app fyne.App, key string, plaintext []byte, masterPassword string) error

func EncryptPlainFields

func EncryptPlainFields(app fyne.App, masterPassword string) error

func EncryptWithPassword

func EncryptWithPassword(plaintext []byte, password string) ([]byte, error)

func GetKey

func GetKey(password string, salt []byte) []byte

GetKey returns a 32-bytes key derived from the password and salt

func HashPassword

func HashPassword(password string) []byte

func ReEncryptEncryptedFields

func ReEncryptEncryptedFields(app fyne.App, oldMasterPassword, newMasterPassword string) error

func ResetEncryptedFields

func ResetEncryptedFields(app fyne.App)

func VerifyPassword

func VerifyPassword(password string, hash []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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