Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-content/plugins/updraftplus
NameTypeSizeActions
📁 .. Folder -
📄 SECURITY.md File 1357
Edit Download
📄 admin.php File 329647
Edit Download
📄 backup.php File 234328
Edit Download
📁 central Folder -
📄 changelog-old.txt File 127258
Edit Download
📄 class-updraftplus.php File 26358
Edit Download
📁 css Folder -
📄 example-decrypt.php File 1200
Edit Download
📁 images Folder -
📁 includes Folder -
📄 index.html File 4448
Edit Download
📁 js Folder -
📁 languages Folder -
📁 methods Folder -
📄 options.php File 13227
Edit Download
📄 readme.txt File 171156
Edit Download
📄 restorer.php File 246858
Edit Download
📁 templates Folder -
📄 updraftplus.php File 17435
Edit Download
📁 vendor Folder -

View File: example-decrypt.php

<?php
// @codingStandardsIgnoreStart
/*
To dump the decrypted file using the given key on stdout, call:

rijndael_decrypt_file('../path/to/file.crypt' , 'mykey');

Thus, here are the easy instructions:

1) Add a line like the above into this PHP file (not inside these comments, but outside)
e.g.
rijndael_decrypt_file('/home/myself/myfile.crypt' , 'MYKEY');

2) Run this file (and make sure that includes/Rijndael.php is available, if you are moving this file around)
e.g. 
php /home/myself/example-decrypt.php >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

}