Merge pull request #1300 from Slamdunk/patch-1

Explain the kraken
This commit is contained in:
terrafrost 2018-10-09 22:45:04 -05:00 committed by GitHub
commit 2fdeb47dc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);