encrypt()
Last updated
Was this helpful?
Last updated
Was this helpful?
The encrypt
function encrypts the given data
using the given public_key
(see ) and the . It returns a Base64-encoded string with the encrypted data.
Public keys are expected to be supplied in format.
They can be provided as part of an ,
For X.509 certificates the -----BEGIN CERTIFICATE-----
and -----END CERTIFICATE-----
boundaries may be omitted. They are required, however, if the certificate is stored together with other data, such as the accompanying private key.
or in :