Skip to content

Commit 685c024

Browse files
author
isayan
committed
implementation lib upgrade
1 parent 9221e5e commit 685c024

File tree

8 files changed

+46
-7
lines changed

8 files changed

+46
-7
lines changed

build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,12 @@ task release(type: Zip, dependsOn: ['build', 'asciidoctor']) {
8989

9090
dependencies {
9191
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk18on
92-
compileOnly 'org.bouncycastle:bcpkix-jdk18on:1.74'
92+
compileOnly 'org.bouncycastle:bcpkix-jdk18on:1.78.1'
9393
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk18on
94-
compileOnly 'org.bouncycastle:bcprov-jdk18on:1.74'
94+
compileOnly 'org.bouncycastle:bcprov-jdk18on:1.78.1'
95+
96+
// https://mvnrepository.com/artifact/org.brotli/dec
97+
compileOnly 'org.brotli:dec:0.1.2'
9598

9699
// https://github.com/raise-isayan/BurpExtensionCommons
97100
implementation fileTree(dir: 'libs', include: ['*.jar'])
@@ -102,7 +105,7 @@ dependencies {
102105
// https://mvnrepository.com/artifact/net.portswigger.burp.extensions/montoya-api
103106
implementation 'net.portswigger.burp.extensions:montoya-api:2023.12.1'
104107
// https://mvnrepository.com/artifact/commons-codec/commons-codec
105-
implementation 'commons-codec:commons-codec:1.16.0'
108+
implementation 'commons-codec:commons-codec:1.17.0'
106109
// https://mvnrepository.com/artifact/com.fifesoft/rsyntaxtextarea
107110
implementation 'com.fifesoft:rsyntaxtextarea:3.3.4'
108111

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
netbeans.org-netbeans-modules-javascript2-requirejs.enabled=true
22
release_version_major=3.1
3-
release_version_minor=0.2
3+
release_version_minor=1.0
44
netbeans.license=mit

help/help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2804,7 +2804,7 @@ <h3 id="_version">3.11. Version</h3>
28042804
<div id="footer">
28052805
<div id="footer-text">
28062806
Version unspecified<br>
2807-
Last updated 2024-07-10 20:31:17 +0900
2807+
Last updated 2024-07-10 20:31:16 +0900
28082808
</div>
28092809
</div>
28102810
</body>

help/images/custom_jtranscoder.png

-13.4 KB
Loading

release/YaguraExtension-v3.1.jar

8.11 KB
Binary file not shown.
-13.4 KB
Loading

src/main/java/extend/util/external/BouncyUtil.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import java.util.Map;
3737
import java.util.logging.Level;
3838
import java.util.logging.Logger;
39-
import org.bouncycastle.asn1.ASN1Encodable;
4039
import org.bouncycastle.asn1.ASN1EncodableVector;
4140
import org.bouncycastle.asn1.ASN1Encoding;
4241
import org.bouncycastle.asn1.ASN1Object;
@@ -2262,7 +2261,6 @@ public static String toSKEIN1024_1024Sum(String str, String charset, boolean upp
22622261

22632262
// https://github.com/bcgit/bc-java/tree/main/core/src/test/java/org/bouncycastle/crypto/test
22642263

2265-
22662264
/**
22672265
* 証明書
22682266
* https://gist.github.com/vivekkr12/c74f7ee08593a8c606ed96f4b62a208a
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package extend.util.external;
2+
3+
import static extension.helpers.ConvertUtil.compressZlib;
4+
import static extension.helpers.ConvertUtil.toBase64Encode;
5+
import extension.helpers.StringUtil;
6+
import java.io.BufferedOutputStream;
7+
import java.io.ByteArrayInputStream;
8+
import java.io.ByteArrayOutputStream;
9+
import java.io.IOException;
10+
import java.io.InputStream;
11+
import java.nio.charset.Charset;
12+
import java.nio.charset.StandardCharsets;
13+
import java.util.zip.Deflater;
14+
import java.util.zip.GZIPInputStream;
15+
import org.brotli.dec.BrotliInputStream;
16+
17+
/**
18+
*
19+
* @author isayan
20+
*/
21+
public class BrotliUtil {
22+
23+
public static byte[] decompressBrotli(byte[] content) throws IOException {
24+
ByteArrayOutputStream baos = new ByteArrayOutputStream();
25+
try (BrotliInputStream btis = new BrotliInputStream(new ByteArrayInputStream(content))) {
26+
try (BufferedOutputStream out = new BufferedOutputStream(baos)) {
27+
byte[] buf = new byte[1024];
28+
int size;
29+
while ((size = btis.read(buf, 0, buf.length)) != -1) {
30+
out.write(buf, 0, size);
31+
}
32+
out.flush();
33+
}
34+
}
35+
return baos.toByteArray();
36+
}
37+
38+
}

0 commit comments

Comments
 (0)