Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeSharedSecret ¶
ComputeSharedSecret computes an Elliptic Curve Diffie Hellman shared secret out of one public key and another secret key.
The public key and secret key for this can be either hex or bech32 formatted, since this is easily determined by reading the first 4 bytes of the string
func Decrypt ¶
Decrypt decrypts a content string using the shared secret key. The inverse operation to message -> Encrypt(message, key).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.