Hard Live

Christmas Tree Hash

100 points

56 Solves

Programming

adapap

Community Rating: 4.63 / 5

Headline

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

As Christmas approaches, Adam decides that he wants to improve his network security. He is inspired by the nearly identical Christmas Trees in his office with the only difference being the number on the star on top, and writes a hash function to generate a key. His instructions are found here: https://mega.nz/#!vawiwIBL!MNh3kyh12f_V8xtpHVCiBz5svr7Npvdhu6uzUkS08Tg - The trees in Adam's office can be found here (your input): https://mega.nz/#!PGw2SCDZ!yzI2DCX0ut-TR5WBDX2x_aqtNQezg9WTGcxcmHlNJNs - What is the encryption key generated by Adam's Christmas Tree Hash function?

First 10 Solvers

Rank Username
1 kronos
2 kalilo
3 Yeraisci
4 bakudanichi
5 intelagent moderator badge ctflearn++ badge
Rank Username
6 tenchijin
7 Anony
8 freimer
9 nh4ntz
10 thebadgod

Comments

    • Gilad ctflearn++ badge

      0.0

      Any hint about step 7 - how to convert -682335424444623097 to uehcysuxjh? I've already tried several conversions of -682335424444623097 to other values

      • Gilad ctflearn++ badge

        0.0

        never mind - I've found how to convert

    • IT_Oracle

      0.0

      That was a fun programming challenge! Also, that flag made me do a double take and then made me laugh pretty hard, lmao. Thanks for the challenge!

    • Raffy

      0.0

      Step 6 (line 34 of text1.txt) is confusing, the value you should be subtracting is 365^5 + 52^10 + 7^20 + 457981573849226022 (notice the last plus sign instead of the minus). Otherwise, good job.

    • airr

      0.0

      Could someone explain me step 6

      • emo94

        1

        try this in python: k = pow(365, 5) + pow(52, 10) + pow(7, 20) + 457981573849226022 - int(result) k = -k

        • emo94

          0.0

          k =-k is a second line

    • IronLarreh_

      Protected 0.0

      [REDACTED] This comment is only shown to users who have solved this challenge.