Cipher Options API
Data can be encrypted using a cipher options handle. There are three types of encryption:
|PLAIN||Data is not encrypted.|
|SYMMETRIC||Data is encrypted using symmetric encryption.|
|ASYMMETRIC||Data is encrypted using asymmetric encryption.|
This option is used when you want to publish data publicly. Anyone will be able to read it.
This type of encryption is used when encrypting data for yourself. Only you will be able to read it.
This type of encryption is used when encrypting data for someone else to read. After encrypting data using the public encryption key of someone else, only that person will be able to read it.
We use a particular combination of Curve25519, Blake2B, Salsa20 and Poly1305 as specified here.
Asymmetric encryption is detailed in RFC 41 – Low Level API.