mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
commit
2fdeb47dc1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user