hex

Python Tkinter: I'm not sure how to align the guess input with the question

Python Tkinter: I'm not sure how to align the guess input with the question Question: For this code, I’m trying to make a quiz game that has the user convert hexadecimal to decimal. My only issue is that it’s always a hexadecimal behind. To clarify, when I press enter to start the game, it turns …

Total answers: 1

Convert long series keys to hex, then Choose desired values from a list of long separated keys

Convert long series keys to hex, then Choose desired values from a list of long separated keys Question: I have code to generate series of keys as in below: def Keygen (x,r,size): key=[] for i in range(size): x= r*x*(1-x) key.append(int((x*pow(10,16))%256)) return key if __name__=="__main__": key=Keygen(0.45,0.685,92)#Intial Parameters print(‘nx key:’, key, "n") The output keys are: nx …

Total answers: 3

Buffer.from(<string>, 'hex') equivalent in Python

Buffer.from(<string>, 'hex') equivalent in Python Question: I have a typescript library that I need to translate into Python. I am using the library bs58 in Typescript and its equivalent base58 library in python. My problem is coming when I try to replicate this: const decodedTxHash = Buffer.from(’34cc2932f90774851410a536e3db2c2e61266a1587fbc15e7e9c79b41631ac74′, ‘hex’) const nearBurnTxHash = bs58.encode(decodedTxHash) This results in: …

Total answers: 1

Determine basic color names from HEX or RGB in python

Determine basic color names from HEX or RGB in python Question: I am trying to find out if a hex color is "blue". This might be a very subjective thing when comparing different (lighter/ darker) shades of blue or close to blue colors but in my case it does not have to be very precise. …

Total answers: 2

zlib.error: Error -3 while decompressing data: too many length or distance symbols

zlib.error: Error -3 while decompressing data: too many length or distance symbols Question: Encountering this error for decompressing chunks of a file. I already decompressed successfully about 5 chunks of data. But there is just one range of data that doens’t get decompressed. The header should be right. Header 78 9C This is only a …

Total answers: 1

How to compare 2 text and replace the differences with python?

How to compare 2 text and replace the differences with python? Question: So I want to compare 2 hex lines and find the differences. But I want it not only to show the differences, but its just replace all the differences. I wanna to turn this : E2 34 3D A6 00 C2 00 95 …

Total answers: 1

Cannot read float value

Cannot read float value Question: trying to read float value but it giving error it says address must be int even though I use read_float and it makes an error it cant read it says address must be int from pymem import * from pymem.process import * pm = pymem.Pymem("game.exe") module = module_from_name(pm.process_handle, "game.exe").lpBaseOfDll def …

Total answers: 1

<class 'OverflowError'>: int too long to convert

<class 'OverflowError'>: int too long to convert Question: Im trying to read memory of a program but I get error it says from ReadWriteMemory import ReadWriteMemory rwm = ReadWriteMemory() process = rwm.get_process_by_name("Tutorial-x86_64.exe") process.open() baseaddress = 0x100000000+0x00325A70 pointer = process.get_pointer(baseaddress, offsets = [0x598, 0x28, 0x8, 0xF8, 0x18, 0x18, 0x7F8]) print(process.read(pointer)) Traceback (most recent call last): File …

Total answers: 1