Created
March 28, 2018 19:58
-
-
Save zetashift/fbc78367e2402147d3b15cf4cc58639f to your computer and use it in GitHub Desktop.
Cryptopals set 1 ch 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import base64, strutils | |
| let | |
| input = """49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d""" | |
| expected = "SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t" | |
| assert expected == encode(parseHexStr(strIn)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment