Skip to content

Commit c3fcb3e

Browse files
committed
Remove commons-codec dependancy
assumes java8+
1 parent 5c31cf4 commit c3fcb3e

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,5 @@
2929
<artifactId>oshi-core</artifactId>
3030
<version>5.3.1</version>
3131
</dependency>
32-
<dependency>
33-
<groupId>commons-codec</groupId>
34-
<artifactId>commons-codec</artifactId>
35-
<version>LATEST</version>
36-
</dependency>
3732
</dependencies>
3833
</project>

src/main/java/io/cryptolens/legacy/JavaSecuritySignatureVerifier.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
import com.google.gson.*;
10-
import org.apache.commons.codec.binary.BaseNCodec;
1110

1211
import java.math.BigInteger;
1312
import java.security.*;
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
package io.cryptolens.legacy;
22

3-
import org.apache.commons.codec.binary.Base64;
3+
import java.util.Base64;
44

55
public class Shared {
66

77
public static byte[] defaultBase64Decoder(String str) {
8-
9-
Base64 decoder = new Base64();
10-
return decoder.decode(str.getBytes());
8+
return Base64.getDecoder().decode(str); // standard Base64
119
}
1210
}

0 commit comments

Comments
 (0)