April 30, 2024, 9:20 p.m. | Stefan Alfbo

DEV Community dev.to

This is the third crypto challenge in set 1 from cryptopals, which is the qualifying set.


The difficulty level is relatively easy, to solve this problem I have used the programming language Go.





Problem description

The input is a hex encoded string:


1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736


which has been XOR'd against a single character. Find the key, and decrypt the message.


Devise some method for "scoring" a piece of English plaintext. Character frequency is a good metric. Evaluate each output and choose …

100daystooffload challenge cipher crypto cryptopals decrypt easy find hex input key language problem programming programming language single the key third xor

Information Security Engineers

@ D. E. Shaw Research | New York City

Technology Security Analyst

@ Halton Region | Oakville, Ontario, Canada

Senior Cyber Security Analyst

@ Valley Water | San Jose, CA

Security Operations Manager-West Coast

@ The Walt Disney Company | USA - CA - 2500 Broadway Street

Vulnerability Analyst - Remote (WFH)

@ Cognitive Medical Systems | Phoenix, AZ, US | Oak Ridge, TN, US | Austin, TX, US | Oregon, US | Austin, TX, US

Senior Mainframe Security Administrator

@ Danske Bank | Copenhagen V, Denmark