This is what needs to be decrypted http://www.helix.hr/files/posao.json The key is obv aes256KeyAsBase64 but that along the text is encoded with base 64 so after https://www.base64decode.org/ charset 1250 and http://aesencryption.net/ I get ��QC�>���.��'R�?���"����z�� It stays the same after I save it as pdf, yeah the original is pdf. Halp! (no I won't post it to stack overflow bcoz of reasons)
As long as you are positive that is the actual key, and that the file is a pdf(that has not been zipped or gzipped). Then have you tried UTF8/16?
Yes utf8 doesn't work on that site, there are others but one charges I think and the other one freezes, does it really change much, I mean isn't the difference between utf and 1250 just a few special chars?
Didn't realise that was an extension, anyway here is the full translation, though I think I mentioned it all : PDF file is first encrypted with a (AES 256, ECB) binary key, then encoded into a string (Base64) as `encryptedPdfAsBase64`. For solution of the riddle, read the PDF file.
https://tools.ietf.org/html/rfc7516 this might help. my brain's a bit overloaded right now so can't think much about your problem. if the link does not help just search something about web file encryption or json encrypting pdf file
Wao. Even less reason to help you lol. I worry for your employer if you don't even know that you should seek help on a specialized tech site like stack overflow instead
Have yet to check how t works, but the answer I've found is downloading this: http://php.net/downloads.php installing it then run the following command in a program. string openssl_decrypt ( string $data , string $method , string $key) where you have to substitute "data" for the cyphertext, "method" for "base64" and "key" for "aes256KeyAsBase64" (leave the $ as is). Or so it seems.
I worry for you for not reading my first post. You don't have to help, but don't waste space in this thread with your opinions then.
If you want only answers and not opinions, you should state so in your first post. ... or post this in Stack Overflow...
Because I don't have any IDE since I finished uni and reinstalled Windows, because it's simpler and the job is for junior position with training, so read my response to Phoenix as well.
And read my response to your response to Phoenix as well. The fact you're using online tools means you're subject to subtle bugs and/or differences in the implementation of those services. I remind you that AES has different modes of operation.
You're not discussing this problem I posted, you're discussing me personally coupled with your boredom, or I dunno are you angry or negative about something irl so you're taking it out here? Rethorical question.
Just trying to help you avoid problems you're more likely to find in online services (like encoding issues) that would be more difficult to get in a local environment. For example, are you completely sure the output you got at first is really just gibberish, and not your expected output but with a different character encoding?