diff --git a/src/configs/mockup/loadall.php b/src/configs/mockup/loadall.php
index d2da7ba..679d067 100644
--- a/src/configs/mockup/loadall.php
+++ b/src/configs/mockup/loadall.php
@@ -40,8 +40,8 @@
'csrf_security_level' => 'high', // Stop Attacks at what cost??
'retries_allowed_before_throttling' => 3, // Reties attempts allowed for login, before it throttles it...
'throttling_login_seconds' => 20, // Seconds to deny more login attempts
- 'password_hash' => PASSWORD_BCRYPT,
- 'password_hash_options' => ['cost' => 10], // Default=10. This is a good baseline cost, but you may want to consider increasing it depending on your hardware.
+ 'pepper_pwd' => 'SZFJXX]7HcwJjS]av3q8cUR',
+ 'salt_pwd' => 'fVN(P8nBNK3;tM88Kkku',
));
/* Contents of : on_sessions.php */
diff --git a/src/configs/mockup/on_security.php b/src/configs/mockup/on_security.php
index e44cb02..140130a 100644
--- a/src/configs/mockup/on_security.php
+++ b/src/configs/mockup/on_security.php
@@ -7,6 +7,6 @@
'csrf_security_level' => 'high', // Stop Attacks at what cost??
'retries_allowed_before_throttling' => 3, // Reties attempts allowed for login, before it throttles it...
'throttling_login_seconds' => 20, // Seconds to deny more login attempts
- 'password_hash' => PASSWORD_BCRYPT,
- 'password_hash_options' => ['cost' => 10], // Default=10. This is a good baseline cost, but you may want to consider increasing it depending on your hardware.
+ 'pepper_pwd' => 'SZFJXX]7HcwJjS]av3q8cUR',
+ 'salt_pwd' => 'fVN(P8nBNK3;tM88Kkku',
));
diff --git a/src/mockup/controllers/app/enc_ctrl.php b/src/mockup/controllers/app/enc_ctrl.php
new file mode 100644
index 0000000..cae8c78
--- /dev/null
+++ b/src/mockup/controllers/app/enc_ctrl.php
@@ -0,0 +1,94 @@
+
+ * @copyright Copyright (c) 2022, Robert Strutts.
+ * @license https://mit-license.org/
+ */
+
+namespace prj\mockup\controllers\app;
+
+class enc_ctrl {
+ public $page_output;
+
+ private function time_enc(array $levels): void {
+ $enc = new \tts\services\encryption();
+ foreach($levels as $level) {
+ echo "ENC: Level = $level
" . PHP_EOL;
+ $enc->change_security_level($level);
+
+// $key = $enc->generate_valid_key();
+ $key = "51623a064210f9d3d5162d0885621f53";
+ echo "KEY Used: $key
" . PHP_EOL;
+
+ $startTime = microtime(true);
+ $data = $enc->encrypt($key, "Hello, World!");
+ echo "
$data
" . PHP_EOL;
+ echo "Encrypt Time: " . number_format(( microtime(true) - $startTime), 4) . " Seconds\n";
+
+ $startTime = microtime(true);
+ $decoded = $enc->decrypt($key, $data);
+ echo "
$decoded
" . PHP_EOL;
+ echo "Decrypt Time: " . number_format(( microtime(true) - $startTime), 4) . " Seconds\n";
+ echo "