Encrypt encrypts the (binary) message and returns a hex-encoded binary ciphertext or an error if the encryption failed. If the message is empty, the ciphertext is also empty and no error is returned.
(ctx context.Context, message []byte)
| 12 | // |
| 13 | // If the message is empty, the ciphertext is also empty and no error is returned. |
| 14 | Encrypt(ctx context.Context, message []byte) (string, error) |
| 15 | |
| 16 | // Decrypt takes a hex-encoded binary ciphertext and decrypts it or returns an error if the decryption |
| 17 | // failed. |
no outgoing calls