Documentation
¶
Overview ¶
Package securemessage handles generation and use of one-shot asymmetric encrpyption keys used in LRPC messages
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoPublicKey = errors.New("No public key")
)
common errors
Functions ¶
func DecryptString ¶
DecryptString decrypts the slice of based64-encrypted strings into a single text string
func EncryptString ¶
EncryptString encrpyts the payload using the given public key. This is usually done by the LRPC client when it needs to send sensitive information (e.g., password) in LRPC message. A slice of base64-encoded strings is returned as this function need to chunk the input string into one or more blocks for encryption.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.