mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Add json output listIdentities command
This commit is contained in:
parent
70fc2381d3
commit
11c90fa032
5 changed files with 94 additions and 25 deletions
|
@ -8,11 +8,16 @@ public class Hex {
|
|||
}
|
||||
|
||||
public static String toString(byte[] bytes) {
|
||||
if (bytes.length == 0) {
|
||||
return "";
|
||||
}
|
||||
|
||||
var buf = new StringBuffer();
|
||||
for (final var aByte : bytes) {
|
||||
appendHexChar(buf, aByte);
|
||||
buf.append(" ");
|
||||
}
|
||||
buf.deleteCharAt(buf.length() - 1);
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue