Advertisement
Guest User

Matrix Construction

a guest
Jan 17th, 2014
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. Given the 5x5 Table
  2. 272 138 341 131 151
  3. 366 199 130 320 18
  4. 226 245 91 245 226
  5. 18 320 130 199 366
  6. 151 131 341 138 272
  7.  
  8. We can see that only the first 13 numbers will hold any useful information, the rest is just repeated/padding. Assuming this somehow holds an onion we need to be able to encode 16-24 characters within that space.
  9.  
  10. One possible method would be to take an onion URL such as 'fakeonionarefakedotonion' and encode it in Base36.
  11.  
  12. Result: 9538171002527492254983013983859845719
  13.  
  14. Now split this number into blocks of three.
  15. 953,817,100,252,749,225,498,301,398,385,984,571,9
  16.  
  17. Truncate the last digit and reverse the sequence and append it.
  18.  
  19. Result:
  20. 953,817,100,252,749,225,498,301,398,385,984,571,9,571,984,385,398,301,498,225,749,252,100,817,953
  21.  
  22. Convert to a 5x5 Table
  23. Result:
  24. 953 817 100 252 749
  25. 225 498 301 398 385
  26. 984 571 9 571 984
  27. 385 398 301 498 225
  28. 749 252 100 817 953
  29.  
  30. Now to successfully decode read each row left to right and stop at 9, reassemble into the big number and convert back to Base36.
  31.  
  32. Result:
  33. fakeonionarefakedotonion
  34.  
  35. Flaws:
  36. Positions such where a triplet fell on a leading zero such as 007, would incorrectly become 7. This could be mitigated by simply generating another Onion hash.
  37.  
  38. This square is not magic. However, it may be possible to make it magic with some constant addition or subtraction.
  39.  
  40.  
  41. -SepheusIX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement