1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

AES decryption is returning a very strange set of characters

Discussion in 'Programming' started by zach catskilson, Apr 29, 2017.

  1. #1
    Hello dear friends,

    Have question for those who know little bit more than me about the encryption system: AES.

    I am trying to decrypt a AES-encrypted string from a mysql database.
    The way I usually do it:

    1. go to phpmyadmin
    2. find the encrypted string
    3. paste it on http://aes.online-domain-tools.com/ along with the private decryption key.

    Usually, it works well - so I'm almost sure there is nothing wrong with the website.

    However, there is one column in the mysql database that doens't seem to want to decrypt.
    Here is an example:

    Encrypted string: '25f9e794323b453885f5181f1b624d0b'
    Decryption key: '1697f925ec7b'
    Output: ©»[à.ÊO6.{úèÓɅ
    What is SHOULD output to: '123456789' (I know that because I registered this string in the database)

    Here is an example of decryption from another column:

    Encrypted string: 'e5452838a52fc8ff352602ad14d634e93ed71c03129166901181d9a44e5a2049'
    Decryption key: '1697f925ec7b'
    Output: 'user_bitcoin_address6' (correct)

    WHY is it doing this to me?

    Is there perhaps another way to decrypt it (such as create a php script and put it on the hosting server)

    Please help, I have been stuck on this problem for over a week now.
    zach catskilson, Apr 29, 2017 IP