mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 08:16:17 -04:00
Added only ASCII flag to ToHexdump
This commit is contained in:
parent
21a822b082
commit
53a579028c
2 changed files with 6 additions and 2 deletions
|
@ -70,7 +70,7 @@ class ToHexdump extends Operation {
|
|||
|
||||
output += lineNo + " " +
|
||||
hexa.padEnd(length*(padding+1), " ") +
|
||||
" |" + Utils.printable(Utils.byteArrayToChars(buff)).padEnd(buff.length, " ") + "|\n";
|
||||
" |" + Utils.printable(Utils.byteArrayToChars(buff), false, true).padEnd(buff.length, " ") + "|\n";
|
||||
|
||||
if (includeFinalLength && i+buff.length === data.length) {
|
||||
output += Utils.hex(i+buff.length, 8) + "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue