Click here to Skip to main content
15,884,724 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Line Intersection Pin
Roger Wright17-Jun-11 20:34
professionalRoger Wright17-Jun-11 20:34 
GeneralRe: Line Intersection Pin
musefan21-Jun-11 0:12
musefan21-Jun-11 0:12 
AnswerRe: Line Intersection Pin
BobJanova20-Jun-11 23:41
BobJanova20-Jun-11 23:41 
GeneralRe: Line Intersection Pin
musefan21-Jun-11 0:08
musefan21-Jun-11 0:08 
QuestionPattern Cracking Question Pin
YSLGuru16-Jun-11 12:57
YSLGuru16-Jun-11 12:57 
AnswerRe: Pattern Cracking Question Pin
Moreno Airoldi17-Jun-11 22:52
Moreno Airoldi17-Jun-11 22:52 
AnswerRe: Pattern Cracking Question Pin
dasblinkenlight20-Jun-11 9:36
dasblinkenlight20-Jun-11 9:36 
AnswerRe: Pattern Cracking Question Pin
musefan21-Jun-11 0:34
musefan21-Jun-11 0:34 
Clearly a very basic algorithm if each character is changed individually. I would say it is just a shift cipher of some sort.

First convert the characters to hex

a  b  c  d  e  f  g  a  1  2  3  4  =
61 62 63 64 65 66 67 61 31 32 33 34


now find out what values you need to add to those to get your resulting encryption. As I only have two values to use, here is a sample

   61  62  63  64  65  66  67  61  31  32  33  34
+ -10                         -57
--------------------------------------------------
   57                          0A


fill in the rest and look for a pattern. Could be a repeating key, e.g. -10 +5 +23 - 57

interestingly (and maybe a coincidence) is that the second "a" is a reduction of the previously calculated "a"

So the algorithm could be...

1. start with a byte array of size [256] that contains all -10 values
2. loop each character
3. convert character to hex (iHex)
4. convert iHex to decimal (iDec)
5. encrypted hex (eHex) equals: iHex - bytearray[iDec]
6. set new bytearray value: bytearray[iDec] = eHex (ready for next use)
7. output eHex to result string
8. process next character

...of course that is just one possible to match the results you have given
I may or may not be responsible for my own actions

GeneralRe: Pattern Cracking Question Pin
YSLGuru21-Jun-11 10:41
YSLGuru21-Jun-11 10:41 
GeneralRe: Pattern Cracking Question Pin
BobJanova22-Jun-11 0:33
BobJanova22-Jun-11 0:33 
GeneralRe: Pattern Cracking Question Pin
musefan22-Jun-11 3:34
musefan22-Jun-11 3:34 
GeneralRe: Pattern Cracking Question Pin
BobJanova22-Jun-11 4:34
BobJanova22-Jun-11 4:34 
Questionmerge k AVL trees complexity Pin
Hesham Yassin16-Jun-11 0:14
Hesham Yassin16-Jun-11 0:14 
AnswerRe: merge k AVL trees complexity Pin
Alan Balkany16-Jun-11 5:13
Alan Balkany16-Jun-11 5:13 
GeneralRe: merge k AVL trees complexity Pin
dasblinkenlight17-Jun-11 10:10
dasblinkenlight17-Jun-11 10:10 
AnswerRe: merge k AVL trees complexity Pin
dasblinkenlight17-Jun-11 10:08
dasblinkenlight17-Jun-11 10:08 
GeneralRe: merge k AVL trees complexity Pin
Hesham Yassin17-Jun-11 10:49
Hesham Yassin17-Jun-11 10:49 
QuestionEye-like Algorithm Pin
JustWorking14-Jun-11 2:46
JustWorking14-Jun-11 2:46 
AnswerRe: Eye-like Algorithm Pin
phil.o14-Jun-11 3:39
professionalphil.o14-Jun-11 3:39 
GeneralRe: Eye-like Algorithm Pin
JustWorking14-Jun-11 4:07
JustWorking14-Jun-11 4:07 
GeneralRe: Eye-like Algorithm Pin
Alan Balkany14-Jun-11 4:51
Alan Balkany14-Jun-11 4:51 
GeneralRe: Eye-like Algorithm Pin
JustWorking14-Jun-11 20:27
JustWorking14-Jun-11 20:27 
QuestionPolygons from Points Pin
Kyudos31-May-11 15:28
Kyudos31-May-11 15:28 
AnswerRe: Polygons from Points Pin
YDaoust31-May-11 21:22
YDaoust31-May-11 21:22 
GeneralRe: Polygons from Points Pin
Kyudos1-Jun-11 13:32
Kyudos1-Jun-11 13:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.