This API, used in conjunction with the Crypto API for generating the private and public key pair, provides the Hybrid Public Key encryption/decryption functionality.
While ciphering the data (an image) with a generated AES key and encrypting such key with the Public Key, it guarantees a fast way of ciphering all the info you need and a way of concealing such AES key on the very own payload of the cypher.
On the other side, the AES key is extracted from the ciphered payload via the private key, and all the precious data is then unveiled via decryption with the AES key previously decrypted.
HPKE API:
- improved exposed server actions' descriptions;
HPKE demo:
- improved the labels on the .oap file demo (had misleading labels, making the impression the logic was all wrong);