Questions tagged as 'hexadecimal'

2
answers

Working with binary data

I have a function in C that receives two bytes one with the highest significant value (msb) and one with a smaller value (lsb) and then converts them to decimal. int get_pea(char *buffer) { char lsb[8], msb[8], pea[16]; unsigned int i;...
asked by 04.04.2018 / 02:07
1
answer

How do I print a hex in c through printf?

// example mascara = 0xFF; blue = COR1 & mascara // color a macro I've used printf ("% s \ n", blue); // bold doubts     
asked by 26.08.2017 / 21:57
2
answers

Decimal to hexadecimal conversion

I need to make an algorithm in python to make a converter from decimal to hexadecimal. But I can not use ifs nor ready functions, like hex (). I did, but when I was printing the value in hex, I used print ("% X"% h) to print the letters without...
asked by 30.06.2017 / 22:40
0
answers

Numerical conversions

I'm trying to make a program that converts decimal to binary, octal and hexadecimal. My intention is to make a program that can convert "any" number, regardless of its size for these other bases. My doubt in the case is: from decimal 1.10¹⁵ t...
asked by 21.10.2018 / 20:43
0
answers

How do I reverse the character order of a file using Float - Mid-Big Endian (BADC)?

Good morning. Is there a hex editor that uses the Float - Mid-Big Endian (BADC) method? I want to reverse the order of the characters in a file. Example: 21 42 14 26 reverse the order to 42 21 26 14.     
asked by 05.06.2018 / 17:55
1
answer

How to convert the positive value of an aob to a negative value?

Hello, can anyone help me with the following question? Example I have an aob that represents an item (cigarette) in a game ... XX XX XX XX XX XX XX XX = cigarette Xx XX XX XX XX XX XX XX 01 = 1 cigar XX XX XX XX XX XX XX XX 0A = 10 c...
asked by 26.05.2018 / 05:51
0
answers

How to convert from Hexadecimal to binary

Well actually I got in brute force wanted to know, is there another way to mathematically do my code #include <stdio.h> #include <string.h> int main(int argc, char** argv) { char numero[1000],aux[10000]; scanf("%s", numero);...
asked by 17.04.2018 / 15:59
1
answer

Socket hex with checksum

I'm developing a communication socket between a crawler and the server. The socket is in perfect working order. My problem is with communication when checking the checksum. The device sends a message ranging from 0 to 200 bytes to the server...
asked by 01.12.2017 / 18:17
0
answers

What types of javascript encryption?

I was crawling some code over the net and saw that some scripts were encrypted. I was not able to do decode correctly by HexDecoder, as there is probably more than one type of encryption in the code. var _0x4a00=["\x31\x64\x28\x72\x29\x...
asked by 04.02.2017 / 05:52
0
answers

barcode on android bluetooh printer

I can print anything but the barcode, I currently use: byte[] cmd = new byte[3]; cmd[0] = 0x1b; cmd[1] = 0x21; cmd[2] &= 0xEF; out.write(cmd); out.write("Mensagem de t...
asked by 28.02.2016 / 23:15