芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/giga.mgaplay.com.br/vendor/opis/closure/src/SecurityProvider.php
secret = $secret; } /** * @inheritdoc */ public function sign($closure) { return array( 'closure' => $closure, 'hash' => base64_encode(hash_hmac('sha256', $closure, $this->secret, true)), ); } /** * @inheritdoc */ public function verify(array $data) { return base64_encode(hash_hmac('sha256', $data['closure'], $this->secret, true)) === $data['hash']; } }