lcp

package
v0.0.0-...-4a954cd Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHashPassphrase

func CheckHashPassphrase(publication *models.Publication, hashPassphrase []byte) bool

CheckHashPassphrase check if the hash is good by decrypting the key check and compare it to the license id

func CheckPassphrase

func CheckPassphrase(publication *models.Publication, passphrase string) bool

CheckPassphrase create and store the hash and call the check for hashed pass phrse

func DecryptData

func DecryptData(publication *models.Publication, link models.Link, reader io.ReadSeeker) (bytes.Buffer, error)

DecryptData decrypt data from the stream

func HasGoodKey

func HasGoodKey(publication *models.Publication) bool

HasGoodKey check if the Publication contains hashed pass phrase or pass phrase and these information are good

Types

This section is empty.

Jump to

Keyboard shortcuts

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