Note: Unlucky for us, the organisation conspiring to steal the HackSock are
a tad clumsy... the second encrypted greeting should've started with
{14, 15, 28, 38, 57…} rather than {12, 15, 28, 38, 57…}. Well done if
you spotted this!
In order to solve this problem we need to make some assumptions from observations of the code.
Our first observation is that both codes seem to be based on a progression so we will assume that there is a progression that is integral to the code, we can also guess at this point that the other numbers provided are part of the seed of that code.
Our next assumption is that the start of both messages contains a greeting, perhaps the same greeting, we'll go one step further and assume that it is in fact the same greeting.
Finally we'll assume that the message was originally a plain text message using the latin alphabet (case insensitive) encoded in some way as integers.
Let's now examine the codes and make use of those facts. Given that we think the codes are using sequences and the start of the messages is the same we can subtract the two codes to give us another sequence which no longer contains the message (it is the common point): {7, 9, 14, 23, 37}.
When we look at this new sequence we can see an interesting pattern starts to emerge after the first few numbers, specifically that 9+14=23, 14+23=37, and while we don't see that in the first two digits they are close to correct. With some prior knowledge of addition sequences (like the fibonacci sequence) this suggests that the underlying sequences may be made by addition of previous terms.
This is because the ratio of any two term consecutive term in all sequences made by addition of the previous terms tends towards the Golden Ratio 1.618… so as the terms get bigger the difference in starting terms has less effect and the difference sequence becomes the same kind of sequence. From this we can infer that the underlying sequences are sequences made by the addition of two terms.
The seed for each code is 3 numbers which suggests that two of them represent the starting terms of the sequence and the third represents something unknown. By trying all combinations of the numbers and comparing (addition, subtraction, multiplication, division etc.) the result sequences to the codes we can see that the two sequences do not reveal a common plaintext. If we assume our assumption of the same greeting holds (which it must for this to be solvable as a casual puzzle) then the sequences must be offset somehow.
We have yet to explain the remaining number in the seed, if we try this as a starting index for the code in the seed sequence we find a common pattern {8, 5, 12, 12, 15}!
So this is our plain text! If we then use the simplest encoding of the alphabet where each letter is assigned it's index we get the following text: "hello"!
So the code being used is addition of the index of each letter of the plaintext with a corresponding item in a sequence given by addition of the last two items with the first two numbers of the seed giving the first two terms and the third giving an index into the sequence to start at. And the secret greeting was the rather boring "Hello".
Now we can finally track down the nefarious organisation attempting to steal the HackSock!