mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-09 17:34:13 +00:00
add byte test
This commit is contained in:
parent
3000ba5874
commit
a553a13a31
17
src/test/java/org/bdware/server/ByteTest.java
Normal file
17
src/test/java/org/bdware/server/ByteTest.java
Normal file
@ -0,0 +1,17 @@
|
||||
package org.bdware.server;
|
||||
|
||||
import org.bdware.sc.conn.ByteUtil;
|
||||
import org.bouncycastle.pqc.math.linearalgebra.ByteUtils;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
|
||||
public class ByteTest {
|
||||
@Test
|
||||
public void run() {
|
||||
String hexStr = "af28b0815f865cc04cd9828a9eff0d394da08fed";
|
||||
hexStr = "badf98195fb23838651ad581885489c3d750db6c";
|
||||
String b64 = ByteUtil.encodeBASE64(ByteUtils.fromHexString(hexStr));
|
||||
System.out.println(URLEncoder.encode(b64));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user