Move Symmetric Encryption Key generation into its own method

Test update for future class based encryption system without static
methods
This commit is contained in:
Clemens Schwaighofer
2024-03-27 11:58:53 +09:00
parent 4f1104c36e
commit 3fda1bef60
2 changed files with 27 additions and 12 deletions

View File

@@ -92,6 +92,13 @@ try {
print "Error: " . $e->getMessage() . "<br>";
}
// echo "<hr>";
// $key = CreateKey::generateRandomKey();
// $se = new SymmetricEncryption($key);
// $string = "I a some deep secret";
// $encrypted = $se->encrypt($string);
// $decrypted = $se->decrypt($encrypted);
print "</body></html>";
// __END__