mirror of
https://github.com/Geprivilegieerde-Anonimiteit-BV/XACrypto.git
synced 2026-08-21 13:36:21 -04:00
add Byte2Hex function
This commit is contained in:
@@ -65,4 +65,11 @@ public final class SHA256Advanced {
|
||||
|
||||
return pd;
|
||||
}
|
||||
public static String Byte2Hex(byte[] b) {
|
||||
StringBuilder o = new StringBuilder(b.length * 2);
|
||||
for (byte bi : b) {
|
||||
o.append(String.format("%02x",b&0xff))
|
||||
}
|
||||
return o.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user