diff options
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 |