mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-01 01:53:32 +03:00
v2.15.0
This commit is contained in:
parent
ef03ba4f60
commit
eff357dc8e
10 changed files with 23 additions and 20 deletions
|
|
@ -98,9 +98,11 @@ abstract class Crypt
|
|||
$salt = \random_bytes(16);
|
||||
$result = ['xxtea', $salt, static::XxteaEncrypt($data, $salt, $key)];
|
||||
}
|
||||
/*
|
||||
if (static::{"{$result[0]}Decrypt"}($result[2], $result[1], $key) !== $data) {
|
||||
throw new \Exception('Encrypt/Decrypt mismatch');
|
||||
}
|
||||
*/
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue