Wednesday 15 July 2015

math - how to "mix" two numbers into one hex-string -


How is a code generated in two numbers, when you know this code and one of the numbers Can it be lowered? For example, you have two numbers: 983 and 2303 and you "mix" it in "hex string": 4b17a190bce4ea32236b98dd . When you know the first number and this hex string you can be lowered to the second number. But when you know the second number and hex-string, you can not get to the first number. How to do this

One of the easiest and really unsafe meditations) The method of doing this:

< Pre> int number 1; Int number 2; Int key; // Convert words (we know number 1 and number 2 and we want to know the key) number 1 = 983; Number 2 = 2303; Key = number 1 ^ number 2; // decode (we know number 1 and key and we want to know number 2) number 1 = 983; Number 2 = key ^ number 1;

Again (to avoid downvouts) this method breaks for some by seconds, it works for unknown users (like there is no math or programming background ).


No comments:

Post a Comment