Advertisement
B1KMusic

Let's get funky

Jun 22nd, 2015
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. GET REKT FGT
  2.  
  3. def a(c): return "%02x" % ord(c)
  4.  
  5. for c in "GET REKT FGT": print c, "=", a(c)
  6.  
  7. G = 47
  8. E = 45
  9. T = 54
  10. = 20
  11. R = 52
  12. E = 45
  13. K = 4b
  14. T = 54
  15. = 20
  16. F = 46
  17. G = 47
  18. T = 54
  19.  
  20. We have 4745542052454b5420464754, which expands to:
  21.  
  22. 47 = 0100 0111
  23. 45 = 0100 0101
  24. 54 = 0101 0100
  25. 20 = 0010 0000
  26. 52 = 0101 0010
  27. 45 = 0100 0101
  28. 4b = 0100 1011
  29. 54 = 0101 0100
  30. 20 = 0010 0000
  31. 46 = 0100 0110
  32. 47 = 0100 0111
  33. 54 = 0101 0100
  34.  
  35.  
  36. 010001110100010101010100001000000101001001000101010010110101010000100000010001100100011101010100
  37.  
  38. Regrouped to groups of 5: (2^5 = 32) (tip: always start from the right and pad 0's to the left)
  39.  
  40. (0000)0
  41. 10001
  42. 11010
  43. 00101
  44. 01010
  45. 10000
  46. 10000
  47. 00101
  48. 00100
  49. 10001
  50. 01010
  51. 01011
  52. 01010
  53. 10000
  54. 10000
  55. 00100
  56. 01100
  57. 10001
  58. 11010
  59. 10100
  60.  
  61. Now we need to make an "extended hexadecimal" to compensate the extra digit.
  62.  
  63. 00000 = 0
  64. 00001 = 1
  65. 00010 = 2
  66. 00011 = 3
  67. 00100 = 4
  68. 00101 = 5
  69. 00110 = 6
  70. 00111 = 7
  71. 01000 = 8
  72. 01001 = 9
  73. 01010 = A (10)
  74. 01011 = B (11)
  75. 01100 = C (12)
  76. 01101 = D (13)
  77. 01110 = E (14)
  78. 01111 = F (15)
  79. 10000 = G (16)
  80. 10001 = H (17)
  81. 10010 = I (18)
  82. 10011 = J (19)
  83. 10100 = K (20)
  84. 10101 = L (21)
  85. 10110 = M (22)
  86. 10111 = N (23)
  87. 11000 = O (24)
  88. 11001 = P (25)
  89. 11010 = Q (26)
  90. 11011 = R (27)
  91. 11100 = S (28)
  92. 11101 = T (29)
  93. 11110 = U (30)
  94. 11111 = V (31)
  95.  
  96.  
  97. 00000 = 0
  98. 10001 = H
  99. 11010 = Q
  100. 00101 = 5
  101. 01010 = A
  102. 10000 = G
  103. 10000 = G
  104. 00101 = 5
  105. 00100 = 4
  106. 10001 = H
  107. 01010 = A
  108. 01011 = B
  109. 01010 = A
  110. 10000 = G
  111. 10000 = G
  112. 00100 = 4
  113. 01100 = C
  114. 10001 = H
  115. 11010 = Q
  116. 10100 = K
  117.  
  118.  
  119. 0HQ5AGG54HABAGG4CHQK (simplifies to HQ5AGG54HABAGG4CHQK)
  120.  
  121. Going in reverse, you could simply convert the number '0HQ5AGG54HABAGG4CHQK' to base 16 through arithmetic and then interpret that as ASCII, or you could do all of this in reverse, which is more realistic if you're doing it on paper. Of course, going from right-to-left, you'll end up with "100" on the far left, and you'll know to pad it to make it "0100".
  122.  
  123. Either way, if done correctly, you'll get "GET REKT FGT" back.
  124.  
  125. No, I did not expect anyone to get this. This is SUPPOSED to be extremely difficult. That's the point.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement