mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-23 15:16:18 +05:30
drop legacy paste format support
remove support for ZeroBin & v1 pastes and base64 & rawinflate libraries
This commit is contained in:
parent
03e0c81fbf
commit
6d5323e351
14 changed files with 18 additions and 1272 deletions
|
|
@ -190,11 +190,7 @@ class Paste extends AbstractModel
|
|||
if (!array_key_exists('salt', $this->_data['meta'])) {
|
||||
$this->get();
|
||||
}
|
||||
return hash_hmac(
|
||||
$this->_conf->getKey('zerobincompatibility') ? 'sha1' : 'sha256',
|
||||
$this->getId(),
|
||||
$this->_data['meta']['salt']
|
||||
);
|
||||
return hash_hmac('sha256', $this->getId(), $this->_data['meta']['salt']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue