mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-30 18:18:37 -04:00
key in version 2 is raw value instead of base64 (which reduces its complexity), made PasteDecryptor support both versions of the format, refactoring method names, replacing var by let / const, reducing zlib compression level from 9 to 7 to half the time spent on compression
This commit is contained in:
parent
be69e4a50f
commit
0ee86f33da
6 changed files with 301 additions and 318 deletions
|
@ -5,7 +5,7 @@ let ret;
|
|||
async function initialize() {
|
||||
if (ret) return ret;
|
||||
|
||||
const COMPRESSION_LEVEL = 9;
|
||||
const COMPRESSION_LEVEL = 7;
|
||||
const NO_ZLIB_HEADER = -1;
|
||||
const CHUNK_SIZE = 32 * 1024;
|
||||
const map = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue