+ README.md\n+ example.php\n + license
This commit is contained in:
12
example.php
12
example.php
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
require_once("./lib.php");
|
||||
@require_once("./config.inc.php");
|
||||
|
||||
// Check if the config succesfully loaded, or if the mandatory config fields are missing.
|
||||
if ( empty($config) || empty($config['key']) || empty($config['input']) ) {
|
||||
echo "Please copy the config.sample.inc.php to config.inc.php and change the configuration to match your needs.";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// Echo out the results
|
||||
echo $encryptedData = encryptData($config['input'], $config['key'], 'AES-256-CBC', TRUE);
|
||||
Reference in New Issue
Block a user