Decrypt AES with a key but all I get is gibberish

Discussion in 'Tech Discussion' started by ZhaWarudo, Jun 13, 2017.

  1. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
  2. dlist

    dlist Well-Known Member

    Joined:
    Feb 19, 2016
    Messages:
    397
    Likes Received:
    230
    Reading List:
    Link
    it this look like general things. it look too high tech for us wuxia dweller.
     
  3. lnv

    lnv ✪ Well-Known Hypocrite

    Joined:
    Jan 24, 2017
    Messages:
    7,702
    Likes Received:
    9,044
    Reading List:
    Link
    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?
     
  4. OmegaDion

    OmegaDion [Ω The End Ω] [Forum Reporter]

    Joined:
    Aug 26, 2016
    Messages:
    218
    Likes Received:
    131
    Reading List:
    Link
    More contxt please and what the hell are you downloading? Like json is completey far off from pdf.
     
  5. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    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?
     
  6. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    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.
     
  7. Phoenix

    Phoenix Nameless Wanderer 『WW Vet.』

    Joined:
    Nov 18, 2015
    Messages:
    690
    Likes Received:
    635
    Reading List:
    Link
    Hmmm....this is your homework isn't it?
     
  8. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    Pre-interview test actually, close enough.
     
  9. OmegaDion

    OmegaDion [Ω The End Ω] [Forum Reporter]

    Joined:
    Aug 26, 2016
    Messages:
    218
    Likes Received:
    131
    Reading List:
    Link
    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
     
    ZhaWarudo likes this.
  10. Phoenix

    Phoenix Nameless Wanderer 『WW Vet.』

    Joined:
    Nov 18, 2015
    Messages:
    690
    Likes Received:
    635
    Reading List:
    Link
    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
     
  11. Kemm

    Kemm Custom title

    Joined:
    Apr 24, 2016
    Messages:
    1,164
    Likes Received:
    1,104
    Reading List:
    Link
    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.
     
    ZhaWarudo likes this.
  12. noisypixy

    noisypixy Sacatunn que pen, que summum que tun.

    Joined:
    Jun 25, 2016
    Messages:
    716
    Likes Received:
    950
    Reading List:
    Link
    Why are you using online tools.

    If I were your employer, this would instantly disqualify you.
     
  13. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    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.
     
  14. noisypixy

    noisypixy Sacatunn que pen, que summum que tun.

    Joined:
    Jun 25, 2016
    Messages:
    716
    Likes Received:
    950
    Reading List:
    Link
    If you want only answers and not opinions, you should state so in your first post.

    ... or post this in Stack Overflow...
     
  15. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    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.
     
  16. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    That should be obvious, this thread is not hey what's your favourite anime,xianxia?
     
  17. noisypixy

    noisypixy Sacatunn que pen, que summum que tun.

    Joined:
    Jun 25, 2016
    Messages:
    716
    Likes Received:
    950
    Reading List:
    Link
    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.
     
  18. noisypixy

    noisypixy Sacatunn que pen, que summum que tun.

    Joined:
    Jun 25, 2016
    Messages:
    716
    Likes Received:
    950
    Reading List:
    Link
    Tech Discussion.
     
  19. ZhaWarudo

    ZhaWarudo TOKI WO TOMARE!!!

    Joined:
    Dec 30, 2015
    Messages:
    4,060
    Likes Received:
    1,543
    Reading List:
    Link
    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.
     
  20. noisypixy

    noisypixy Sacatunn que pen, que summum que tun.

    Joined:
    Jun 25, 2016
    Messages:
    716
    Likes Received:
    950
    Reading List:
    Link
    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?