Questions tagged as 'hexadecimal'

2
answers

Convert String Value to Hexadecimal without changing format

I'm using the following code in a Class. public Int16 Endereco = 0x7302; byte[] Data = BitConverter.GetBytes(Endereco); Array.Reverse(Data); [...] I would like to receive the value for the Endereco variable of a String...
asked by 31.01.2017 / 12:25
1
answer

Function that converts hexadecimal to binary

Is there a function equivalent to bin2hex() of PHP for C #? I need to convert a hexadecimal to binary. I tried to use TryParse but it did not work.     
asked by 11.05.2016 / 17:23
2
answers

Help with code (seems to be hexadecimal)

Hello, in my course had a joke, anyone who could decipher the code would win a prize, I tried in hexadecimal, but I did not get anything. 51 44 52 20 59 44 20 57 44 52 20 4a 48 51 57 4c 4f 50 48 51 57 48 20 51 48 56 56 44 20 45 52 44 20 51 52...
asked by 22.10.2016 / 01:33
2
answers

Show hexadecimal value in cmd.exe

I'm trying to show the accented letter 'is' in cmd.exe through hexadecimal, but printf() only shows the value of the character itself. I'm trying the following: unsigned char eh = 0x82; printf("%x", eh)     
asked by 28.03.2014 / 02:50
2
answers

What does '% 02x' do exactly?

I was seeing some examples of hash functions > from OpenSSL and I came across the format specifier / a> %02x . I do not know very well their purpose we codes that I saw. I even understand that %02x is to fill the field with ze...
asked by 08.07.2018 / 21:07
1
answer

C # How to send numericUpDown value to textBox in Hexadecimal?

then ... numericUpDown even has the Hexadecimal count format, however when sending to texBox it counts only in decimal is there any way the textBox can get the given numeric value in Hexadecimal? I send the numeric value to the textBox like t...
asked by 26.03.2017 / 23:28
2
answers

Validation of byte through array of bits of an image

I'm trying to validate an incoming image in an FTP folder. The images begin with the "FFD8" bytes and end with the "FFD9" sequence so that you can perform the scan. I'm getting the image in a BufferedImage and converting it to an array...
asked by 29.06.2015 / 22:17
2
answers

Convert hexadecimal to integer

I have this value in hexadecimal "E365A931A000000". I need to convert it to integer I'm using the following code. string hex = "E365A931A000000"; CodLibercao = Convert.ToInt32(hex); This code is giving me the following exception:    "...
asked by 03.03.2015 / 21:22
1
answer

Generating a hexadecimal string

Good afternoon, well, I am generating a random hexadecimal string in this pattern: 81c1328d-4dae-4af7-9974-893bb8ec90d4 But I would like to optimize this code here: public String geraKee(){ String letras = "abcdef0123456789"; Ra...
asked by 14.03.2015 / 19:53
2
answers

"Join" elements of a single vector

I have a vector with four elements that are numbers represented in hexadecimal form. What I need to do is concatenate these four elements (I think this is not the right word but I have not found a better one)? For example: int v[4]={0x...
asked by 24.02.2015 / 22:15