If you want, you can PM me with all the steps you did on a specific sudoku\cipher and the result of each one, and ill tell you where is your mistake.BeTheDuck wrote:I am incredibly frustrated right now. And I'm sure I'm just missing something silly.
I have a PHP script that runs the exact (like, copied and pasted) encryption scheme given in the challenge. I ALSO have a decryption function that works beautifully. When I test them, I run the encryption function on the text "Hello" with whatever key I feel like using. When I decrypt using the same key, I always get "Hello".
I have a program that solves sudoku puzzles quickly, and tells me if there's more than one solution (and if there is, I just refresh the challenge until I get a puzzle with only one solution... ah laziness). I've double-checked these solved puzzles on three online sudoku solvers, and it always matches.
When I convert the sudoku into a key, I separate each number with a comma, left to right, top to bottom, just like the format given to me. 81 digits, 80 commas.
So why is it that, whenever I use the sudoku and encrypted string from the challenge, I get a bunch of illegal unicode characters as my answer? I've even tried SHA1 hashing the solved puzzle before using it as a key (once before even calling keys(), once inside keys() [which as I said is copied and pasted directly from the challenge]). I'm not even changing the code from my control test; I'm commenting out the encryption part. And even if I run my code with the encryption commented out and using an encrypted result and the correct key from a PREVIOUS test, I still get my "Hello". So it's not even the code that runs my encrypt/decrypt that's wrong.
As far as I can tell, either my key is wrong, or my encrypted answer is wrong (which I'm directly copying and pasting from the challenge, all 24 chars, every time). What am I missing?
If you know what I'm doing wrong, and it's spoileriffic, PM me. I'm tearing my hair out.
haha01haha01 wrote:If you want, you can PM me with all the steps you did on a specific sudoku\cipher and the result of each one, and ill tell you where is your mistake.
Auxis wrote:I thought about what could have been wrong at work and I was right. It was an error on my part on how I was using it. SHA1Update was being called more than once because it was inside of a loop that was being used from a previous project I had.
Users browsing this forum: No registered users and 0 guests