Documentation
¶
Index ¶
Constants ¶
View Source
const (
IncorrectPassError = "incorrect pass"
)
IncorrectPassError defines the error message for incorrect password
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
Decrypt decrypts the provided note with the aad, returning decrypted note and errors, if any
func DecryptAAD ¶
DecryptAAD checks if the data corresponds with the provided pass returns decrypted AAD and errors, if any
func Encrypt ¶
Encrypt encrypts a note with the pass and returns an encrypted AAD and encrypted note
func RandString ¶
RandString generates a random string of n letters long
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.