Mosaic
Well-Known Member
Hi:
I'd like to create an asm method that takes a random (between 4 to 8 digit) Hex or Decimal number as a security code and then generates a return 4 digit hex or decimal number that decodes using the orig. random number into a desired value.
So if u have a random number 048364 and you process it thru the security code s'ware that returns something like 49AC which when processed in conjunction with the org. code as a key can result in a desired value...like 200 etc.
It's meant to permit secure comms between 2 MCUs. One sends a random code, the other returns the 4 digit response which is then decoded with the orig. random number as the key.
Need some advice...
I'd like to create an asm method that takes a random (between 4 to 8 digit) Hex or Decimal number as a security code and then generates a return 4 digit hex or decimal number that decodes using the orig. random number into a desired value.
So if u have a random number 048364 and you process it thru the security code s'ware that returns something like 49AC which when processed in conjunction with the org. code as a key can result in a desired value...like 200 etc.
It's meant to permit secure comms between 2 MCUs. One sends a random code, the other returns the 4 digit response which is then decoded with the orig. random number as the key.
Need some advice...