From e025738f13bf9612a39f907329a547fb8fc66ebe Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 30 Nov 2014 16:19:22 -0800 Subject: Challenge 12 --- src/solvers/Challenge12.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/solvers') 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 -- cgit v1.1