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:
El RIDO 2018-12-29 18:40:59 +01:00
parent be69e4a50f
commit 0ee86f33da
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
6 changed files with 301 additions and 318 deletions

View file

@ -89,6 +89,8 @@ function parseMime(line) {
}
// common testing helper functions
exports.atob = atob;
exports.btoa = btoa;
/**
* convert all applicable characters to HTML entities