rehex | Reverse Engineers ' Hex Editor | Reverse Engineering library
kandi X-RAY | rehex Summary
kandi X-RAY | rehex Summary
A cross-platform (Windows, Linux, Mac) hex editor for reverse engineering, and everything else.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rehex
rehex Key Features
rehex Examples and Code Snippets
Community Discussions
Trending Discussions on rehex
QUESTION
I'm trying to convert any length hexadecimal to ternary (two way), specifically in Python. I've tried using int
, and that didn't work. I also tried this library called baseconvert, but that just spits an error, NameError: name 'base' is not defined
, when I try to use the base
command they give.
Then, I tried this script:
...ANSWER
Answered 2018-Jan-02 at 21:49Your code works as expected, and does what you want it to do. The problem is that Python by default has a guard for maximum recursion depth (maximum 1000 layers in stack). You can increase it, but this would not be very scalable. What you really want to do is rewrite your code in an iterative fashion.
Your code could look something like that:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rehex
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page