Skip to main content
Question

Hello, I have an electronic circuit that accepts 4 hex numbers and output 4 decoded hex numbers. Knowing that I have thousands of inputs and decoded outputs, I would like to know if there is a way to figure mathematically the operation done by this d

  • December 7, 2021
  • 6 replies
  • 8 views

Hello, I have an electronic circuit that accepts 4 hex numbers and output 4 decoded hex numbers. Knowing that I have thousands of inputs and decoded outputs, I would like to know if there is a way to figure mathematically the operation done by this device

6 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2937 replies
  • December 7, 2021

Not sure what you need exactly, but the BaseConverter can be used to convert hex to dec (base 16 to 10) or hex to bin (base 16 to 2).


  • Author
  • 2 replies
  • December 7, 2021

Ok let's say you have thousands of records such as decode( 1923) = 2304 and decode( 8305) =9824 and so forth.... Would it be possible to figure what this decode function does exactly ?


david_r
Celebrity
  • 8391 replies
  • December 7, 2021

Is the result deterministic? If the same input always gives the same result, it might be somewhere between fairly easy and doable, but if not, well, it might be somewhere between doable and impossible.


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • December 8, 2021

Sounds like a codebreaking challenge 😅


  • Author
  • 2 replies
  • December 8, 2021

Is the result deterministic? If the same input always gives the same result, it might be somewhere between fairly easy and doable, but if not, well, it might be somewhere between doable and impossible.

Yes the same input always gives the same result. I am pretty sure that the decoding goes through logical gates ( XOR, AND...) ...Now , I am still trying to find a way to figure what is the function behind this operation... I can provide thousands of records that I have saved in an excel sheet


david_r
Celebrity
  • 8391 replies
  • December 9, 2021

Yes the same input always gives the same result. I am pretty sure that the decoding goes through logical gates ( XOR, AND...) ...Now , I am still trying to find a way to figure what is the function behind this operation... I can provide thousands of records that I have saved in an excel sheet

Are you perhaps trying to break the Enigma machine? ;-)

For reference, it was indeed doable, but it's far from trivial, even with today's hardware. For your case, it depends on how much effort went in to trying to make it difficult for you. Perhaps you'll have more luck asking your question on a more dedicated forum.