Forums: » Register « |  Free Tools |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |

New Free Tools on Dev Shed!

#1
December 24th, 2012, 12:17 AM
 saifullahiitkus
Registered User

Join Date: Dec 2012
Posts: 4
Time spent in forums: 47 m 49 sec
Reputation Power: 0
Crypto Algorithm Evaluation - Extract one number from other

433827 has been extracted from 9423549 number. i dont know which algorithm has been used on it. please somebody help me and tell me how 433827 has bee extracted from 9423549. please.

#2
December 24th, 2012, 12:44 AM
 requinix
Forgetful

Join Date: Mar 2007
Location: Washington, USA
Posts: 13,460
Time spent in forums: 5 Months 2 Weeks 2 Days 2 h 40 m 11 sec
Reputation Power: 9258
Well, could be
Code:
```if input == 9423549 {
output = 433827
}```

or
Code:
`output = input - 8989722`

or
Code:
`output = (input - 313182) / 21`

or
Code:
`output = string(input[1], input[3], input[3], input[0] - 1, input[2], input [6] - 2)`

or
Code:
`output = reverse(reverse(input) - 8724915)`

or
Code:
`output = string(min(input[0], input[1]), (input[1] + input[2]) / 2, max(input[2], input[3]), input[3] + input[4], 2 * (input[4] - input[5]), input[6] - input[5] / 2)`

or even
Code:
`output = 433827`
saifullahiitkus agrees: thanks bro

#3
December 24th, 2012, 02:22 AM
 saifullahiitkus
Registered User

Join Date: Dec 2012
Posts: 4
Time spent in forums: 47 m 49 sec
Reputation Power: 0
Quote:
 Originally Posted by requinix Well, could be Code: ```if input == 9423549 { output = 433827 }``` or Code: `output = input - 8989722` or Code: `output = (input - 313182) / 21` or Code: `output = string(input[1], input[3], input[3], input[0] - 1, input[2], input [6] - 2)` or Code: `output = reverse(reverse(input) - 8724915)` or Code: `output = string(min(input[0], input[1]), (input[1] + input[2]) / 2, max(input[2], input[3]), input[3] + input[4], 2 * (input[4] - input[5]), input[6] - input[5] / 2)` or even Code: `output = 433827`

Thanks. i did'nt get it. the out put is 433827 and the input is 9423549. the question which method has used to get such an out put

#4
December 24th, 2012, 08:56 AM
 salem
Contributed User

Join Date: Jun 2005
Posts: 4,247
Time spent in forums: 2 Months 4 Weeks 1 Day 11 h 34 m 37 sec
Reputation Power: 1809
Quote:
 Originally Posted by saifullahiitkus Thanks. i did'nt get it. the out put is 433827 and the input is 9423549. the question which method has used to get such an out put

You need to post a few more examples.

I mean, if I asked how to get from "A" to "B", what would you (or anyone guess)?

But if I asked "A" to "B", "B" to "C", "C" to "D", "D" to "E", we all might figure out the pattern that would reasonably allow us to guess what "S" would translate to.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper

 Viewing: Dev Shed Forums > System Administration > Security and Cryptography > Crypto Algorithm Evaluation - Extract one number from other