output.sql.gz
3) You may then want to gunzip the resulting file to have a standard SQL file.
e.g.
gunzip output.sql.gz
*/
// @codingStandardsIgnoreEnd
/**
* An example of how to decrypt a file
*
* @param String $file Full path to file to decrypt
* @param String $key Key or salting to be used
*/
function rijndael_decrypt_file($file, $key) {
include_once(dirname(__FILE__).'/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php');
$rijndael = new Crypt_Rijndael();
$rijndael->setKey($key);
$ciphertext = file_get_contents($file);
print $rijndael->decrypt($ciphertext);// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- intentional binary output
}