Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From Hex To Dec does not work #1029

Closed
mariopepe opened this issue May 4, 2020 · 1 comment
Closed

From Hex To Dec does not work #1029

mariopepe opened this issue May 4, 2020 · 1 comment
Labels

Comments

@mariopepe
Copy link

I create my recipe in which first element is "from hex" and second element is "To dec" and my input is: 0x1cda3c000, in decimal it is 7745028096, but CyberChef reports "28 218 60 0 0"
Screen Shot 2020-05-04 at 1 47 10 PM

@mariopepe mariopepe added the bug label May 4, 2020
@n1073645
Copy link
Contributor

n1073645 commented May 4, 2020

The From Hex operation operates on bytes, in this case it operates on 1c, da, 3c, 00, 0 separately. The To Decimal operation will then operate on each of those bytes separately.

For the functionality that you are looking for I recommend using the From Base operation with radix 16.
https://gchq.github.io/CyberChef/#recipe=From_Base(16)&input=MHgxY2RhM2MwMDA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants