From 19f706003e0473efd4f52a3084c5f578e3e8ed41 Mon Sep 17 00:00:00 2001 From: Filippo Tessarotto Date: Tue, 9 Oct 2018 08:35:56 +0200 Subject: [PATCH] Explain the kraken --- phpseclib/Crypt/Common/SymmetricKey.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpseclib/Crypt/Common/SymmetricKey.php b/phpseclib/Crypt/Common/SymmetricKey.php index 75ccaf6c..0b1ffdf9 100644 --- a/phpseclib/Crypt/Common/SymmetricKey.php +++ b/phpseclib/Crypt/Common/SymmetricKey.php @@ -2735,6 +2735,9 @@ abstract class SymmetricKey break; } + // Before discrediting this, please read the following: + // @see https://github.com/phpseclib/phpseclib/issues/1293 + // @see https://github.com/phpseclib/phpseclib/pull/1143 eval('$func = function ($_action, $_text) { ' . $init_crypt . 'if ($_action == "encrypt") { ' . $encrypt . ' } else { ' . $decrypt . ' }};'); return \Closure::bind($func, $this, static::class);