diff options
author | iximeow <me@iximeow.net> | 2014-11-30 16:19:22 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2014-11-30 16:19:22 -0800 |
commit | e025738f13bf9612a39f907329a547fb8fc66ebe (patch) | |
tree | 6bfb509b4b43912e63b5ce9519ef76bf696b6e60 /src/solvers | |
parent | 077b1df51f501ed44c7e9a421301174ac7efeaeb (diff) |
Challenge 12
Diffstat (limited to 'src/solvers')
-rw-r--r-- | src/solvers/Challenge12.scala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/solvers/Challenge12.scala b/src/solvers/Challenge12.scala index b37b5e3..0db336c 100644 --- a/src/solvers/Challenge12.scala +++ b/src/solvers/Challenge12.scala @@ -11,14 +11,18 @@ import ixee.cryptopals.utils.crypto._ import io.github.marklister.base64.Base64._ object Challenge12 { - val path = "./data/10.txt" - lazy val mysteryText = """|Um9sbGluJyBpbiBteSA1LjAKV2l0aCBteSByYWctdG9wIGRvd24gc28gbXkg |aGFpciBjYW4gYmxvdwpUaGUgZ2lybGllcyBvbiBzdGFuZGJ5IHdhdmluZyBq |dXN0IHRvIHNheSBoaQpEaWQgeW91IHN0b3A/IE5vLCBJIGp1c3QgZHJvdmUg |YnkK""".stripMargin.replace("\n", "").toByteArray + val expectation = """|Rollin' in my 5.0 + |With my rag-top down so my hair can blow + |The girlies on standby waving just to say hi + |Did you stop? No, I just drove by + |""".stripMargin + val key = """|Copy your oracle function to a new function that | encrypts buffers under ECB mode using a consistent | but unknown key (for instance, assign a single |