summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Tcholakov <ivantcholakov@gmail.com>2015-03-16 22:46:20 +0200
committerIvan Tcholakov <ivantcholakov@gmail.com>2015-03-16 22:46:20 +0200
commit1b3301538c0c2e2a4037345105ebba29ab1e00e7 (patch)
tree8aeba9f9a668f118ef4ba4a16118fbc843d05a26
parent245b4aa0546125f9f9f4850c752526c46c76513e (diff)
downloadgibberish-aes-php-1b3301538c0c2e2a4037345105ebba29ab1e00e7.zip
gibberish-aes-php-1b3301538c0c2e2a4037345105ebba29ab1e00e7.tar.gz
gibberish-aes-php-1b3301538c0c2e2a4037345105ebba29ab1e00e7.tar.bz2
Disabling by default the fallback access to openssl from the command line. In the future this feature will be removed permanently.
-rw-r--r--GibberishAES.php10
-rw-r--r--README.markdown3
2 files changed, 9 insertions, 4 deletions
diff --git a/GibberishAES.php b/GibberishAES.php
index 4c5a704..62690db 100644
--- a/GibberishAES.php
+++ b/GibberishAES.php
@@ -67,7 +67,15 @@ class GibberishAES {
protected static $mcrypt_exists = null;
protected static $mbstring_func_overload = null;
- protected static $openssl_cli_exists = null;
+ // Modified by Ivan Tcholakov, 16-MAR-2015.
+ //protected static $openssl_cli_exists = null;
+ protected static $openssl_cli_exists = false;
+ // Explanation: Passing encryption/decryption to an external process is not a good idea.
+ // This feature is relevant to old servers (a cutting-edge case), so I am disabling
+ // it by default. You may at your own risk to enable it here (uncomment the previous
+ // value and comment the current one), but it would be better your PHP engine to have
+ // OpenSSL or Mcrypt functions installed.
+ // I am going in a future release to remove this feature permanently.
// This is a static class, instances are disabled.
final private function __construct() {}
diff --git a/README.markdown b/README.markdown
index dd5549f..6d99bd8 100644
--- a/README.markdown
+++ b/README.markdown
@@ -20,9 +20,6 @@ or
- Mcrypt functions installed.
-If none of these functions exist, the class will try to use openssl
-from the command line (avoid this case).
-
Usage Example:
-----------------------------------