Browse Source

base256.py: better support for hex value

master
Von Random 1 month ago
parent
commit
d250409d5f
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      base256.py

+ 1
- 2
base256.py View File

@ -4,8 +4,7 @@
from sys import argv
def from_base256(number):
base = 16 if number.startswith('0x') else 10
num = int(number, base)
num = int(number, 0)
addr = list()
for e in range(3, -1, -1):
multiplier = 256 ** e


Loading…
Cancel
Save