<?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); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
central | Folder | 0777 |
|
|
css | Folder | 0777 |
|
|
images | Folder | 0777 |
|
|
includes | Folder | 0777 |
|
|
js | Folder | 0777 |
|
|
languages | Folder | 0777 |
|
|
methods | Folder | 0777 |
|
|
templates | Folder | 0777 |
|
|
vendor | Folder | 0777 |
|
|
admin.php | File | 306.82 KB | 0644 |
|
backup.php | File | 229.06 KB | 0644 |
|
changelog-old.txt | File | 124.28 KB | 0644 |
|
class-updraftplus.php | File | 294.81 KB | 0644 |
|
example-decrypt.php | File | 1.08 KB | 0644 |
|
index.html | File | 4.34 KB | 0644 |
|
options.php | File | 10.72 KB | 0644 |
|
readme.txt | File | 146.88 KB | 0644 |
|
restorer.php | File | 236.13 KB | 0644 |
|
updraftplus.php | File | 15.99 KB | 0644 |
|