Pavankumar Katakam
Sep 4, 2018 · 1 min read

In PHP, there is inbuilt function with openssl module which will take care of entire hybrid encryption. Please check http://php.net/manual/en/function.openssl-seal.php. This will take care of giving the both sealed and envelop keys in a single function during encryption and for decryption use the php http://php.net/manual/en/function.openssl-seal.php. Open function takes sealed and envelop key so that it will decrypt to the original value.